apply new utility function to most places creating new styles

This commit is contained in:
Axel Kohlmeyer
2019-04-07 20:55:39 -04:00
parent 9166001041
commit d640c712f8
9 changed files with 26 additions and 38 deletions

View File

@ -26,6 +26,7 @@
#include "input.h"
#include "update.h"
#include "error.h"
#include "utils.h"
using namespace LAMMPS_NS;
@ -64,7 +65,7 @@ void WriteDump::command(int narg, char **arg)
#include "style_dump.h"
#undef DUMP_CLASS
else error->all(FLERR,"Unknown dump style");
else error->all(FLERR,utils::check_packages_for_style("dump",arg[1],lmp).c_str());
if (modindex < narg) dump->modify_params(narg-modindex-1,&arg[modindex+1]);