PLUTO  4.2
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions
restart.c File Reference

Restart PLUTO from binary or HDF5 double precision data files. More...

#include "pluto.h"

Functions

void RestartFromFile (Runtime *ini, int nrestart, int type, Grid *grid)
 
void RestartGet (Runtime *ini, int nrestart, int out_type, int swap_endian)
 
void RestartDump (Runtime *ini)
 

Detailed Description

This file collects the necessary functions for restarting PLUTO from a double precision binary or HDF5 file in the static grid version of the code.

Author
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
Aug 24, 2015

Function Documentation

void RestartDump ( Runtime ini)

Write restart information needed for later restarts.

void RestartFromFile ( Runtime ini,
int  nrestart,
int  type,
Grid grid 
)

Read input binary / hdf5 data.

Parameters
[in]ini
[in]nrestart
[in]typespecifies the output data type (type should be either DBL_OUTPUT or DBL_H5_OUTPUT).
[in]gridpointer to an array of Grid structures
void RestartGet ( Runtime ini,
int  nrestart,
int  out_type,
int  swap_endian 
)

Collect restart information needed for (potential) later restarts.