git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13937 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -43,6 +43,7 @@
|
||||
#include "update.h"
|
||||
#include "neighbor.h"
|
||||
#include "special.h"
|
||||
#include "timer.h"
|
||||
#include "variable.h"
|
||||
#include "accelerator_cuda.h"
|
||||
#include "accelerator_kokkos.h"
|
||||
@ -685,6 +686,7 @@ int Input::execute_command()
|
||||
else if (!strcmp(command,"thermo_modify")) thermo_modify();
|
||||
else if (!strcmp(command,"thermo_style")) thermo_style();
|
||||
else if (!strcmp(command,"timestep")) timestep();
|
||||
else if (!strcmp(command,"timers")) timers();
|
||||
else if (!strcmp(command,"uncompute")) uncompute();
|
||||
else if (!strcmp(command,"undump")) undump();
|
||||
else if (!strcmp(command,"unfix")) unfix();
|
||||
@ -1037,6 +1039,7 @@ void Input::print()
|
||||
if (strcmp(arg[iarg],"file") == 0 || strcmp(arg[iarg],"append") == 0) {
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal print command");
|
||||
if (me == 0) {
|
||||
if (fp != NULL) fclose(fp);
|
||||
if (strcmp(arg[iarg],"file") == 0) fp = fopen(arg[iarg+1],"w");
|
||||
else fp = fopen(arg[iarg+1],"a");
|
||||
if (fp == NULL) {
|
||||
@ -1741,6 +1744,13 @@ void Input::thermo_style()
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void Input::timers()
|
||||
{
|
||||
timer->modify_params(narg,arg);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void Input::timestep()
|
||||
{
|
||||
if (narg != 1) error->all(FLERR,"Illegal timestep command");
|
||||
|
||||
Reference in New Issue
Block a user