cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes
load_balance Class Reference

#include <mpi_utilities.h>

Collaboration diagram for load_balance:
Collaboration graph
[legend]

Public Member Functions

 load_balance ()
 
 load_balance (int nJobs)
 
 ~load_balance ()
 
void clear ()
 
void init (int nJobs)
 
int next_job ()
 
void finalize ()
 

Private Member Functions

void p_clear0 ()
 
void p_clear1 ()
 

Private Attributes

vector< int > p_jobs
 
unsigned int p_ptr
 

Detailed Description

Definition at line 97 of file mpi_utilities.h.

Constructor & Destructor Documentation

load_balance::load_balance ( )
inline

Definition at line 110 of file mpi_utilities.h.

References p_clear1().

Here is the call graph for this function:

load_balance::load_balance ( int  nJobs)
inlineexplicit

Definition at line 114 of file mpi_utilities.h.

References init(), and p_clear1().

Here is the call graph for this function:

load_balance::~load_balance ( )
inline

Definition at line 119 of file mpi_utilities.h.

References p_clear0().

Here is the call graph for this function:

Member Function Documentation

void load_balance::clear ( )
inline

Definition at line 123 of file mpi_utilities.h.

References p_clear0(), and p_clear1().

Here is the call graph for this function:

void load_balance::finalize ( )
inline

Definition at line 143 of file mpi_utilities.h.

References Barrier, MPI::COMM_WORLD, cpu, t_cpu::i(), and t_cpu_i::lgMPI().

Referenced by main().

Here is the call graph for this function:

void load_balance::init ( int  nJobs)

Definition at line 20 of file mpi_utilities.cpp.

References MPI::COMM_WORLD, cpu, t_cpu::i(), t_cpu_i::lgMPI(), p_jobs, and p_ptr.

Referenced by load_balance().

Here is the call graph for this function:

int load_balance::next_job ( )
inline

Definition at line 129 of file mpi_utilities.h.

References MPI::COMM_WORLD, cpu, Get_size, t_cpu::i(), t_cpu_i::lgMPI(), p_jobs, and p_ptr.

Referenced by main().

Here is the call graph for this function:

void load_balance::p_clear0 ( )
inlineprivate

Definition at line 101 of file mpi_utilities.h.

References p_jobs.

Referenced by clear(), and ~load_balance().

void load_balance::p_clear1 ( )
inlineprivate

Definition at line 105 of file mpi_utilities.h.

References p_ptr.

Referenced by clear(), and load_balance().

Field Documentation

vector<int> load_balance::p_jobs
private

Definition at line 99 of file mpi_utilities.h.

Referenced by init(), next_job(), and p_clear0().

unsigned int load_balance::p_ptr
private

Definition at line 100 of file mpi_utilities.h.

Referenced by init(), next_job(), and p_clear1().


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