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

This commit is contained in:
sjplimp 2013-11-05 16:10:30 +00:00
parent 0a61295944
commit 5725a9cfd8
2 changed files with 4 additions and 1 deletions

View File

@ -47,6 +47,7 @@ DumpImage::DumpImage(LAMMPS *lmp, int narg, char **arg) :
// force binary flag on to avoid corrupted output on Windows
binary = 1;
multifile_override = 0;
// set filetype based on filename suffix
@ -389,7 +390,7 @@ DumpImage::~DumpImage()
void DumpImage::init_style()
{
if (multifile == 0)
if (multifile == 0 && !multifile_override)
error->all(FLERR,"Dump image requires one snapshot per file");
if (sort_flag) error->all(FLERR,"Dump image cannot perform sorting");

View File

@ -26,6 +26,8 @@ namespace LAMMPS_NS {
class DumpImage : public DumpCustom {
public:
int multifile_override; // used by write_dump command
DumpImage(class LAMMPS *, int, char**);
virtual ~DumpImage();
int pack_comm(int, int *, double *, int, int *);