Package ffx.algorithms.optimize.manybody
Class GoldsteinPairRegion
java.lang.Object
edu.rit.pj.ParallelConstruct
edu.rit.pj.ParallelRegion
ffx.algorithms.optimize.manybody.GoldsteinPairRegion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Perform finalization actions after parallel execution ends.doublevoidinit(Residue[] residues, int i, int riA, int riB, int j, int rjC, int rjD, int[][] bidiResNeighbors, RotamerOptimization rotamerOptimization) Initializes a ParallelRegion to attempt the elimination of riA,rjC by riB,rjD.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
-
Constructor Details
-
GoldsteinPairRegion
public GoldsteinPairRegion(int nThreads)
-
-
Method Details
-
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
-
getMissedResidues
-
getSumOverK
public double getSumOverK() -
init
public void init(Residue[] residues, int i, int riA, int riB, int j, int rjC, int rjD, int[][] bidiResNeighbors, RotamerOptimization rotamerOptimization) Initializes a ParallelRegion to attempt the elimination of riA,rjC by riB,rjD.- Parameters:
residues- The residue array.i- First residue of the pair.riA- First member of the pair to attempt eliminating.riB- First member of the pair to try eliminating by.j- Second residue of the pair.rjC- Second member of the pair to attempt eliminating.rjD- Second member of the pair to try eliminating by.bidiResNeighbors- All interaction partners of a Residue, including prior residuesrotamerOptimization- RotamerOptimization instance.
-
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
-