Package ffx.potential.nonbonded.implicit
Class HydrophobicPMFRegion
java.lang.Object
edu.rit.pj.ParallelConstruct
edu.rit.pj.ParallelRegion
ffx.potential.nonbonded.implicit.HydrophobicPMFRegion
Initial implementation of a Hydrophobic PMF.
- Since:
- 1.0
-
Constructor Summary
ConstructorDescriptionHydrophobicPMFRegion
(Atom[] atoms, double[] x, double[] y, double[] z, boolean[] use, double[][][] grad, int nt) -
Method Summary
Modifier and TypeMethodDescriptiondouble
void
run()
Execute parallel code.void
setGradient
(boolean gradient) void
start()
Perform initialization actions before parallel execution begins.Methods inherited from class edu.rit.pj.ParallelRegion
barrier, barrier, critical, critical, criticalNonexclusive, criticalNonexclusive, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, finish
Methods inherited from class edu.rit.pj.ParallelConstruct
getThreadCount, getThreadIndex, isExecutingInParallel, region, team
-
Constructor Details
-
HydrophobicPMFRegion
public HydrophobicPMFRegion(Atom[] atoms, double[] x, double[] y, double[] z, boolean[] use, double[][][] grad, int nt)
-
-
Method Details
-
getEnergy
public double getEnergy() -
run
public void run()Description copied from class:ParallelRegion
Execute parallel code. All threads of the parallel team call therun()
method concurrently.The
run()
method must be implemented in a subclass.- Specified by:
run
in classParallelRegion
-
setGradient
public void setGradient(boolean gradient) -
start
public void start()Description copied from class:ParallelRegion
Perform initialization actions before parallel execution begins. Only one thread calls thestart()
method.The
start()
method may be overridden in a subclass. If not overridden, thestart()
method does nothing.- Overrides:
start
in classParallelRegion
-