HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
set_grid.funcdeclare.h File Reference

function declarations for global use of set_grid.c functions More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GETLOCALMETRIC(loc, i, j, k)   assignmetricstorage_old(loc, i, j, k, &localgcov, &localgcon, &localgcovpert, &localgdet, &localgdetvol, &localalphalapse, &localbetasqoalphasq, &localbeta, &localeomfunc)
 
#define GETLASTLOCALMETRIC(loc, i, j, k)   assignmetricstorage_oldlast(loc, i, j, k, &localgcov, &localgcon, &localgcovpert, &localgdet, &localgdetvol, &localalphalapse, &localbetasqoalphasq, &localbeta, &localeomfunc)
 
#define LOCALMETRICTEMPVARS
 

Functions

void set_grid (int whichtime, FTYPE *CUf, FTYPE *Cunew)
 GODMARK: may want to make grid functions explicitly 2D for axisymmetric space-times when in axisymmetry with space-time axis aligned with grid. More...
 
int assignmetricstorage_new (struct of_compgeom *mygeom, FTYPE **localgcov, FTYPE **localgcon, FTYPE **localgcovpert, FTYPE **localgdet, FTYPE **localgdetvol, FTYPE **localalphalapse, FTYPE **localbetasqoalphasq, FTYPE **beta, FTYPE **localeomfunc)
 translate compgeom to some local quantities at loc,i,j,k More...
 
int assignmetricstorage_oldlast (int loc, int i, int j, int k, FTYPE **localgcov, FTYPE **localgcon, FTYPE **localgcovpert, FTYPE **localgdet, FTYPE **localgdetvol, FTYPE **localalphalapse, FTYPE **localbetasqoalphasq, FTYPE **beta, FTYPE **localeomfunc)
 old use of arrays: translate compgeom to some local quantities at loc,i,j,k uses globals More...
 

Detailed Description

function declarations for global use of set_grid.c functions

Definition in file set_grid.funcdeclare.h.

Macro Definition Documentation

#define GETLASTLOCALMETRIC (   loc,
  i,
  j,
 
)    assignmetricstorage_oldlast(loc, i, j, k, &localgcov, &localgcon, &localgcovpert, &localgdet, &localgdetvol, &localalphalapse, &localbetasqoalphasq, &localbeta, &localeomfunc)

Definition at line 21 of file set_grid.funcdeclare.h.

#define GETLOCALMETRIC (   loc,
  i,
  j,
 
)    assignmetricstorage_old(loc, i, j, k, &localgcov, &localgcon, &localgcovpert, &localgdet, &localgdetvol, &localalphalapse, &localbetasqoalphasq, &localbeta, &localeomfunc)

Definition at line 20 of file set_grid.funcdeclare.h.

#define LOCALMETRICTEMPVARS
Value:
FTYPE *localgcov; \
FTYPE *localgcon; \
FTYPE *localgcovpert; \
FTYPE *localgdet,*localgdetvol; \
FTYPE *localalphalapse; \
FTYPE *localbetasqoalphasq; \
FTYPE *localbeta; \
FTYPE *localeomfunc;

Definition at line 27 of file set_grid.funcdeclare.h.

Function Documentation

int assignmetricstorage_new ( struct of_compgeom mygeom,
FTYPE **  localgcov,
FTYPE **  localgcon,
FTYPE **  localgcovpert,
FTYPE **  localgdet,
FTYPE **  localgdetvol,
FTYPE **  localalphalapse,
FTYPE **  localbetasqoalphasq,
FTYPE **  beta,
FTYPE **  localeomfunc 
)

translate compgeom to some local quantities at loc,i,j,k

Definition at line 27 of file set_grid.c.

int assignmetricstorage_oldlast ( int  loc,
int  i,
int  j,
int  k,
FTYPE **  localgcov,
FTYPE **  localgcon,
FTYPE **  localgcovpert,
FTYPE **  localgdet,
FTYPE **  localgdetvol,
FTYPE **  localalphalapse,
FTYPE **  localbetasqoalphasq,
FTYPE **  beta,
FTYPE **  localeomfunc 
)

old use of arrays: translate compgeom to some local quantities at loc,i,j,k uses globals

Definition at line 83 of file set_grid.c.

void set_grid ( int  whichtime,
FTYPE CUf,
FTYPE Cunew 
)

GODMARK: may want to make grid functions explicitly 2D for axisymmetric space-times when in axisymmetry with space-time axis aligned with grid.

set up all grid functions

whichtime: 0: setting initial coordinate and metric quantities. Can be called many times to solve initial value problem of coupled matter-metric system of equations. Should NOT be treated as a single call for entire simulation. 1: Setting a future metric such that old metric can be used to compute connection with temporal changes incorporated

CUf/Cunew: time-step for substeps used to iterate the metric and store into old metric when can take temporal difference and use as slope for present value of connection calculation

Definition at line 120 of file set_grid.c.

Here is the call graph for this function:

Here is the caller graph for this function: