| cloudy
    trunk
    | 

Go to the source code of this file.
| Data Structures | |
| class | load_balance | 
| Macros | |
| #define | MPI_Barrier(Z) TotalInsanityAsStub<int>() | 
| #define | MPI_Bcast(V, W, X, Y, Z) TotalInsanityAsStub<int>() | 
| #define | MPI_Finalize() TotalInsanityAsStub<int>() | 
| #define | MPI_Comm_size(Y, Z) TotalInsanityAsStub<int>() | 
| #define | MPI_Comm_rank(Y, Z) TotalInsanityAsStub<int>() | 
| #define | MPI_Init(Y, Z) TotalInsanityAsStub<int>() | 
| #define | MPI_Reduce(T, U, V, W, X, Y, Z) TotalInsanityAsStub<int>() | 
| #define | MPI_File_open(V, W, X, Y, Z) TotalInsanityAsStub<int>() | 
| #define | MPI_File_set_view(U, V, W, X, Y, Z) TotalInsanityAsStub<int>() | 
| #define | MPI_File_get_size(Y, Z) TotalInsanityAsStub<int>() | 
| #define | MPI_File_write(V, W, X, Y, Z) total_insanity(V,X,Z) | 
| #define | MPI_File_close(Z) TotalInsanityAsStub<int>() | 
| Typedefs | |
| typedef long | MPI_Offset | 
| typedef long | MPI_Status | 
| typedef void * | MPI_File | 
| Functions | |
| int | total_insanity (MPI_File, int, MPI_Status *) | 
| string | GridPointPrefix (int n) | 
| void | process_output () | 
| void | append_file (FILE *, const char *) | 
| void | append_file (MPI_File, const char *) | 
| Variables | |
| int | MPI_SUCCESS | 
| int | MPI_ERR_INTERN | 
| MPI_File | MPI_FILE_NULL | 
| int | mpi_mode_r | 
| int | mpi_mode_w | 
| int | mpi_mode_a | 
| #define MPI_Barrier | ( | Z | ) | TotalInsanityAsStub<int>() | 
Definition at line 84 of file mpi_utilities.h.
Referenced by load_balance::finalize(), GridGatherInCloudy(), main(), and phymir_state< X, Y, NP, NSTR >::p_barrier().
| #define MPI_Bcast | ( | V, | |
| W, | |||
| X, | |||
| Y, | |||
| Z | |||
| ) | TotalInsanityAsStub<int>() | 
Definition at line 85 of file mpi_utilities.h.
Referenced by GridGatherOutputParallel(), load_balance::init(), and phymir_state< X, Y, NP, NSTR >::p_barrier().
| #define MPI_Comm_rank | ( | Y, | |
| Z | |||
| ) | TotalInsanityAsStub<int>() | 
Definition at line 88 of file mpi_utilities.h.
Referenced by main().
| #define MPI_Comm_size | ( | Y, | |
| Z | |||
| ) | TotalInsanityAsStub<int>() | 
Definition at line 87 of file mpi_utilities.h.
Referenced by main().
| #define MPI_File_close | ( | Z | ) | TotalInsanityAsStub<int>() | 
Definition at line 95 of file mpi_utilities.h.
Referenced by GridGatherOutputParallel().
| #define MPI_File_get_size | ( | Y, | |
| Z | |||
| ) | TotalInsanityAsStub<int>() | 
Definition at line 93 of file mpi_utilities.h.
Referenced by GridGatherOutputParallel().
| #define MPI_File_open | ( | V, | |
| W, | |||
| X, | |||
| Y, | |||
| Z | |||
| ) | TotalInsanityAsStub<int>() | 
Definition at line 91 of file mpi_utilities.h.
Referenced by open_data().
| #define MPI_File_set_view | ( | U, | |
| V, | |||
| W, | |||
| X, | |||
| Y, | |||
| Z | |||
| ) | TotalInsanityAsStub<int>() | 
Definition at line 92 of file mpi_utilities.h.
Referenced by GridGatherOutputParallel().
| #define MPI_File_write | ( | V, | |
| W, | |||
| X, | |||
| Y, | |||
| Z | |||
| ) | total_insanity(V,X,Z) | 
Definition at line 94 of file mpi_utilities.h.
Referenced by append_file().
| #define MPI_Finalize | ( | ) | TotalInsanityAsStub<int>() | 
Definition at line 86 of file mpi_utilities.h.
Referenced by main().
| #define MPI_Init | ( | Y, | |
| Z | |||
| ) | TotalInsanityAsStub<int>() | 
Definition at line 89 of file mpi_utilities.h.
Referenced by main().
| #define MPI_Reduce | ( | T, | |
| U, | |||
| V, | |||
| W, | |||
| X, | |||
| Y, | |||
| Z | |||
| ) | TotalInsanityAsStub<int>() | 
Definition at line 90 of file mpi_utilities.h.
Referenced by GridGatherInCloudy().
| typedef void* MPI_File | 
Definition at line 74 of file mpi_utilities.h.
| typedef long MPI_Offset | 
Definition at line 72 of file mpi_utilities.h.
| typedef long MPI_Status | 
Definition at line 73 of file mpi_utilities.h.
| void append_file | ( | FILE * | dest, | 
| const char * | source | ||
| ) | 
append_file: append output produced on file <source> to open file descriptor <dest>
Definition at line 411 of file mpi_utilities.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, and open_data().
Referenced by GridGatherOutputParallel(), GridGatherOutputSequential(), optimize_phymir(), phymir_state< X, Y, NP, NSTR >::p_process_output(), and process_output().

