The FARGO_THORIN code developer's guide
 All Data Structures Files Functions Variables Typedefs Macros
Functions | Variables
rebin.c File Reference

Resample the hydrodynamical fields at a restart with a different resolution. More...

#include "fargo.h"
Include dependency graph for rebin.c:

Go to the source code of this file.

Functions

void ReadPrevDim ()
 
void CheckRebin (int nb)
 

Variables

static real OldRadii [MAX1D]
 
static real OldRmed [MAX1D]
 
static real New_r [MAX1D]
 
static int OldNRAD
 
static int OldNSEC
 

Detailed Description

Resample the hydrodynamical fields at a restart with a different resolution.

Note that at the restart, even if NRAD and NSEC coincide with previous values, the data is resampled if the radii do not coincide (for instance, if we switch from ARITHMETIC to LOGARITHMIC spacing).

Definition in file rebin.c.

Function Documentation

void CheckRebin ( int  nb)

Definition at line 43 of file rebin.c.

References CPU_Master, fopenp(), GLOBALNRAD, GlobalRmed, mastererr(), New_r, NO, NRAD, NSEC, OldNRAD, OldNSEC, OldRadii, OldRmed, OUTPUTDIR, prs_exit(), Radii, and YES.

Here is the call graph for this function:

void ReadPrevDim ( )

Definition at line 16 of file rebin.c.

References CPU_Master, OldNRAD, OldNSEC, OldRadii, OldRmed, and OUTPUTDIR.

Referenced by Initialization().

Here is the caller graph for this function:

Variable Documentation

real New_r[MAX1D]
static

Definition at line 13 of file rebin.c.

Referenced by CheckRebin().

int OldNRAD
static

Definition at line 14 of file rebin.c.

Referenced by CheckRebin(), and ReadPrevDim().

int OldNSEC
static

Definition at line 14 of file rebin.c.

Referenced by CheckRebin(), and ReadPrevDim().

real OldRadii[MAX1D]
static

Definition at line 13 of file rebin.c.

Referenced by CheckRebin(), and ReadPrevDim().

real OldRmed[MAX1D]
static

Definition at line 13 of file rebin.c.

Referenced by CheckRebin(), and ReadPrevDim().