Skip to content
Snippets Groups Projects
Commit 1386e65f authored by Kurt A. O'Hearn's avatar Kurt A. O'Hearn
Browse files

PuReMD-old: back-port run_sim.py from master branch. Update control file...

PuReMD-old: back-port run_sim.py from master branch. Update control file parsing to ignore sPuReMD/PG-PuReMD options.
parent 4e99b348
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,11 @@ char Read_Control_File( char *control_file, control_params* control,
val = atof(tmp[1]);
control->dt = val * 1.e-3; // convert dt from fs to ps!
}
else if ( strncmp(tmp[0], "gpus_per_node", MAX_LINE) == 0 )
{
// skip since not applicable to MPI code
;
}
else if ( strcmp(tmp[0], "proc_by_dim") == 0 )
{
if ( c < 4 )
......@@ -169,6 +174,11 @@ char Read_Control_File( char *control_file, control_params* control,
control->nprocs = control->procs_by_dim[0] * control->procs_by_dim[1] *
control->procs_by_dim[2];
}
else if ( strncmp(tmp[0], "periodic_boundaries", MAX_LINE) == 0 )
{
// skip since not applicable to MPI code
;
}
//else if( strcmp(tmp[0], "restart") == 0 ) {
// ival = atoi(tmp[1]);
// control->restart = ival;
......@@ -444,6 +454,11 @@ char Read_Control_File( char *control_file, control_params* control,
ival = atoi(tmp[1]);
out_control->traj_compress = ival;
}
else if ( strncmp(tmp[0], "traj_format", MAX_LINE) == 0 )
{
// skip since not applicable to MPI code
;
}
else if ( strcmp(tmp[0], "traj_method") == 0 )
{
ival = atoi(tmp[1]);
......@@ -478,6 +493,21 @@ char Read_Control_File( char *control_file, control_params* control,
ival = atoi(tmp[1]);
out_control->angle_info = ival;
}
else if ( strncmp(tmp[0], "test_forces", MAX_LINE) == 0 )
{
// skip since not applicable to MPI code
;
}
else if ( strncmp(tmp[0], "molec_anal", MAX_LINE) == 0 )
{
// skip since not applicable to MPI code
;
}
else if ( strncmp(tmp[0], "freq_molec_anal", MAX_LINE) == 0 )
{
// skip since not applicable to MPI code
;
}
else if ( strcmp(tmp[0], "molecular_analysis") == 0 )
{
ival = atoi(tmp[1]);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment