HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
dump.c File Reference

file dumping More...

#include "decs.h"
Include dependency graph for dump.c:

Go to the source code of this file.

Macros

#define DUMPHEADERLIST   tsteppartf, realtotalsize[1], realtotalsize[2], realtotalsize[3], realstartx[1], realstartx[2], realstartx[3], dx[1], dx[2], dx[3], localrealnstep,gam,a,R0,Rin,Rout,hslope,localdt,defcoord,MBH,QBH,EP3,THETAROT,is,ie,js,je,ks,ke,whichdump,whichdumpversion,numcolumnsvar, TRACKVPOT ,MCOORD ,DODISS ,DOEVOLVEMETRIC ,WHICHVEL ,WHICHEOM ,REMOVERESTMASSFROMUU ,RELTYPE ,EOMTYPE ,WHICHEOS ,DOENTROPY ,WHICHENTROPYEVOLVE ,CALCFARADAYANDCURRENTS ,DOPOLEDEATH ,DOPOLESMOOTH ,DOPOLEGAMMADEATH ,IF3DSPCTHENMPITRANSFERATPOLE ,EOMRADTYPE ,WHICHRADSOURCEMETHOD ,OUTERDEATH ,OUTERDEATHRADIUS
 
#define NUMFIELDLINEQUANTITIES   (11-2 + NUMYFL*(DOYFL!=0) + (DOYL!=0) + (DOYNU!=0) + (1+NDIM+11)*(EOMRADTYPE!=EOMRADNONE))
 

Functions

int fluxsimpledump (long dump_cnt)
 failure and floor dU dump More...
 
int fluxsimpledump_content (int i, int j, int k, MPI_Datatype datatype, void *writebuf)
 fluxsimple dump contents More...
 

Detailed Description

file dumping

mpi.h has following datatypes corresponding to the C types pick one per dump file. (no per column types yet) same for image.c same for restart.c

#define MPI_CHAR ((MPI_Datatype)1) #define MPI_UNSIGNED_CHAR ((MPI_Datatype)2) #define MPI_BYTE ((MPI_Datatype)3) #define MPI_SHORT ((MPI_Datatype)4) #define MPI_UNSIGNED_SHORT ((MPI_Datatype)5) #define MPI_INT ((MPI_Datatype)6) #define MPI_UNSIGNED ((MPI_Datatype)7) #define MPI_LONG ((MPI_Datatype)8) #define MPI_UNSIGNED_LONG ((MPI_Datatype)9) #define MPI_FLOAT ((MPI_Datatype)10) #define MPI_DOUBLE ((MPI_Datatype)11) #define MPI_LONG_DOUBLE ((MPI_Datatype)12) #define MPI_LONG_LONG_INT ((MPI_Datatype)13)

Follow these steps to create a new dump file

1) defs.???.h: create the storage variable if needed

2) set_array???.c : shift variable if necessary (follow examples)

3) global.nondepmnemonics.h : change NUMDUMPTYPES and add label and add to MYDUMPNAMELIST

4) global.???.h change NUMDUMPTYPES and MYDUMPNAMELIST and add another entry if want separate timing of output

5) dump.c : add dnumcolumns[LABEL]=NUMCOLUMNS where NUMCOLUMNS is number of entries in dump file

6) dump.c : follow examples from here (dump() uses dump_header() and dump_content()). One must define the header and content function and the wrapper (3 functions) or use an existing header function

7) diag.c : follow example of "dump", dumpc, tlastdump, etc. E.g. follow DISSDUMPTYPE and repeat for new entry. Two parts of code.

8) init.c : DTdumpgen, dumpcntgen, and other things. Unless default over array works.

9) global.dump.h : add global prototypes

Definition in file dump.c.

Macro Definition Documentation

#define DUMPHEADERLIST   tsteppartf, realtotalsize[1], realtotalsize[2], realtotalsize[3], realstartx[1], realstartx[2], realstartx[3], dx[1], dx[2], dx[3], localrealnstep,gam,a,R0,Rin,Rout,hslope,localdt,defcoord,MBH,QBH,EP3,THETAROT,is,ie,js,je,ks,ke,whichdump,whichdumpversion,numcolumnsvar, TRACKVPOT ,MCOORD ,DODISS ,DOEVOLVEMETRIC ,WHICHVEL ,WHICHEOM ,REMOVERESTMASSFROMUU ,RELTYPE ,EOMTYPE ,WHICHEOS ,DOENTROPY ,WHICHENTROPYEVOLVE ,CALCFARADAYANDCURRENTS ,DOPOLEDEATH ,DOPOLESMOOTH ,DOPOLEGAMMADEATH ,IF3DSPCTHENMPITRANSFERATPOLE ,EOMRADTYPE ,WHICHRADSOURCEMETHOD ,OUTERDEATH ,OUTERDEATHRADIUS
#define NUMFIELDLINEQUANTITIES   (11-2 + NUMYFL*(DOYFL!=0) + (DOYL!=0) + (DOYNU!=0) + (1+NDIM+11)*(EOMRADTYPE!=EOMRADNONE))

Function Documentation

int fluxsimpledump ( long  dump_cnt)

failure and floor dU dump

Definition at line 2116 of file dump.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fluxsimpledump_content ( int  i,
int  j,
int  k,
MPI_Datatype  datatype,
void *  writebuf 
)

fluxsimple dump contents

Definition at line 2164 of file dump.c.

Here is the caller graph for this function: