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

This commit is contained in:
sjplimp
2012-03-05 15:31:20 +00:00
parent 932f85ff2e
commit 61c4fa6ee0
84 changed files with 510 additions and 177 deletions

View File

@ -26,11 +26,20 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
#define SMALL 0.001
/* ---------------------------------------------------------------------- */
AngleCharmmOMP::AngleCharmmOMP(class LAMMPS *lmp)
: AngleCharmm(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleCharmmOMP::compute(int eflag, int vflag)

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleCharmmOMP : public AngleCharmm, public ThrOMP {
public:
AngleCharmmOMP(class LAMMPS *lmp) :
AngleCharmm(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleCharmmOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -33,6 +34,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleClass2OMP::AngleClass2OMP(class LAMMPS *lmp)
: AngleClass2(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleClass2OMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleClass2OMP : public AngleClass2, public ThrOMP {
public:
AngleClass2OMP(class LAMMPS *lmp) :
AngleClass2(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleClass2OMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -33,6 +34,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleCosineDeltaOMP::AngleCosineDeltaOMP(class LAMMPS *lmp)
: AngleCosineDelta(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleCosineDeltaOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleCosineDeltaOMP : public AngleCosineDelta, public ThrOMP {
public:
AngleCosineDeltaOMP(class LAMMPS *lmp) :
AngleCosineDelta(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleCosineDeltaOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -33,6 +34,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleCosineOMP::AngleCosineOMP(class LAMMPS *lmp)
: AngleCosine(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleCosineOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleCosineOMP : public AngleCosine, public ThrOMP {
public:
AngleCosineOMP(class LAMMPS *lmp) :
AngleCosine(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleCosineOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -33,6 +34,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleCosinePeriodicOMP::AngleCosinePeriodicOMP(class LAMMPS *lmp)
: AngleCosinePeriodic(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleCosinePeriodicOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleCosinePeriodicOMP : public AngleCosinePeriodic, public ThrOMP {
public:
AngleCosinePeriodicOMP(class LAMMPS *lmp) :
AngleCosinePeriodic(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleCosinePeriodicOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -33,6 +34,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleCosineShiftExpOMP::AngleCosineShiftExpOMP(class LAMMPS *lmp)
: AngleCosineShiftExp(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleCosineShiftExpOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleCosineShiftExpOMP : public AngleCosineShiftExp, public ThrOMP {
public:
AngleCosineShiftExpOMP(class LAMMPS *lmp) :
AngleCosineShiftExp(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleCosineShiftExpOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -33,6 +34,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleCosineShiftOMP::AngleCosineShiftOMP(class LAMMPS *lmp)
: AngleCosineShift(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleCosineShiftOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleCosineShiftOMP : public AngleCosineShift, public ThrOMP {
public:
AngleCosineShiftOMP(class LAMMPS *lmp) :
AngleCosineShift(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleCosineShiftOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -33,6 +34,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleCosineSquaredOMP::AngleCosineSquaredOMP(class LAMMPS *lmp)
: AngleCosineSquared(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleCosineSquaredOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleCosineSquaredOMP : public AngleCosineSquared, public ThrOMP {
public:
AngleCosineSquaredOMP(class LAMMPS *lmp) :
AngleCosineSquared(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleCosineSquaredOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -27,6 +27,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -34,6 +35,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleDipoleOMP::AngleDipoleOMP(class LAMMPS *lmp)
: AngleDipole(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleDipoleOMP::compute(int eflag, int vflag)
{
@ -65,6 +74,7 @@ void AngleDipoleOMP::compute(int eflag, int vflag)
reduce_thr(this, eflag, vflag, thr);
} // end of omp parallel region
}
template <int EFLAG>

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleDipoleOMP : public AngleDipole, public ThrOMP {
public:
AngleDipoleOMP(class LAMMPS *lmp) :
AngleDipole(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleDipoleOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -33,6 +34,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleHarmonicOMP::AngleHarmonicOMP(class LAMMPS *lmp)
: AngleHarmonic(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleHarmonicOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleHarmonicOMP : public AngleHarmonic, public ThrOMP {
public:
AngleHarmonicOMP(class LAMMPS *lmp) :
AngleHarmonic(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleHarmonicOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -27,6 +27,7 @@
#include "lj_sdk_common.h"
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
using namespace LJSDKParms;
@ -35,6 +36,14 @@ using namespace LJSDKParms;
/* ---------------------------------------------------------------------- */
AngleSDKOMP::AngleSDKOMP(class LAMMPS *lmp)
: AngleSDK(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleSDKOMP::compute(int eflag, int vflag)
{

View File

@ -33,9 +33,7 @@ namespace LAMMPS_NS {
class AngleSDKOMP : public AngleSDK, public ThrOMP {
public:
AngleSDKOMP(class LAMMPS *lmp) :
AngleSDK(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleSDKOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -33,6 +34,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
AngleTableOMP::AngleTableOMP(class LAMMPS *lmp)
: AngleTable(lmp), ThrOMP(lmp,THR_ANGLE)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void AngleTableOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class AngleTableOMP : public AngleTable, public ThrOMP {
public:
AngleTableOMP(class LAMMPS *lmp) :
AngleTable(lmp), ThrOMP(lmp,THR_ANGLE) {};
AngleTableOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -24,8 +24,18 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondClass2OMP::BondClass2OMP(class LAMMPS *lmp)
: BondClass2(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondClass2OMP::compute(int eflag, int vflag)

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondClass2OMP : public BondClass2, public ThrOMP {
public:
BondClass2OMP(class LAMMPS *lmp) :
BondClass2(lmp), ThrOMP(lmp,THR_BOND) {};
BondClass2OMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,10 +26,19 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondFENEExpandOMP::BondFENEExpandOMP(class LAMMPS *lmp)
: BondFENEExpand(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondFENEExpandOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondFENEExpandOMP : public BondFENEExpand, public ThrOMP {
public:
BondFENEExpandOMP(class LAMMPS *lmp) :
BondFENEExpand(lmp), ThrOMP(lmp,THR_BOND) {};
BondFENEExpandOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,10 +26,19 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondFENEOMP::BondFENEOMP(class LAMMPS *lmp)
: BondFENE(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondFENEOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondFENEOMP : public BondFENE, public ThrOMP {
public:
BondFENEOMP(class LAMMPS *lmp) :
BondFENE(lmp), ThrOMP(lmp,THR_BOND) {};
BondFENEOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -24,10 +24,19 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondHarmonicOMP::BondHarmonicOMP(class LAMMPS *lmp)
: BondHarmonic(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondHarmonicOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondHarmonicOMP : public BondHarmonic, public ThrOMP {
public:
BondHarmonicOMP(class LAMMPS *lmp) :
BondHarmonic(lmp), ThrOMP(lmp,THR_BOND) {};
BondHarmonicOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -24,10 +24,19 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondHarmonicShiftCutOMP::BondHarmonicShiftCutOMP(class LAMMPS *lmp)
: BondHarmonicShiftCut(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondHarmonicShiftCutOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondHarmonicShiftCutOMP : public BondHarmonicShiftCut, public ThrOMP {
public:
BondHarmonicShiftCutOMP(class LAMMPS *lmp) :
BondHarmonicShiftCut(lmp), ThrOMP(lmp,THR_BOND) {};
BondHarmonicShiftCutOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -24,10 +24,19 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondHarmonicShiftOMP::BondHarmonicShiftOMP(class LAMMPS *lmp)
: BondHarmonicShift(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondHarmonicShiftOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondHarmonicShiftOMP : public BondHarmonicShift, public ThrOMP {
public:
BondHarmonicShiftOMP(class LAMMPS *lmp) :
BondHarmonicShift(lmp), ThrOMP(lmp,THR_BOND) {};
BondHarmonicShiftOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -24,10 +24,19 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondMorseOMP::BondMorseOMP(class LAMMPS *lmp)
: BondMorse(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondMorseOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondMorseOMP : public BondMorse, public ThrOMP {
public:
BondMorseOMP(class LAMMPS *lmp) :
BondMorse(lmp), ThrOMP(lmp,THR_BOND) {};
BondMorseOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -24,10 +24,19 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondNonlinearOMP::BondNonlinearOMP(class LAMMPS *lmp)
: BondNonlinear(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondNonlinearOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondNonlinearOMP : public BondNonlinear, public ThrOMP {
public:
BondNonlinearOMP(class LAMMPS *lmp) :
BondNonlinear(lmp), ThrOMP(lmp,THR_BOND) {};
BondNonlinearOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,10 +25,19 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondQuarticOMP::BondQuarticOMP(class LAMMPS *lmp)
: BondQuartic(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondQuarticOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondQuarticOMP : public BondQuartic, public ThrOMP {
public:
BondQuarticOMP(class LAMMPS *lmp) :
BondQuartic(lmp), ThrOMP(lmp,THR_BOND) {};
BondQuarticOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -24,10 +24,19 @@
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
BondTableOMP::BondTableOMP(class LAMMPS *lmp)
: BondTable(lmp), ThrOMP(lmp,THR_BOND)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void BondTableOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class BondTableOMP : public BondTable, public ThrOMP {
public:
BondTableOMP(class LAMMPS *lmp) :
BondTable(lmp), ThrOMP(lmp,THR_BOND) {};
BondTableOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -28,6 +28,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -35,6 +36,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
DihedralCharmmOMP::DihedralCharmmOMP(class LAMMPS *lmp)
: DihedralCharmm(lmp), ThrOMP(lmp,THR_DIHEDRAL|THR_CHARMM)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void DihedralCharmmOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class DihedralCharmmOMP : public DihedralCharmm, public ThrOMP {
public:
DihedralCharmmOMP(class LAMMPS *lmp) :
DihedralCharmm(lmp), ThrOMP(lmp,THR_DIHEDRAL|THR_CHARMM) {};
DihedralCharmmOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -32,6 +33,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
DihedralClass2OMP::DihedralClass2OMP(class LAMMPS *lmp)
: DihedralClass2(lmp), ThrOMP(lmp,THR_DIHEDRAL)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void DihedralClass2OMP::compute(int eflag, int vflag)
{

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class DihedralClass2OMP : public DihedralClass2, public ThrOMP {
public:
DihedralClass2OMP(class LAMMPS *lmp) :
DihedralClass2(lmp), ThrOMP(lmp,THR_DIHEDRAL) {};
DihedralClass2OMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -32,6 +33,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
DihedralCosineShiftExpOMP::DihedralCosineShiftExpOMP(class LAMMPS *lmp)
: DihedralCosineShiftExp(lmp), ThrOMP(lmp,THR_DIHEDRAL)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void DihedralCosineShiftExpOMP::compute(int eflag, int vflag)
{

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class DihedralCosineShiftExpOMP : public DihedralCosineShiftExp, public ThrOMP {
public:
DihedralCosineShiftExpOMP(class LAMMPS *lmp) :
DihedralCosineShiftExp(lmp), ThrOMP(lmp,THR_DIHEDRAL) {};
DihedralCosineShiftExpOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -32,6 +33,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
DihedralHarmonicOMP::DihedralHarmonicOMP(class LAMMPS *lmp)
: DihedralHarmonic(lmp), ThrOMP(lmp,THR_DIHEDRAL)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void DihedralHarmonicOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class DihedralHarmonicOMP : public DihedralHarmonic, public ThrOMP {
public:
DihedralHarmonicOMP(class LAMMPS *lmp) :
DihedralHarmonic(lmp), ThrOMP(lmp,THR_DIHEDRAL) {};
DihedralHarmonicOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include "math_const.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -35,6 +36,14 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
DihedralHelixOMP::DihedralHelixOMP(class LAMMPS *lmp)
: DihedralHelix(lmp), ThrOMP(lmp,THR_DIHEDRAL)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void DihedralHelixOMP::compute(int eflag, int vflag)
{

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class DihedralHelixOMP : public DihedralHelix, public ThrOMP {
public:
DihedralHelixOMP(class LAMMPS *lmp) :
DihedralHelix(lmp), ThrOMP(lmp,THR_DIHEDRAL) {};
DihedralHelixOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -32,6 +33,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
DihedralMultiHarmonicOMP::DihedralMultiHarmonicOMP(class LAMMPS *lmp)
: DihedralMultiHarmonic(lmp), ThrOMP(lmp,THR_DIHEDRAL)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void DihedralMultiHarmonicOMP::compute(int eflag, int vflag)
{

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class DihedralMultiHarmonicOMP : public DihedralMultiHarmonic, public ThrOMP {
public:
DihedralMultiHarmonicOMP(class LAMMPS *lmp) :
DihedralMultiHarmonic(lmp), ThrOMP(lmp,THR_DIHEDRAL) {};
DihedralMultiHarmonicOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -33,6 +34,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
DihedralOPLSOMP::DihedralOPLSOMP(class LAMMPS *lmp)
: DihedralOPLS(lmp), ThrOMP(lmp,THR_DIHEDRAL)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void DihedralOPLSOMP::compute(int eflag, int vflag)
{

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class DihedralOPLSOMP : public DihedralOPLS, public ThrOMP {
public:
DihedralOPLSOMP(class LAMMPS *lmp) :
DihedralOPLS(lmp), ThrOMP(lmp,THR_DIHEDRAL) {};
DihedralOPLSOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace DIHEDRAL_TABLE_NS;
#define TOLERANCE 0.05
@ -32,6 +33,14 @@ using namespace DIHEDRAL_TABLE_NS;
/* ---------------------------------------------------------------------- */
DihedralTableOMP::DihedralTableOMP(class LAMMPS *lmp)
: DihedralTable(lmp), ThrOMP(lmp,THR_DIHEDRAL)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void DihedralTableOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class DihedralTableOMP : public DihedralTable, public ThrOMP {
public:
DihedralTableOMP(class LAMMPS *lmp) :
DihedralTable(lmp), ThrOMP(lmp,THR_DIHEDRAL) {};
DihedralTableOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include "math_const.h"
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -35,7 +36,9 @@ using namespace MathConst;
EwaldOMP::EwaldOMP(LAMMPS *lmp, int narg, char **arg)
: Ewald(lmp, narg, arg), ThrOMP(lmp, THR_KSPACE)
{ }
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void EwaldOMP::allocate()

View File

@ -35,6 +35,7 @@
#include "angle_hybrid.h"
#include "dihedral_hybrid.h"
#include "improper_hybrid.h"
#include "kspace.h"
#include <string.h>
#include <stdlib.h>
@ -198,6 +199,7 @@ void FixOMP::init()
last_omp_style = NULL;
char *last_omp_name = NULL;
char *last_hybrid_name = NULL;
char *last_force_name = NULL;
// determine which is the last force style with OpenMP
// support as this is the one that has to reduce the forces
@ -208,9 +210,8 @@ void FixOMP::init()
if ( (strcmp(force->name ## _style,"hybrid") == 0) || \
(strcmp(force->name ## _style,"hybrid/overlay") == 0) ) \
check_hybrid=1; \
int len = strlen(force->name ## _style); \
char *suffix = force->name ## _style + len - 4; \
if (strcmp(suffix,"/omp") == 0) { \
if (force->name->suffix_flag & Suffix::OMP) { \
last_force_name = #name; \
last_omp_name = force->name ## _style; \
last_omp_style = (void *) force->name; \
} \
@ -220,24 +221,19 @@ void FixOMP::init()
if (check_hybrid) { \
Class ## Hybrid *style = (Class ## Hybrid *) force->name; \
for (int i=0; i < style->nstyles; i++) { \
int len = strlen(style->keywords[i]); \
char *suffix = style->keywords[i] + len - 4; \
if (strcmp(suffix,"/omp") == 0) { \
last_omp_name = force->name ## _style; \
if (style->styles[i]->suffix_flag & Suffix::OMP) { \
last_force_name = #name; \
last_omp_name = style->keywords[i]; \
last_omp_style = style->styles[i]; \
} \
} \
}
CheckStyleForOMP(pair);
CheckHybridForOMP(pair,Pair);
if (check_hybrid) {
PairHybrid *style = (PairHybrid *) force->pair;
for (int i=0; i < style->nstyles; i++) {
if (style->styles[i]->suffix_flag & Suffix::OMP) {
last_pair_hybrid = style->styles[i];
last_omp_name = style->keywords[i];
}
}
last_pair_hybrid = last_omp_style;
last_hybrid_name = last_omp_name;
}
CheckStyleForOMP(bond);
@ -256,8 +252,30 @@ void FixOMP::init()
#undef CheckStyleForOMP
#undef CheckHybridForOMP
set_neighbor_omp();
// diagnostic output
if (comm->me == 0) {
if (last_omp_style) {
if (last_pair_hybrid) {
if (screen)
fprintf(screen,"Hybrid pair style last /omp style %s\n", last_hybrid_name);
if (logfile)
fprintf(logfile,"Hybrid pair style last /omp style %s\n", last_hybrid_name);
}
if (screen)
fprintf(screen,"Last active /omp style is %s_style %s\n",
last_force_name, last_omp_name);
if (logfile)
fprintf(logfile,"Last active /omp style is %s_style %s\n",
last_force_name, last_omp_name);
} else {
if (screen)
fprintf(screen,"No /omp style for force computation currently active\n");
if (logfile)
fprintf(screen,"No /omp style for force computation currently active\n");
}
}
}
/* ---------------------------------------------------------------------- */

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -32,6 +33,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
ImproperClass2OMP::ImproperClass2OMP(class LAMMPS *lmp)
: ImproperClass2(lmp), ThrOMP(lmp,THR_IMPROPER)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void ImproperClass2OMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class ImproperClass2OMP : public ImproperClass2, public ThrOMP {
public:
ImproperClass2OMP(class LAMMPS *lmp) :
ImproperClass2(lmp), ThrOMP(lmp,THR_IMPROPER) {};
ImproperClass2OMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -32,6 +33,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
ImproperCvffOMP::ImproperCvffOMP(class LAMMPS *lmp)
: ImproperCvff(lmp), ThrOMP(lmp,THR_IMPROPER)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void ImproperCvffOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class ImproperCvffOMP : public ImproperCvff, public ThrOMP {
public:
ImproperCvffOMP(class LAMMPS *lmp) :
ImproperCvff(lmp), ThrOMP(lmp,THR_IMPROPER) {};
ImproperCvffOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -32,6 +33,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
ImproperHarmonicOMP::ImproperHarmonicOMP(class LAMMPS *lmp)
: ImproperHarmonic(lmp), ThrOMP(lmp,THR_IMPROPER)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void ImproperHarmonicOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class ImproperHarmonicOMP : public ImproperHarmonic, public ThrOMP {
public:
ImproperHarmonicOMP(class LAMMPS *lmp) :
ImproperHarmonic(lmp), ThrOMP(lmp,THR_IMPROPER) {};
ImproperHarmonicOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -25,6 +25,7 @@
#include "update.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
@ -32,6 +33,14 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
ImproperUmbrellaOMP::ImproperUmbrellaOMP(class LAMMPS *lmp)
: ImproperUmbrella(lmp), ThrOMP(lmp,THR_IMPROPER)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */
void ImproperUmbrellaOMP::compute(int eflag, int vflag)
{

View File

@ -32,9 +32,7 @@ namespace LAMMPS_NS {
class ImproperUmbrellaOMP : public ImproperUmbrella, public ThrOMP {
public:
ImproperUmbrellaOMP(class LAMMPS *lmp) :
ImproperUmbrella(lmp), ThrOMP(lmp,THR_IMPROPER) {};
ImproperUmbrellaOMP(class LAMMPS *lmp);
virtual void compute(int, int);
private:

View File

@ -26,6 +26,7 @@
#include <string.h>
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -43,6 +44,7 @@ using namespace MathConst;
PPPMCGOMP::PPPMCGOMP(LAMMPS *lmp, int narg, char **arg) :
PPPMCG(lmp, narg, arg), ThrOMP(lmp, THR_KSPACE)
{
suffix_flag |= Suffix::OMP;
}
/* ----------------------------------------------------------------------

View File

@ -26,6 +26,7 @@
#include <string.h>
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -44,6 +45,7 @@ using namespace MathConst;
PPPMOMP::PPPMOMP(LAMMPS *lmp, int narg, char **arg) :
PPPM(lmp, narg, arg), ThrOMP(lmp, THR_KSPACE)
{
suffix_flag |= Suffix::OMP;
}
/* ----------------------------------------------------------------------

View File

@ -26,6 +26,7 @@
#include <string.h>
#include <math.h>
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -42,7 +43,10 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
PPPMTIP4POMP::PPPMTIP4POMP(LAMMPS *lmp, int narg, char **arg) :
PPPMOMP(lmp, narg, arg) {}
PPPMOMP(lmp, narg, arg)
{
suffix_flag |= Suffix::OMP;
}
/* ---------------------------------------------------------------------- */

View File

@ -42,8 +42,8 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
ThrOMP::ThrOMP(LAMMPS *ptr, int style) : lmp(ptr), fix(NULL),
thr_style(style), thr_error(0)
ThrOMP::ThrOMP(LAMMPS *ptr, int style)
: lmp(ptr), fix(NULL), thr_style(style), thr_error(0)
{
// register fix omp with this class
int ifix = lmp->modify->find_fix("package_omp");
@ -284,15 +284,24 @@ void ThrOMP::reduce_thr(void *style, const int eflag, const int vflag,
#pragma omp critical
#endif
{
bond->energy += thr->eng_bond;
for (int i=0; i < 6; ++i)
bond->virial[i] += thr->virial_bond[i];
}
if (eflag & 2) {
data_reduce_thr(&(bond->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(bond->vatom[0][0]), nall, nthreads, 6, tid);
if (eflag & 1) {
bond->energy += thr->eng_bond;
thr->eng_bond = 0.0;
}
if (vflag & 3) {
for (int i=0; i < 6; ++i) {
bond->virial[i] += thr->virial_bond[i];
thr->virial_bond[i] = 0.0;
}
}
if (eflag & 2) {
data_reduce_thr(&(bond->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(bond->vatom[0][0]), nall, nthreads, 6, tid);
}
}
}
break;
@ -305,15 +314,24 @@ void ThrOMP::reduce_thr(void *style, const int eflag, const int vflag,
#pragma omp critical
#endif
{
angle->energy += thr->eng_angle;
for (int i=0; i < 6; ++i)
angle->virial[i] += thr->virial_angle[i];
}
if (eflag & 2) {
data_reduce_thr(&(angle->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(angle->vatom[0][0]), nall, nthreads, 6, tid);
if (eflag & 1) {
angle->energy += thr->eng_angle;
thr->eng_angle = 0.0;
}
if (vflag & 3) {
for (int i=0; i < 6; ++i) {
angle->virial[i] += thr->virial_angle[i];
thr->virial_angle[i] = 0.0;
}
}
if (eflag & 2) {
data_reduce_thr(&(angle->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(angle->vatom[0][0]), nall, nthreads, 6, tid);
}
}
}
break;
@ -326,15 +344,24 @@ void ThrOMP::reduce_thr(void *style, const int eflag, const int vflag,
#pragma omp critical
#endif
{
dihedral->energy += thr->eng_dihed;
for (int i=0; i < 6; ++i)
dihedral->virial[i] += thr->virial_dihed[i];
}
if (eflag & 2) {
data_reduce_thr(&(dihedral->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(dihedral->vatom[0][0]), nall, nthreads, 6, tid);
if (eflag & 1) {
dihedral->energy += thr->eng_dihed;
thr->eng_dihed = 0.0;
}
if (vflag & 3) {
for (int i=0; i < 6; ++i) {
dihedral->virial[i] += thr->virial_dihed[i];
thr->virial_dihed[i] = 0.0;
}
}
if (eflag & 2) {
data_reduce_thr(&(dihedral->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(dihedral->vatom[0][0]), nall, nthreads, 6, tid);
}
}
}
break;
@ -352,22 +379,28 @@ void ThrOMP::reduce_thr(void *style, const int eflag, const int vflag,
dihedral->energy += thr->eng_dihed;
pair->eng_vdwl += thr->eng_vdwl;
pair->eng_coul += thr->eng_coul;
thr->eng_dihed = 0.0;
thr->eng_vdwl = 0.0;
thr->eng_coul = 0.0;
}
if (vflag & 3) {
for (int i=0; i < 6; ++i) {
dihedral->virial[i] += thr->virial_dihed[i];
pair->virial[i] += thr->virial_pair[i];
thr->virial_dihed[i] = 0.0;
thr->virial_pair[i] = 0.0;
}
}
}
if (eflag & 2) {
data_reduce_thr(&(dihedral->eatom[0]), nall, nthreads, 1, tid);
data_reduce_thr(&(pair->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(dihedral->vatom[0][0]), nall, nthreads, 6, tid);
data_reduce_thr(&(pair->vatom[0][0]), nall, nthreads, 6, tid);
if (eflag & 2) {
data_reduce_thr(&(dihedral->eatom[0]), nall, nthreads, 1, tid);
data_reduce_thr(&(pair->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(dihedral->vatom[0][0]), nall, nthreads, 6, tid);
data_reduce_thr(&(pair->vatom[0][0]), nall, nthreads, 6, tid);
}
}
}
break;
@ -380,15 +413,24 @@ void ThrOMP::reduce_thr(void *style, const int eflag, const int vflag,
#pragma omp critical
#endif
{
improper->energy += thr->eng_imprp;
for (int i=0; i < 6; ++i)
improper->virial[i] += thr->virial_imprp[i];
}
if (eflag & 2) {
data_reduce_thr(&(improper->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(improper->vatom[0][0]), nall, nthreads, 6, tid);
if (eflag & 1) {
improper->energy += thr->eng_imprp;
thr->eng_imprp = 0.0;
}
if (vflag & 3) {
for (int i=0; i < 6; ++i) {
improper->virial[i] += thr->virial_imprp[i];
thr->virial_imprp[i] = 0.0;
}
}
if (eflag & 2) {
data_reduce_thr(&(improper->eatom[0]), nall, nthreads, 1, tid);
}
if (vflag & 4) {
data_reduce_thr(&(improper->vatom[0][0]), nall, nthreads, 6, tid);
}
}
}
break;

View File

@ -19,6 +19,7 @@
#include "math_const.h"
#include "memory.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -30,6 +31,7 @@ Angle::Angle(LAMMPS *lmp) : Pointers(lmp)
energy = 0.0;
allocated = 0;
suffix_flag = Suffix::NONE;
maxeatom = maxvatom = 0;
eatom = NULL;

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -21,6 +21,7 @@ namespace LAMMPS_NS {
class Angle : protected Pointers {
friend class ThrOMP;
friend class FixOMP;
public:
int allocated;
int *setflag;
@ -42,6 +43,8 @@ class Angle : protected Pointers {
virtual double memory_usage();
protected:
int suffix_flag; // suffix compatibility flag
int evflag;
int eflag_either,eflag_global,eflag_atom;
int vflag_either,vflag_global,vflag_atom;

View File

@ -18,6 +18,7 @@
#include "force.h"
#include "memory.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
@ -31,6 +32,7 @@ Bond::Bond(LAMMPS *lmp) : Pointers(lmp)
energy = 0.0;
allocated = 0;
suffix_flag = Suffix::NONE;
maxeatom = maxvatom = 0;
eatom = NULL;

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -21,6 +21,7 @@ namespace LAMMPS_NS {
class Bond : protected Pointers {
friend class ThrOMP;
friend class FixOMP;
public:
int allocated;
int *setflag;
@ -42,6 +43,8 @@ class Bond : protected Pointers {
virtual double memory_usage();
protected:
int suffix_flag; // suffix compatibility flag
int evflag;
int eflag_either,eflag_global,eflag_atom;
int vflag_either,vflag_global,vflag_atom;

View File

@ -19,6 +19,7 @@
#include "pair.h"
#include "memory.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -20,8 +20,8 @@
namespace LAMMPS_NS {
class Dihedral : protected Pointers {
friend class ThrOMP;
friend class ThrOMP;
friend class FixOMP;
public:
int allocated;
int *setflag;
@ -41,6 +41,8 @@ class Dihedral : protected Pointers {
virtual double memory_usage();
protected:
int suffix_flag; // suffix compatibility flag
int evflag;
int eflag_either,eflag_global,eflag_atom;
int vflag_either,vflag_global,vflag_atom;

View File

@ -18,6 +18,7 @@
#include "force.h"
#include "memory.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
@ -28,6 +29,7 @@ Improper::Improper(LAMMPS *lmp) : Pointers(lmp)
energy = 0.0;
allocated = 0;
suffix_flag = Suffix::NONE;
maxeatom = maxvatom = 0;
eatom = NULL;

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -21,6 +21,7 @@ namespace LAMMPS_NS {
class Improper : protected Pointers {
friend class ThrOMP;
friend class FixOMP;
public:
int allocated;
int *setflag;
@ -39,6 +40,8 @@ class Improper : protected Pointers {
virtual double memory_usage();
protected:
int suffix_flag; // suffix compatibility flag
int evflag;
int eflag_either,eflag_global,eflag_atom;
int vflag_either,vflag_global,vflag_atom;

View File

@ -19,6 +19,7 @@
#include "force.h"
#include "memory.h"
#include "error.h"
#include "suffix.h"
using namespace LAMMPS_NS;
@ -32,6 +33,7 @@ KSpace::KSpace(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
gewaldflag = 0;
slabflag = 0;
slab_volfactor = 1;
suffix_flag = Suffix::NONE;
accuracy_absolute = -1.0;
two_charge_force = force->qqr2e *

View File

@ -1,4 +1,4 @@
/* ----------------------------------------------------------------------
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
@ -20,6 +20,7 @@ namespace LAMMPS_NS {
class KSpace : protected Pointers {
friend class ThrOMP;
friend class FixOMP;
public:
double energy; // accumulated energy
double virial[6]; // accumlated virial
@ -43,6 +44,7 @@ class KSpace : protected Pointers {
int gridflag,gewaldflag;
int order;
int slabflag;
int suffix_flag; // suffix compatibility flag
double scale;
double slab_volfactor;