GADGET-4
main.cc File Reference

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
 

Detailed Description

start of the program

Definition in file main.cc.

Function Documentation

◆ main()

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.

Definition at line 55 of file main.cc.

Variable Documentation

◆ All

Definition at line 40 of file main.cc.

◆ Driftfac

driftfac Driftfac

Definition at line 41 of file main.cc.

◆ Ewald

ewald Ewald

Definition at line 42 of file main.cc.

◆ Logs

logs Logs

Definition at line 43 of file main.cc.

◆ Mem

memory Mem

Definition at line 44 of file main.cc.

◆ Shmem

shmem Shmem

Definition at line 45 of file main.cc.