cloudy trunk
Loading...
Searching...
No Matches
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 95 of file mpi_utilities.h.

Constructor & Destructor Documentation

◆ load_balance() [1/2]

load_balance::load_balance ( )
inline

Definition at line 108 of file mpi_utilities.h.

References p_clear1().

Here is the call graph for this function:

◆ load_balance() [2/2]

load_balance::load_balance ( int  nJobs)
inlineexplicit

Definition at line 112 of file mpi_utilities.h.

References init(), and p_clear1().

Here is the call graph for this function:

◆ ~load_balance()

load_balance::~load_balance ( )
inline

Definition at line 117 of file mpi_utilities.h.

References p_clear0().

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void load_balance::clear ( )
inline

Definition at line 121 of file mpi_utilities.h.

References p_clear0(), and p_clear1().

Here is the call graph for this function:

◆ finalize()

void load_balance::finalize ( )
inline

Definition at line 141 of file mpi_utilities.h.

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

Referenced by main().

Here is the call graph for this function:

◆ init()

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:

◆ next_job()

int load_balance::next_job ( )
inline

Definition at line 127 of file mpi_utilities.h.

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

Referenced by main().

Here is the call graph for this function:

◆ p_clear0()

void load_balance::p_clear0 ( )
inlineprivate

Definition at line 99 of file mpi_utilities.h.

References p_jobs.

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

◆ p_clear1()

void load_balance::p_clear1 ( )
inlineprivate

Definition at line 103 of file mpi_utilities.h.

References p_ptr.

Referenced by clear(), and load_balance().

Field Documentation

◆ p_jobs

vector<int> load_balance::p_jobs
private

Definition at line 97 of file mpi_utilities.h.

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

◆ p_ptr

unsigned int load_balance::p_ptr
private

Definition at line 98 of file mpi_utilities.h.

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


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