forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1436 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
92b0f0f3e8
commit
1d976e6eb1
|
@ -15,6 +15,7 @@
|
|||
#include "fix_enforce2d.h"
|
||||
#include "atom.h"
|
||||
#include "update.h"
|
||||
#include "domain.h"
|
||||
#include "respa.h"
|
||||
#include "error.h"
|
||||
|
||||
|
@ -41,6 +42,14 @@ int FixEnforce2D::setmask()
|
|||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void FixEnforce2D::init()
|
||||
{
|
||||
if (domain->dimension == 3)
|
||||
error->all("Should not use fix enforce2d with 3d simulation");
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void FixEnforce2D::setup(int vflag)
|
||||
{
|
||||
if (strcmp(update->integrate_style,"verlet") == 0)
|
||||
|
|
|
@ -22,6 +22,7 @@ class FixEnforce2D : public Fix {
|
|||
public:
|
||||
FixEnforce2D(class LAMMPS *, int, char **);
|
||||
int setmask();
|
||||
void init();
|
||||
void setup(int);
|
||||
void min_setup(int);
|
||||
void post_force(int);
|
||||
|
|
Loading…
Reference in New Issue