safer call to generation of occasional neighbor lists. cleaner implementation of write_dump

This commit is contained in:
Axel Kohlmeyer
2014-09-30 15:45:02 -04:00
parent e60b423576
commit 3a5d4208f3
23 changed files with 42 additions and 30 deletions

View File

@ -22,6 +22,8 @@
#include "dump_image.h"
#include "atom.h"
#include "group.h"
#include "input.h"
#include "update.h"
#include "error.h"
using namespace LAMMPS_NS;
@ -75,6 +77,11 @@ void WriteDump::command(int narg, char **arg)
if (strcmp(arg[1],"cfg") == 0)
((DumpCFG *) dump)->multifile_override = 1;
if (update->first_update == 0)
input->one("run 0 post no");
else
lmp->init();
dump->init();
dump->write();