2006-09-28 03:51:33 +08:00
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
2007-01-30 08:22:05 +08:00
|
|
|
http://lammps.sandia.gov, Sandia National Laboratories
|
|
|
|
Steve Plimpton, sjplimp@sandia.gov
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
Copyright (2003) Sandia Corporation. Under the terms of Contract
|
|
|
|
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
|
|
|
certain rights in this software. This software is distributed under
|
|
|
|
the GNU General Public License.
|
|
|
|
|
|
|
|
See the README file in the top-level LAMMPS directory.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#ifndef INTEGRATE_H
|
|
|
|
#define INTEGRATE_H
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
#include "pointers.h"
|
2006-09-28 03:51:33 +08:00
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
|
|
|
class Integrate : protected Pointers {
|
2006-09-28 03:51:33 +08:00
|
|
|
public:
|
2007-11-03 04:25:11 +08:00
|
|
|
Integrate(class LAMMPS *, int, char **);
|
|
|
|
virtual ~Integrate();
|
2006-09-28 03:51:33 +08:00
|
|
|
virtual void init() = 0;
|
|
|
|
virtual void setup() = 0;
|
|
|
|
virtual void iterate(int) = 0;
|
|
|
|
virtual void cleanup() {}
|
2007-10-11 06:22:16 +08:00
|
|
|
virtual void reset_dt() {}
|
2007-11-03 04:25:11 +08:00
|
|
|
virtual double memory_usage() {return 0.0;}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
int eflag,vflag; // flags for energy/virial computation
|
|
|
|
int virial_style; // compute virial explicitly or implicitly
|
|
|
|
|
|
|
|
int nelist,nvlist; // # of PE,virial coputes for eflag,vflag
|
|
|
|
class Compute **elist; // list of Computes to check
|
|
|
|
class Compute **vlist;
|
|
|
|
|
|
|
|
void ev_set(int);
|
2006-09-28 03:51:33 +08:00
|
|
|
};
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
}
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
#endif
|