58 gchar * lia[4] = {
"a",
"b",
"c",
"d"};
68 int numth = omp_get_max_threads ();
69 gboolean doatoms = FALSE;
90 #pragma omp parallel for num_threads(numth) private(j,v,v_dummy,this_line,saved_line,this_word) shared(i,k,lia,coord_line,this_reader,active_project,res)
93 if (
res == 2)
goto enda;
95 saved_line = g_strdup_printf (
"%s",
this_line);
114 v = v + v_dummy * 0.1;
118 this_word = strtok_r (NULL,
" ", & saved_line);
126 this_word = strtok_r (NULL,
" ", & saved_line);
134 this_word = strtok_r (NULL,
" ", & saved_line);
158 #pragma omp parallel for num_threads(numth) private(i,j,k,v,v_dummy,this_line,saved_line,this_word) shared(lia,coord_line,this_reader,active_project,res)
161 if (
res == 2)
goto ends;
166 saved_line = g_strdup_printf (
"%s",
this_line);
185 v = v + v_dummy * 0.1;
188 this_word = strtok_r (NULL,
" ", & saved_line);
196 this_word = strtok_r (NULL,
" ", & saved_line);
204 this_word = strtok_r (NULL,
" ", & saved_line);
225 if (
res == 2)
return 2;
311 add_reader_info (
"Wrong file format - cannot find the number of atoms !", 0);
334 add_reader_info (
"Wrong file format - cannot find the number of atoms !", 0);
335 add_reader_info (
"Wrong file format - the first line is corrupted !", 0);
Binding to the Fortran90 subroutines.
double get_z_from_periodic_table(gchar *lab)
get Z from atom label
Callback declarations for main window.
void allocatoms(project *this_proj)
allocate project data
double * allocdouble(int val)
allocate a double * pointer
int * allocint(int val)
allocate an int * pointer
double string_to_double(gpointer string)
convert string to double
Global variable declarations Global convenience function declarations Global data structure defin...
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...
Messaging function declarations.
Function declarations for reading atomes project file Function declarations for saving atomes proje...
void check_for_species(double v, int ato)
Fill the species for each atom and the associated data.
void reader_info(gchar *type, gchar *sinf, int val)
display reader information
void add_reader_info(gchar *info, int mid)
append information message to the reader information
void format_error(int stp, int ato, gchar *mot, int line)
Message to display an error message.
int set_v_dummy(gchar *this_word)
check if dummy is used for unknown species, if not then ask what to do
int xyz_get_atom_coordinates()
get the atomic coordinates from the XYZ file
int open_xyz_file(int linec)
open XYZ file
Functions declaration to read atomic coordinates.