cloudy trunk
Loading...
Searching...
No Matches
mpi_utilities.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MPI::t_MPI
class  load_balance

Namespaces

namespace  MPI

Macros

#define Barrier()
#define Bcast(W, X, Y, Z)
#define Finalize()
#define Get_size()
#define Get_rank()
#define Init(Y, Z)
#define Reduce(U, V, W, X, Y, Z)

Functions

string GridPointPrefix (int n)
void process_output ()
void append_file (FILE *, const char *)

Macro Definition Documentation

◆ Barrier

#define Barrier ( )
Value:
total_insanity()

Definition at line 85 of file mpi_utilities.h.

◆ Bcast

#define Bcast ( W,
X,
Y,
Z )
Value:
total_insanity()

Definition at line 86 of file mpi_utilities.h.

◆ Finalize

#define Finalize ( )
Value:
COMM_WORLD.total_insanity()
int total_insanity()

Definition at line 87 of file mpi_utilities.h.

◆ Get_rank

#define Get_rank ( )
Value:
total_insanity()

Definition at line 89 of file mpi_utilities.h.

Referenced by main().

◆ Get_size

#define Get_size ( )
Value:
total_insanity()

Definition at line 88 of file mpi_utilities.h.

Referenced by main().

◆ Init

#define Init ( Y,
Z )
Value:
COMM_WORLD.total_insanity()

Definition at line 90 of file mpi_utilities.h.

◆ Reduce

#define Reduce ( U,
V,
W,
X,
Y,
Z )
Value:
total_insanity()

Definition at line 91 of file mpi_utilities.h.

Function Documentation

◆ append_file()

void append_file ( FILE * dest,
const char * source )

append_file: append output produced on file <source> to open file descriptor <dest>

Definition at line 218 of file mpi_utilities.cpp.

References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, open_data(), and source.

Referenced by optimize_phymir(), phymir_state< X, Y, NP, NSTR >::p_process_output(), and process_output().

Here is the call graph for this function:

◆ GridPointPrefix()

string GridPointPrefix ( int n)
inline

GridPointPrefix: generate filename prefix for any files associated with a single point in a grid

Definition at line 150 of file mpi_utilities.h.

Referenced by check_grid_file(), main(), process_output(), and vary_input().

◆ process_output()

void process_output ( )

process_output: concatenate output files produced in MPI grid run

Definition at line 55 of file mpi_utilities.cpp.

References append_file(), AS_LOCAL_ONLY, AS_LOCAL_ONLY_TRY, ASSERT, check_grid_file(), DEBUG_ENTRY, grid, GridPointPrefix(), ioQQQ, mode_r, NUM_OUTPUT_TYPES, open_data(), save, saveFITSfile(), and toupper().

Referenced by main().

Here is the call graph for this function: