PLUTO
4.4-patch2
|
Initialize PLUTO. More...
#include "pluto.h"
Functions | |
static int | GetDecompMode (cmdLine *cmd_line, int procs[]) |
void | Initialize (Data *data, Runtime *runtime, Grid *grid, cmdLine *cmd_line) |
Initialize() performs a number of initialization tasks before starting the main computation loop.
More precisely, it completes the following sequence of steps:
The function GetDecompMode() sets the parallel domain decomposition mode which can be equal to
|
static |
Returns the parallel domain decomposition mode.
[in] | cmd_line | pointer to the cmdLine structure |
[out] | procs | an array of integers giving the number of processors in each direction only if the -dec command line option has been given |
Initialize computational grid, domain decomposition and memory allocation. Also, set initial conditions and output attributes.
[in] | argc | the number of command-line argument passed to the code |
[in] | argv | the argument value as a 1D array of char |
[in,out] | data | a pointer to the main PLUTO data structure |
[in,out] | runtime | a pointer to the Runtime structure |
[in] | grid | pointer to an array of Grid structures |
[in] | cmd_line | pointer to the cmdLine structure |