git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7267 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2011-12-01 17:37:10 +00:00
parent 8c372f6c41
commit 4643566b25
4 changed files with 16 additions and 16 deletions

View File

@ -394,6 +394,7 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator)
// allocate top-level classes
create();
post_create();
// if helpflag set, print help and exit
@ -465,6 +466,19 @@ void LAMMPS::create()
timer = new Timer(this);
}
/* ----------------------------------------------------------------------
invoke package-specific commands
called from LAMMPS instance constructor and after clear() command
only invoke if suffix is set and enabled
------------------------------------------------------------------------- */
void LAMMPS::post_create()
{
if (suffix && suffix_enable) {
if (strcmp(suffix,"omp") == 0) input->one("package omp *");
}
}
/* ----------------------------------------------------------------------
initialize top-level classes
------------------------------------------------------------------------- */