git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7267 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user