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

restart.c File Reference

Code for reading and writing restart files. More...

#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)


Detailed Description

Code for reading and writing restart files.

Definition in file restart.c.


Function Documentation

void restart int  modus  ) 
 

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.

Referenced by begrun(), and run().


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