OpenAtom  Version1.5a
cp::paircalc::Builder Class Reference

A class that orchestrates the mapping and creation of one paircalc array and accompanying chares like InputDataHandler etc. More...

#include <pcBuilder.h>

Public Member Functions

 Builder (const pcConfig &_cfg)
 Always charge a builder with creating one paircalc array.
 
InstanceIDs build (const startup::PCMapConfig &mapCfg)
 Trigger the creation of a pc array with the given configs, within the given pes/boxes etc.
 

Private Member Functions

void createMap (const startup::PCMapConfig &mapCfg)
 Create the mapping required to instantiate a PC array. More...
 
void createPairCalcs ()
 Create a paircalc array using info in the supplied pcConfig object. More...
 

Private Attributes

const pcConfig cfg
 The configs for the paircalc array that I am charged with building.
 
InstanceIDs pcHandle
 The result of an array build.
 

Detailed Description

A class that orchestrates the mapping and creation of one paircalc array and accompanying chares like InputDataHandler etc.

Definition at line 20 of file pcBuilder.h.

Member Function Documentation

void cp::paircalc::Builder::createMap ( const startup::PCMapConfig mapCfg)
private

Create the mapping required to instantiate a PC array.

Create the map for placing the paircalculator chare array elements.

Also perform other housekeeping chores like dumping the maps to files etc.

Get an appropriately constructed PeList from the supplied factory functor

< Lazy way to avoid having to write an assignment operator for MapType4

Create a map group that will read and use this map table

Definition at line 50 of file pcBuilder.C.

References cp::paircalc::pcConfig::arePhantomsOn, cfg, cp::paircalc::pcConfig::grainSize, cp::paircalc::pcConfig::instanceIndex, cp::paircalc::pcConfig::isSymmetric, cp::paircalc::InstanceIDs::mapperGID, cp::paircalc::pcConfig::numChunks, cp::paircalc::pcConfig::numPlanes, cp::paircalc::pcConfig::numStates, and pcHandle.

Referenced by build().

void cp::paircalc::Builder::createPairCalcs ( )
private

Create a paircalc array using info in the supplied pcConfig object.

Create an empty input handler chare array that will accept all incoming messages from GSpace

Notify the runtime that we're done inserting all the PC elements

Definition at line 161 of file pcBuilder.C.

References cp::paircalc::pcConfig::arePhantomsOn, cfg, cp::paircalc::pcConfig::grainSize, cp::paircalc::pcConfig::instanceIndex, cp::paircalc::pcConfig::isSymmetric, cp::paircalc::InstanceIDs::mapperGID, cp::paircalc::pcConfig::numChunks, cp::paircalc::pcConfig::numPlanes, cp::paircalc::pcConfig::numStates, cp::paircalc::InstanceIDs::pcAID, and pcHandle.

Referenced by build().


The documentation for this class was generated from the following files: