Package ffx.xray.solvent
Class BulkSolventRowRegion
java.lang.Object
edu.rit.pj.ParallelConstruct
edu.rit.pj.ParallelRegion
ffx.potential.nonbonded.RowRegion
ffx.xray.solvent.BulkSolventRowRegion
This class implements a spatial decomposition based on partitioning a grid into rows. The
over-ridden "selectAtoms" method selects atoms that are not in the asymmetric unit, but are
within the supplied cutoff radius.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Field Summary
FieldsFields inherited from class ffx.potential.nonbonded.RowRegion
buff, coordinates, rowLoop, select -
Constructor Summary
ConstructorsConstructorDescriptionBulkSolventRowRegion(int gX, int gY, int gZ, double[] grid, int nSymm, int threadCount, Crystal crystal, Atom[] atoms, double[][][] coordinates, double cutoff, ParallelTeam parallelTeam) Constructor for BulkSolventDensityRegion. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Execute parallel code.voidSelect atoms that should be included.Methods inherited from class ffx.potential.nonbonded.RowRegion
finish, getGrid, getNatoms, getNsymm, rowIndexForYZ, setAtoms, setCrystal, setDensityLoop, setInitValue, start, yFromRowIndex, zFromRowIndexMethods 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
-
logger
Constantlogger
-
-
Constructor Details
-
BulkSolventRowRegion
public BulkSolventRowRegion(int gX, int gY, int gZ, double[] grid, int nSymm, int threadCount, Crystal crystal, Atom[] atoms, double[][][] coordinates, double cutoff, ParallelTeam parallelTeam) Constructor for BulkSolventDensityRegion.- Parameters:
gX- a int.gY- a int.gZ- a int.grid- an array of double.nSymm- a int.threadCount- a int.crystal- aCrystalobject.atoms- an array ofAtomobjects.coordinates- an array of double.cutoff- a double.parallelTeam- aParallelTeamobject.
-
-
Method Details
-
run
public void run()Execute parallel code. All threads of the parallel team call therun()method concurrently.The
run()method must be implemented in a subclass. -
selectAtoms
public void selectAtoms()Select atoms that should be included. The default is to include all atoms, which is set up in the constructor. This function should be over-ridden by subclasses that want finer control.- Overrides:
selectAtomsin classRowRegion
-