Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

main.c File Reference

start of the program More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <mpi.h>
#include "allvars.h"
#include "proto.h"

Go to the source code of this file.

Functions

int main (int argc, char **argv)


Detailed Description

start of the program

Definition in file main.c.


Function Documentation

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 22 of file main.c.

References All, begrun(), global_data_all_processes::CPU_CommSum, global_data_all_processes::CPU_Domain, global_data_all_processes::CPU_EnsureNgb, global_data_all_processes::CPU_Gravity, global_data_all_processes::CPU_HydCommSumm, global_data_all_processes::CPU_HydCompWalk, global_data_all_processes::CPU_HydImbalance, global_data_all_processes::CPU_Hydro, global_data_all_processes::CPU_Imbalance, global_data_all_processes::CPU_Peano, global_data_all_processes::CPU_PM, global_data_all_processes::CPU_Potential, global_data_all_processes::CPU_Predict, global_data_all_processes::CPU_Snapshot, global_data_all_processes::CPU_TimeLine, global_data_all_processes::CPU_Total, global_data_all_processes::CPU_TreeConstruction, global_data_all_processes::CPU_TreeWalk, CPUThisRun, endrun(), NTask, ParameterFile, PTask, RestartFlag, run(), second(), ThisTask, and timediff().


Generated on Sun May 22 17:33:30 2005 for GADGET-2 by  doxygen 1.3.9.1