NAMD
ComputeOneFourNbTholes.h
Go to the documentation of this file.
1 #ifndef COMPUTEONEFOURNBTHOLES_H
2 #define COMPUTEONEFOURNBTHOLES_H
3 
4 #include "ComputeHomeTuples.h"
5 #include "ComputeSelfTuples.h"
6 #include "ReductionMgr.h"
7 
8 class Molecule;
10 
12 public:
13  // ComputeHomeTuples interface
14  enum { size = 4 };
18  Real scale; // unused, just for compilation with the solute rescaling code in ComputeHomeTuples.h
19  static void computeForce(OneFourNbTholeElem*, int, BigReal*, BigReal *);
20 
21  static void getMoleculePointers(Molecule*, int*, int32***, OneFourNbThole**);
23  static void getTupleInfo(AtomSignature* sig, int *count, TupleSignature** t) {
24  NAMD_die("Can't use OneFourNbThole with memory optimized version of NAMD.");
25  }
26 
27  // pressure profile parameters
32 
33  // Internal data
35 
36  int hash() const;
37 
42 
44  OneFourNbTholeElem(AtomID atom0, const TupleSignature *sig, const OneFourNbTholeValue *v);
46  OneFourNbTholeElem(AtomID atom0, AtomID atom1, AtomID atom2, AtomID atom3);
48 
49  int operator==(const OneFourNbTholeElem &a) const;
50  int operator<(const OneFourNbTholeElem &a) const;
51 };
52 
54  public ComputeHomeTuples<OneFourNbTholeElem, OneFourNbThole,OneFourNbTholeValue> {
55 public:
57 };
58 
60  public ComputeSelfTuples<OneFourNbTholeElem, OneFourNbThole,OneFourNbTholeValue> {
61 public:
63 };
64 
65 #endif // COMPUTEONEFOURNBTHOLES_H
static void getParameterPointers(Parameters *, const OneFourNbTholeValue **)
int32 ComputeID
Definition: NamdTypes.h:288
TuplePatchElem * p[size]
float Real
Definition: common.h:118
int32_t int32
Definition: common.h:38
ComputeSelfOneFourNbThole(ComputeID c, PatchID p)
static BigReal pressureProfileThickness
ComputeOneFourNbThole(ComputeID c, PatchIDList &p)
Molecule stores the structural information for the system.
Definition: Molecule.h:174
const OneFourNbTholeValue * value
static void getMoleculePointers(Molecule *, int *, int32 ***, OneFourNbThole **)
void NAMD_die(const char *err_msg)
Definition: common.C:147
int operator<(const OneFourNbTholeElem &a) const
int32 AtomID
Definition: NamdTypes.h:35
int operator==(const OneFourNbTholeElem &a) const
int32 PatchID
Definition: NamdTypes.h:287
static void getTupleInfo(AtomSignature *sig, int *count, TupleSignature **t)
static void computeForce(OneFourNbTholeElem *, int, BigReal *, BigReal *)
static void submitReductionData(BigReal *, SubmitReduction *)
double BigReal
Definition: common.h:123
static BigReal pressureProfileMin