MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "petaio.h"
#include "checkpoint.h"
#include "walltime.h"
#include "fof.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
void | write_checkpoint (int snapnum, int WriteGroupID, int MetalReturnOn, double Time, const Cosmology *CP, const char *OutputDir, const int OutputDebugFields) |
void | dump_snapshot (const char *dump, const double Time, const Cosmology *CP, const char *OutputDir) |
int | find_last_snapnum (const char *OutputDir) |
void dump_snapshot | ( | const char * | dump, |
const double | Time, | ||
const Cosmology * | CP, | ||
const char * | OutputDir | ||
) |
Definition at line 52 of file checkpoint.c.
References CP, destroy_io_blocks(), fastpm_strdup_printf(), petaio_save_snapshot(), register_debug_io_blocks(), and register_io_blocks().
Referenced by force_tree_build(), and run().
int find_last_snapnum | ( | const char * | OutputDir | ) |
Definition at line 63 of file checkpoint.c.
References endrun(), fastpm_strdup_printf(), myfree, and ThisTask.
Referenced by find_last_snapshot().
void write_checkpoint | ( | int | snapnum, |
int | WriteGroupID, | ||
int | MetalReturnOn, | ||
double | Time, | ||
const Cosmology * | CP, | ||
const char * | OutputDir, | ||
const int | OutputDebugFields | ||
) |
Definition at line 24 of file checkpoint.c.
References CP, destroy_io_blocks(), fastpm_strdup_printf(), myfree, petaio_get_snapshot_fname(), petaio_save_snapshot(), register_debug_io_blocks(), register_io_blocks(), ThisTask, and walltime_measure.
Referenced by run().