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;
|
2009-08-22 03:05:42 +08:00
|
|
|
virtual void setup_minimal(int) = 0;
|
|
|
|
virtual void run(int) = 0;
|
2006-09-28 03:51:33 +08:00
|
|
|
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
|
|
|
|
|
2007-12-01 05:54:30 +08:00
|
|
|
int nelist_global,nelist_atom; // # of PE,virial computes to check
|
|
|
|
int nvlist_global,nvlist_atom;
|
2008-07-09 04:56:48 +08:00
|
|
|
class Compute **elist_global; // lists of PE,virial Computes
|
2007-12-01 05:54:30 +08:00
|
|
|
class Compute **elist_atom;
|
|
|
|
class Compute **vlist_global;
|
|
|
|
class Compute **vlist_atom;
|
|
|
|
|
|
|
|
void ev_setup();
|
2007-11-03 04:25:11 +08:00
|
|
|
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
|