57 gchar * lia[4] = {
"a",
"b",
"c",
"d"};
61 int numth = omp_get_max_threads ();
62 gboolean doatoms = FALSE;
82 #pragma omp parallel for num_threads(numth) private(j,this_line,saved_line,this_word) shared(i,k,lia,coord_line,active_project,res)
85 if (
res == 2)
goto enda;
87 saved_line = g_strdup_printf (
"%s",
this_line);
95 this_word = strtok_r (NULL,
" ", & saved_line);
103 this_word = strtok_r (NULL,
" ", & saved_line);
111 this_word = strtok_r (NULL,
" ", & saved_line);
128 #pragma omp parallel for num_threads(numth) private(i,j,k,this_line,saved_line,this_word) shared(lia,coord_line,active_project,res)
131 if (
res == 2)
goto ends;
136 saved_line = g_strdup_printf (
"%s",
this_line);
144 this_word = strtok_r (NULL,
" ", & saved_line);
152 this_word = strtok_r (NULL,
" ", & saved_line);
160 this_word = strtok_r (NULL,
" ", & saved_line);
174 if (
res == 2)
return 2;
181 add_reader_info (g_strdup_printf (
"Error - chemical species changes between steps %d and %d, for atom %d !", i, i+1, j+1), 0);
Binding to the Fortran90 subroutines.
Callback declarations for main window.
void allocatoms(project *this_proj)
allocate project data
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 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 open_trj_file(int linec)
open CPMD file
int trj_get_atom_coordinates()
get the atomic coordinates from the CPMD file
Functions declaration to read atomic coordinates.