MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
start of the program More...
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/resource.h>
#include <unistd.h>
#include <math.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_errno.h>
#include <omp.h>
#include <libgadget/slotsmanager.h>
#include <libgadget/partmanager.h>
#include <libgadget/run.h>
#include <libgadget/checkpoint.h>
#include <libgadget/config.h>
#include <libgadget/utils.h>
#include "params.h"
Go to the source code of this file.
Functions | |
void | gsl_handler (const char *reason, const char *file, int line, int gsl_errno) |
int | main (int argc, char **argv) |
start of the program
Definition in file main.c.
void gsl_handler | ( | const char * | reason, |
const char * | file, | ||
int | line, | ||
int | gsl_errno | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
This function initializes the MPI communication packages, and sets cpu-time counters to 0. Then begrun() is called, which sets up the simulation either from IC's or from restart files. Finally, run() is started, the main simulation loop, which iterates over the timesteps.
Definition at line 39 of file main.c.
References begrun(), endrun(), find_last_snapshot(), GADGET_COMPILER_SETTINGS, GADGET_VERSION, gsl_handler(), init_endrun(), message(), mymalloc_init(), NTask, read_parameter_file(), run(), runfof(), runpower(), runtests(), ShowBacktrace, tamalloc_init(), and ThisTask.