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

All globally-related physics calculations THINGS IN HERE ARE NOT PER POINT OR USE GLOBAL VARIABLES or call get_geometry() More...

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

Go to the source code of this file.

Macros

#define VARSTATIC
 making variables static inside functions made things slower if anything would have thought consruction/destruction operations would be important why static makes slower? More...
 
#define MYII   ptrgeom->i
 macros to avoid messy function calls or restoring them as i,j,k More...
 
#define MYJJ   ptrgeom->j
 
#define MYKK   ptrgeom->k
 

Functions

int get_stateforfluxcalc (int dimen, int isleftright, FTYPE *pr, struct of_geom *ptrgeom, struct of_state **qptr)
 wrapper for choosing to get state by computing it or from global array notice that ptrgeom->p inputted not used More...
 
int get_stateforsource (FTYPE *pr, struct of_geom *ptrgeom, struct of_state **qptr)
 wrapper for choosing to get state by computing it or from global array pointer assign (overrides the existing default assignment of the pointer address in the calling function, so assumes calling function only uses pointer form subsequently) More...
 
int get_stateforinterpline (FTYPE *pr, struct of_geom *ptrgeom, struct of_state **qptr)
 wrapper for choosing to get state by computing it or from global array pointer assign (overrides the existing default assignment of the pointer address in the calling function, so assumes calling function only uses pointer form subsequently) More...
 
int get_stateforglobalwavespeeds (FTYPE *pr, struct of_geom *ptrgeom, struct of_state **qptr)
 wrapper for choosing to get state by computing it or from global array pointer assign (overrides the existing default assignment of the pointer address in the calling function, so assumes calling function only uses pointer form subsequently) More...
 
int source_conn (FTYPE *pr, struct of_geom *ptrgeom, struct of_state *q, FTYPE *dU)
 
void get_allgeometry (int ii, int jj, int kk, int pp, struct of_allgeom *allgeom, struct of_geom *ptrgeom)
 

Detailed Description

All globally-related physics calculations THINGS IN HERE ARE NOT PER POINT OR USE GLOBAL VARIABLES or call get_geometry()

Definition in file phys.c.

Macro Definition Documentation

#define MYII   ptrgeom->i

macros to avoid messy function calls or restoring them as i,j,k

Definition at line 20 of file phys.c.

#define MYJJ   ptrgeom->j

Definition at line 21 of file phys.c.

#define MYKK   ptrgeom->k

Definition at line 22 of file phys.c.

#define VARSTATIC

making variables static inside functions made things slower if anything would have thought consruction/destruction operations would be important why static makes slower?

Definition at line 16 of file phys.c.

Function Documentation

void get_allgeometry ( int  ii,
int  jj,
int  kk,
int  pp,
struct of_allgeom allgeom,
struct of_geom ptrgeom 
)

Definition at line 422 of file phys.c.

Here is the call graph for this function:

int get_stateforfluxcalc ( int  dimen,
int  isleftright,
FTYPE pr,
struct of_geom ptrgeom,
struct of_state **  qptr 
)

wrapper for choosing to get state by computing it or from global array notice that ptrgeom->p inputted not used

Definition at line 27 of file phys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int get_stateforglobalwavespeeds ( FTYPE pr,
struct of_geom ptrgeom,
struct of_state **  qptr 
)

wrapper for choosing to get state by computing it or from global array pointer assign (overrides the existing default assignment of the pointer address in the calling function, so assumes calling function only uses pointer form subsequently)

Definition at line 110 of file phys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int get_stateforinterpline ( FTYPE pr,
struct of_geom ptrgeom,
struct of_state **  qptr 
)

wrapper for choosing to get state by computing it or from global array pointer assign (overrides the existing default assignment of the pointer address in the calling function, so assumes calling function only uses pointer form subsequently)

Definition at line 82 of file phys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int get_stateforsource ( FTYPE pr,
struct of_geom ptrgeom,
struct of_state **  qptr 
)

wrapper for choosing to get state by computing it or from global array pointer assign (overrides the existing default assignment of the pointer address in the calling function, so assumes calling function only uses pointer form subsequently)

Definition at line 57 of file phys.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int source_conn ( FTYPE pr,
struct of_geom ptrgeom,
struct of_state q,
FTYPE dU 
)

Definition at line 138 of file phys.c.

Here is the call graph for this function:

Here is the caller graph for this function: