Package ffx.potential.nonbonded.implicit
Class BornRadiiRegion
java.lang.Object
edu.rit.pj.ParallelConstruct
edu.rit.pj.ParallelRegion
ffx.potential.nonbonded.implicit.BornRadiiRegion
Parallel computation of Born radii via the Grycuk method.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBornRadiiRegion(int nt, int nAtoms, ForceField forceField, boolean neckCorrection, boolean tanhCorrection, boolean perfectHCTScale) BornRadiiRegion Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Perform finalization actions after parallel execution ends.double[]getBorn()double[]Return perfect Born radii read in as keywords, or base radii if perfect radii are not available.double[]voidinit(Atom[] atoms, Crystal crystal, double[][][] sXYZ, int[][][] neighborLists, double[] baseRadius, double[] descreenRadius, double[] overlapScale, double[] neckScale, double descreenOffset, boolean[] use, double cut2, boolean nativeEnvironmentApproximation, double[] born) voidrun()Execute parallel code.voidstart()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, executeMethods inherited from class edu.rit.pj.ParallelConstruct
getThreadCount, getThreadIndex, isExecutingInParallel, region, team
-
Field Details
-
atoms
An ordered array of atoms in the system.
-
-
Constructor Details
-
BornRadiiRegion
public BornRadiiRegion(int nt, int nAtoms, ForceField forceField, boolean neckCorrection, boolean tanhCorrection, boolean perfectHCTScale) BornRadiiRegion Constructor.- Parameters:
nt- Number of threads.nAtoms- Number of atoms.forceField- The ForceField in use.neckCorrection- Perform a neck correction.tanhCorrection- Perform a tanh correction.perfectHCTScale- Use "perfect" HCT scale factors.
-
-
Method Details
-
getPerfectRadii
public double[] getPerfectRadii()Return perfect Born radii read in as keywords, or base radii if perfect radii are not available.- Returns:
- Array of perfect Born radii.
-
finish
public void finish()Description copied from class:ParallelRegionPerform finalization actions after parallel execution ends. Only one thread calls thefinish()method.The
finish()method may be overridden in a subclass. If not overridden, thefinish()method does nothing.- Overrides:
finishin classParallelRegion
-
init
-
run
public void run()Description copied from class:ParallelRegionExecute parallel code. All threads of the parallel team call therun()method concurrently.The
run()method must be implemented in a subclass.- Specified by:
runin classParallelRegion
-
start
public void start()Description copied from class:ParallelRegionPerform 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:
startin classParallelRegion
-
getBorn
public double[] getBorn() -
getUnscaledBornIntegral
public double[] getUnscaledBornIntegral()
-