GADGET-4
|
start of the program More...
#include "gadgetconfig.h"
#include <gsl/gsl_math.h>
#include <math.h>
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "../cooling_sfr/cooling.h"
#include "../data/allvars.h"
#include "../data/dtypes.h"
#include "../half/half.hpp"
#include "../io/io.h"
#include "../io/restart.h"
#include "../io/snap_io.h"
#include "../logs/logs.h"
#include "../main/main.h"
#include "../main/simulation.h"
#include "../mergertree/mergertree.h"
#include "../mpi_utils/shared_mem_handler.h"
#include "../ngenic/ngenic.h"
#include "../system/system.h"
#include "../time_integration/driftfac.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
Variables | |
global_data_all_processes | All |
driftfac | Driftfac |
ewald | Ewald |
logs | Logs |
memory | Mem |
shmem | Shmem |
start of the program
Definition in file main.cc.
int main | ( | int | argc, |
char ** | argv | ||
) |
This function initializes the MPI communication packages, and sets cpu-time counters to 0. Then begrun1() is called, which sets up the simulation. Then either IC's or restart files are loaded. In case of IC's init() is called which prepares the IC's for the run. A call to begrun2() finishes the initialization. Finally, run() is started, the main simulation loop, which iterates over the timesteps.