Package ffx.potential.nonbonded.implicit
Class InitializationRegion
java.lang.Object
edu.rit.pj.ParallelConstruct
edu.rit.pj.ParallelRegion
ffx.potential.nonbonded.implicit.InitializationRegion
Parallel initialization of accumulation arrays for Generalized Kirkwood.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeWith
(ParallelTeam parallelTeam) Execute the InitializationRegion with the passed ParallelTeam.void
init
(GeneralizedKirkwood generalizedKirkwood, Atom[] atoms, boolean lambdaTerm, AtomicDoubleArray3D grad, AtomicDoubleArray3D torque, AtomicDoubleArray sharedBornGrad) void
run()
Execute parallel code.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, start
Methods inherited from class edu.rit.pj.ParallelConstruct
getThreadCount, getThreadIndex, isExecutingInParallel, region, team
-
Constructor Details
-
InitializationRegion
public InitializationRegion(int maxThreads)
-
-
Method Details
-
executeWith
Execute the InitializationRegion with the passed ParallelTeam.- Parameters:
parallelTeam
- The ParallelTeam instance to execute with.
-
init
public void init(GeneralizedKirkwood generalizedKirkwood, Atom[] atoms, boolean lambdaTerm, AtomicDoubleArray3D grad, AtomicDoubleArray3D torque, AtomicDoubleArray sharedBornGrad) -
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
-