PLUTO  4.4-patch2
Functions
restart.c File Reference

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

#include "pluto.h"

Functions

void RestartFromFile (const Data *d, 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@t.nosp@m.o.inf.nosp@m.n.it)
Date
Apr 15, 2021

Function Documentation

◆ RestartDump()

void RestartDump ( Runtime ini)

Write restart information needed for later restarts.

◆ RestartFromFile()

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

Read input binary / hdf5 data.

Parameters
[in]inipointer to Runtime structure
[in]nrestartnumber of restart file
[in]typespecifies the output data type (type should be either DBL_OUTPUT or DBL_H5_OUTPUT).
[in]gridpointer to an array of Grid structures

◆ RestartGet()

void RestartGet ( Runtime ini,
int  nrestart,
int  out_type,
int  swap_endian 
)

Collect restart information needed for (potential) later restarts.