Package ffx.potential.nonbonded
Class ReciprocalSpace.BSplineRegion.BSplineLoop
java.lang.Object
edu.rit.pj.ParallelConstruct
edu.rit.pj.ParallelForLoop
edu.rit.pj.IntegerForLoop
ffx.potential.nonbonded.ReciprocalSpace.BSplineRegion.BSplineLoop
- Enclosing class:
ReciprocalSpace.BSplineRegion
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
Perform per-thread finalization actions after finishing the loop iterations.void
run
(int lb, int ub) Execute one chunk of iterations of this parallel for loop.schedule()
Determine this parallel for loop's schedule.void
start()
Perform per-thread initialization actions before starting the loop iterations.Methods inherited from class edu.rit.pj.IntegerForLoop
ordered, stopLoop
Methods inherited from class edu.rit.pj.ParallelConstruct
getThreadCount, getThreadIndex, isExecutingInParallel, region, team
-
Method Details
-
finish
public void finish()Description copied from class:IntegerForLoop
Perform per-thread finalization actions after finishing the loop iterations.The
finish()
method may be overridden in a subclass. If not overridden, thefinish()
method does nothing.- Overrides:
finish
in classIntegerForLoop
-
run
public void run(int lb, int ub) Description copied from class:IntegerForLoop
Execute one chunk of iterations of this parallel for loop. Therun()
method must perform the loop body for indexesfirst
throughlast
inclusive, increasing the loop index by +1 after each iteration.The
run()
method must be overridden in a subclass.- Specified by:
run
in classIntegerForLoop
- Parameters:
lb
- First loop index.ub
- Last loop index.
-
schedule
Description copied from class:IntegerForLoop
Determine this parallel for loop's schedule. The schedule determines how the loop iterations are apportioned among the parallel team threads. For further information, see class IntegerSchedule.The
schedule()
method may be overridden in a subclass to return the desired schedule. If not overridden, the default is a runtime schedule (seeIntegerSchedule.runtime()
).- Overrides:
schedule
in classIntegerForLoop
- Returns:
- Schedule for this parallel for loop.
-
start
public void start()Description copied from class:IntegerForLoop
Perform per-thread initialization actions before starting the loop iterations.The
start()
method may be overridden in a subclass. If not overridden, thestart()
method does nothing.- Overrides:
start
in classIntegerForLoop
-