cloudy
trunk
|
#include "cddefines.h"
#include "cddrive.h"
#include "input.h"
#include "prt.h"
#include "save.h"
#include "called.h"
#include "monitor_results.h"
#include "grid.h"
Go to the source code of this file.
Functions | |
exit_type | cdMain (int argc, const char *argv[]) |
void | print_delimiter (long nOptimiz) |
int | main (int argc, char *argv[]) |
exit_type cdMain | ( | int | argc, |
const char * | argv[] | ||
) |
cdMain: this is the main entry point for Cloudy
Definition at line 152 of file maincl.cpp.
References AS_LOCAL_ONLY_TRY, ASSERT, called, cdDrive(), cdExecTime(), cdEXIT, cdInit(), cdInput(), cdMemory(), cdNwcns(), cdOutput(), cdPrepareExit(), cdRead(), t_cpu_i::chDirSeparator(), t_save::chFilenamePrefix, t_save::chGridPrefix, t_save::chRedirectPrefix, bad_assert::comment(), cpu, t_input::curInclLevel, DEBUG_ENTRY, ES_BAD_ALLOC, ES_BAD_ASSERT, ES_BOTCHES, ES_BUS_ERROR, ES_CLOUDY_ABORT, ES_DOMAIN_ERROR, ES_FAILURE, ES_FP_EXCEPTION, ES_ILLEGAL_INSTRUCTION, ES_OUT_OF_RANGE, ES_SEGFAULT, ES_SUCCESS, ES_TERMINATION_REQUEST, ES_UNKNOWN_EXCEPTION, ES_UNKNOWN_SIGNAL, ES_USER_INTERRUPT, ES_WARNINGS, cloudy_exit::exit_status(), FALLTHROUGH, cloudy_exit::file(), bad_assert::file(), fprintf(), grid, t_cpu::i(), input, INPUT_LINE_LENGTH, ioQQQ, ioStdin, iteration, lgAbort, lgBigBotch, t_grid::lgGrid, lgInputEOF(), t_cpu_i::lgMaster(), lgMonitorsOK, t_cpu_i::lgMPI(), t_cpu_i::lgMPI_talk(), t_cpu_i::lgMPISingleRankMode(), t_grid::lgParseOnly, t_prt::lgPrintHTML, t_prt::lgPrintTime, t_called::lgTalk, t_optimize::lgVaryOn, cloudy_exit::line(), bad_assert::line(), MyAssert(), t_optimize::nOptimiz, t_cpu_i::nRANK(), nzone, open_data(), optimize, print_delimiter(), prt, read_whole_line(), cloudy_exit::routine(), save, t_cpu_i::setAssertAbort(), bad_signal::sig(), TotalInsanity(), and t_cpu_i::used_nCPU().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
main: this is a wrapper around cdMain. It takes care of the MPI stuff for non-MPI runs, this should do nothing more than call cdMain and exit.
Definition at line 27 of file maincl.cpp.
References cdMain(), t_save::chRedirectPrefix, cpu, DEBUG_ENTRY, ES_SUCCESS, load_balance::finalize(), grid, GridPointPrefix(), t_cpu::i(), t_grid::lgGrid, t_grid::lgGridDone, t_grid::lgInsideGrid, t_cpu_i::lgMaster(), t_cpu_i::lgMPI(), t_grid::lgParallel, t_grid::lgParseOnly, max(), MPI_Barrier, MPI_Comm_rank, MPI_Comm_size, MPI_Finalize, MPI_Init, t_cpu_i::nCPU(), load_balance::next_job(), t_optimize::nOptimiz, open_data(), optimize, process_output(), save, t_grid::seqNum, t_cpu_i::set_MPISingleRankMode(), t_cpu_i::set_nCPU(), t_cpu_i::set_nRANK(), t_cpu_i::set_signal_handlers(), t_cpu_i::set_used_nCPU(), t_save::SetSaveHeaderNeeded(), t_grid::totNumModels, and t_grid::useCPU.
|
inline |
Definition at line 17 of file maincl.cpp.
References fprintf(), and ioQQQ.
Referenced by cdMain().