PPL Logo

LBSimulation Class Reference

#include <LBSimulation.h>

Collaboration diagram for LBSimulation:

Collaboration graph
[legend]

Public Member Functions

 LBSimulation (int numPes_)
 ~LBSimulation ()
void reset ()
void SetProcessorLoad (int pe, double load, double bgload)
void PrintSimulationResults ()
void PrintDecisions (LBMigrateMsg *m, char *simFileName, int peCount)
void PrintDifferences (LBSimulation *realSim, BaseLB::LDStats *stats)

Static Public Attributes

static int doSimulation = 0
 dump file name
static char * dumpFile = (char*)"lbdata.dat"
 number of steps to dump
static int dumpStep = -1
static int dumpStepSize = 1
 first step number to dump
static int simStep = -1
 flag if do simulation
static int simStepSize = 1
 first step number to simulate
static int simProcs = 0
 number of steps to simulate
static int procsChanged = 0
 simulation target procs
static int showDecisionsOnly = 0
 flag if the number of procs has been changed

Private Attributes

LBInfo lbinfo
int numPes

Friends

class CentralLB

Detailed Description

Definition at line 9 of file LBSimulation.h.


Constructor & Destructor Documentation

LBSimulation::LBSimulation ( int  numPes_  ) 

Definition at line 249 of file LBSimulation.C.

LBSimulation::~LBSimulation (  ) 

Definition at line 253 of file LBSimulation.C.


Member Function Documentation

void LBSimulation::reset ( void   ) 

Definition at line 257 of file LBSimulation.C.

References LBInfo::clear(), and lbinfo.

Referenced by CentralLB::simulationRead().

Here is the call graph for this function:

Here is the caller graph for this function:

void LBSimulation::SetProcessorLoad ( int  pe,
double  load,
double  bgload 
)

Definition at line 262 of file LBSimulation.C.

References LBInfo::bgLoads, lbinfo, numPes, and LBInfo::peLoads.

void LBSimulation::PrintSimulationResults (  ) 

Definition at line 269 of file LBSimulation.C.

References lbinfo, and LBInfo::print().

Referenced by CentralLB::simulationRead().

Here is the call graph for this function:

Here is the caller graph for this function:

void LBSimulation::PrintDecisions ( LBMigrateMsg m,
char *  simFileName,
int  peCount 
)

Definition at line 274 of file LBSimulation.C.

References LDObjHandle::id, malloc(), LBMigrateMsg::moves, LBMigrateMsg::n_moves, MigrateInfo::obj, and MigrateInfo::to_pe.

Referenced by CentralLB::simulationRead().

Here is the call graph for this function:

Here is the caller graph for this function:

void LBSimulation::PrintDifferences ( LBSimulation realSim,
BaseLB::LDStats stats 
)

Definition at line 288 of file LBSimulation.C.

References CmiPrintf(), lbinfo, numPes, LBInfo::peLoads, and BaseLB::LDStats::procs.

Referenced by CentralLB::simulationRead().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class CentralLB [friend]

Definition at line 33 of file LBSimulation.h.


Field Documentation

dump file name

Definition at line 12 of file LBSimulation.h.

Referenced by _loadbalancerInit(), LBDBInit::LBDBInit(), and CentralLB::LoadBalance().

char * LBSimulation::dumpFile = (char*)"lbdata.dat" [static]

number of steps to dump

Definition at line 13 of file LBSimulation.h.

Referenced by _loadbalancerInit(), CentralLB::simulationRead(), and CentralLB::simulationWrite().

int LBSimulation::dumpStep = -1 [static]

Definition at line 14 of file LBSimulation.h.

Referenced by _loadbalancerInit(), and CentralLB::simulationWrite().

first step number to dump

Definition at line 15 of file LBSimulation.h.

Referenced by _loadbalancerInit(), and CentralLB::simulationWrite().

int LBSimulation::simStep = -1 [static]

flag if do simulation

Definition at line 16 of file LBSimulation.h.

Referenced by _loadbalancerInit(), and CentralLB::simulationRead().

first step number to simulate

Definition at line 17 of file LBSimulation.h.

Referenced by _loadbalancerInit(), and CentralLB::simulationRead().

number of steps to simulate

Definition at line 18 of file LBSimulation.h.

Referenced by _loadbalancerInit(), BaseLB::LDStats::pup(), CentralLB::readStatsMsgs(), and CentralLB::simulationRead().

simulation target procs

Definition at line 19 of file LBSimulation.h.

Referenced by BaseLB::LDStats::pup(), CentralLB::readStatsMsgs(), and CentralLB::simulationRead().

flag if the number of procs has been changed

Definition at line 21 of file LBSimulation.h.

Referenced by _loadbalancerInit(), and CentralLB::simulationRead().

Definition at line 32 of file LBSimulation.h.

Referenced by CentralLB::findSimResults(), PrintDifferences(), and SetProcessorLoad().


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

Generated on Mon Sep 21 08:26:40 2020 for Charm++ by  doxygen 1.5.5