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

This commit is contained in:
sjplimp
2010-01-12 01:37:48 +00:00
parent 18b20f9c51
commit 2c643b7dc5
391 changed files with 2856 additions and 2809 deletions

View File

@ -14,6 +14,8 @@
#include "stdio.h"
#include "string.h"
#include "modify.h"
#include "style_compute.h"
#include "style_fix.h"
#include "atom.h"
#include "comm.h"
#include "fix.h"
@ -24,12 +26,6 @@
#include "memory.h"
#include "error.h"
#define ComputeInclude
#define FixInclude
#include "style.h"
#undef ComputeInclude
#undef FixInclude
using namespace LAMMPS_NS;
#define DELTA 4
@ -562,11 +558,11 @@ void Modify::add_fix(int narg, char **arg)
if (0) return; // dummy line to enable else-if macro expansion
#define FixClass
#define FIX_CLASS
#define FixStyle(key,Class) \
else if (strcmp(arg[2],#key) == 0) fix[ifix] = new Class(lmp,narg,arg);
#include "style.h"
#undef FixClass
#include "style_fix.h"
#undef FIX_CLASS
else error->all("Invalid fix style");
@ -686,11 +682,12 @@ void Modify::add_compute(int narg, char **arg)
if (0) return; // dummy line to enable else-if macro expansion
#define ComputeClass
#define COMPUTE_CLASS
#define ComputeStyle(key,Class) \
else if (strcmp(arg[2],#key) == 0) \
compute[ncompute] = new Class(lmp,narg,arg);
#include "style.h"
#include "style_compute.h"
#undef COMPUTE_CLASS
else error->all("Invalid compute style");