| void append_file | ( | MPI_File | dest, | 
| const char * | source | ||
| ) | 
append_file: append output produced on file <source> to open file handle <dest> using MPI I/O
Definition at line 435 of file mpi_utilities.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, MPI_File_write, and open_data().

| 
 | inline | 
GridPointPrefix: generate filename prefix for any files associated with a single point in a grid
Definition at line 154 of file mpi_utilities.h.
Referenced by check_grid_file(), GridGatherOutputParallel(), GridGatherOutputSequential(), main(), process_output(), and vary_input().
| void process_output | ( | ) | 
process_output: concatenate output files produced in MPI grid run
process_output: concatenate output files produced in grid run
Definition at line 127 of file mpi_utilities.cpp.
References append_file(), AS_LOCAL_ONLY, ASSERT, check_grid_file(), t_save::chFilenamePrefix, t_save::chRedirectPrefix, cpu, DEBUG_ENTRY, t_save::FITStype, fprintf(), grid, GridGatherOutput(), GridPointPrefix(), t_cpu::i(), ioQQQ, ipPun, t_grid::lgKeepMainOutputSeparate, t_cpu_i::lgMaster(), t_cpu_i::lgMPI(), t_save::lgSaveToSeparateFiles, mode_r, t_cpu_i::nCPU(), t_cpu_i::nRANK(), t_save::nsave, NUM_OUTPUT_TYPES, open_data(), save, saveFITSfile(), t_grid::totNumModels, and toupper().
Referenced by main().

| int total_insanity | ( | MPI_File | , | 
| int | , | ||
| MPI_Status * | |||
| ) | 
Definition at line 46 of file mpi_utilities.cpp.
| int MPI_ERR_INTERN | 
Definition at line 43 of file mpi_utilities.cpp.
Referenced by open_data().
| MPI_File MPI_FILE_NULL | 
Definition at line 44 of file mpi_utilities.cpp.
Referenced by open_data().
| int mpi_mode_a | 
Definition at line 55 of file mpi_utilities.cpp.
Referenced by GridGatherOutputParallel().
| int mpi_mode_r | 
Definition at line 53 of file mpi_utilities.cpp.
Referenced by open_data().
| int mpi_mode_w | 
Definition at line 54 of file mpi_utilities.cpp.
| int MPI_SUCCESS | 
Definition at line 42 of file mpi_utilities.cpp.
Referenced by open_data().
 1.8.5
 1.8.5