#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <mpi.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/file.h>
#include <unistd.h>
#include <gsl/gsl_rng.h>
#include "allvars.h"
#include "proto.h"
Go to the source code of this file.
Functions | |
void | restart (int modus) |
Definition in file restart.c.
|
This function reads or writes the restart files. Each processor writes its own restart file, with the I/O being done in parallel. To avoid congestion of the disks you can tell the program to restrict the number of files that are simultaneously written to NumFilesWrittenInParallel. If modus>0 the restart()-routine reads, if modus==0 it writes a restart file. < defines maximum length of neighbour list < Maximum number of nodes in the top-level tree used for domain decomposition < Maximum number of nodes in the top-level tree used for domain decomposition < Maximum number of nodes in the top-level tree used for domain decomposition < Maximum number of nodes in the top-level tree used for domain decomposition < Maximum number of nodes in the top-level tree used for domain decomposition < Maximum number of nodes in the top-level tree used for domain decomposition < Maximum number of nodes in the top-level tree used for domain decomposition < Maximum number of nodes in the top-level tree used for domain decomposition Definition at line 35 of file restart.c. References All, allocate_memory(), NODE::d, DomainCenter, DomainCorner, DomainEndList, DomainFac, DomainHmax, DomainLen, DomainMoment, DomainMyLast, DomainMyStart, DomainNodeIndex, DomainStartList, DomainTask, DomainTreeNodeLen, endrun(), Extnodes_base, NODE::father, Father, FLOAT, force_treeallocate(), MAX_NGB, MaxNodes, global_data_all_processes::MaxPart, global_data_all_processes::MaxPartSph, MAXTOPNODES, N_gas, NODE::nextnode, Nextnode, ngb_treeallocate(), Nodes_base, NTask, global_data_all_processes::NumFilesWrittenInParallel, Numnodestree, NumPart, global_data_all_processes::OutputDir, P, global_data_all_processes::PartAllocFactor, random_generator, global_data_all_processes::RestartFile, NODE::sibling, SphP, ThisTask, global_data_all_processes::Time, global_data_all_processes::TotN_gas, global_data_all_processes::TotNumPart, global_data_all_processes::TreeAllocFactor, and NODE::u. |