Minor changes to dump_atom_gz/dump_atom_zstd

This commit is contained in:
Richard Berger 2021-04-09 11:36:10 -04:00
parent 7b53ce572c
commit ded22bf8bc
No known key found for this signature in database
GPG Key ID: A9E83994E0BA0CAB
2 changed files with 3 additions and 6 deletions

View File

@ -11,16 +11,13 @@
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
#include "dump_atom_gz.h"
#include "domain.h"
#include "dump_atom_gz.h"
#include "error.h"
#include "file_writer.h"
#include "update.h"
#include <cstring>
using namespace LAMMPS_NS;
DumpAtomGZ::DumpAtomGZ(LAMMPS *lmp, int narg, char **arg) :

View File

@ -43,7 +43,7 @@ DumpAtomZstd::~DumpAtomZstd()
/* ----------------------------------------------------------------------
generic opening of a dump file
ASCII or binary or zstdipped
ASCII or binary or compressed
some derived classes override this function
------------------------------------------------------------------------- */
@ -180,7 +180,7 @@ int DumpAtomZstd::modify_param(int narg, char **arg)
return 2;
}
} catch (FileWriterException &e) {
error->one(FLERR, e.what());
error->one(FLERR, fmt::format("Illegal dump_modify command: {}", e.what()));
}
}
return consumed;