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

This commit is contained in:
sjplimp
2007-11-02 20:25:11 +00:00
parent f12471d507
commit 6de4e59a38
28 changed files with 610 additions and 280 deletions

View File

@ -16,6 +16,7 @@
#include "fix_print.h"
#include "update.h"
#include "input.h"
#include "modify.h"
#include "variable.h"
#include "error.h"
@ -67,11 +68,16 @@ void FixPrint::end_of_step()
// make a copy of line to work on
// substitute for $ variables (no printing)
// append a newline and print final copy
// variable evaluation may invoke a compute that affects Verlet::eflag,vflag
modify->clearstep_compute();
strcpy(copy,line);
input->substitute(copy,0);
strcat(copy,"\n");
modify->addstep_compute(update->ntimestep + nevery);
if (me == 0) {
if (screen) fprintf(screen,copy);
if (logfile) fprintf(logfile,copy);