HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
utoprimgen.funcdeclare.h
Go to the documentation of this file.
1 
6 extern int Utoprimgen(int showmessages, int checkoninversiongas, int checkoninversionrad, int allowlocalfailurefixandnoreport, int finalstep, int *eomtype, int whichcap, int whichmethod, int modprim, int evolvetype, int inputtype, FTYPE *U, struct of_state *qptr, struct of_geom *ptrgeom, FTYPE dissmeasure, FTYPE *pi, FTYPE *pr, struct of_newtonstats *newtonstats);
7 extern int Utoprimloop(FTYPE (*unew)[NSTORE2][NSTORE3][NPR],FTYPE (*pf)[NSTORE2][NSTORE3][NPR], struct of_newtonstats *newtonstats);
8 extern int primtoUloop(FTYPE (*pi)[NSTORE2][NSTORE3][NPR],FTYPE (*unew)[NSTORE2][NSTORE3][NPR]);
9 
10 extern int Utoprim(int entropyeom, FTYPE *U, struct of_geom *geom, PFTYPE *lpflag, FTYPE *pr, FTYPE *pressure, struct of_newtonstats *newtonstats);
11 extern int Utoprim_ldz(FTYPE *U, struct of_geom *geom, PFTYPE *lpflag, FTYPE *pr, FTYPE *pressure, struct of_newtonstats *newtonstats);
12 extern int Utoprim_1d(FTYPE *U, struct of_geom *geom, PFTYPE *lpflag, FTYPE *pr, FTYPE *pressure, struct of_newtonstats *newtonstats);
13 extern int Utoprim_1d_opt(FTYPE *U, struct of_geom *geom, PFTYPE *lpflag, FTYPE *pr, FTYPE *pressure, struct of_newtonstats *newtonstats);
14 extern int Utoprim_2d(FTYPE *U, struct of_geom *geom, PFTYPE *lpflag, FTYPE *pr, FTYPE *pressure, struct of_newtonstats *newtonstats);
15 extern int Utoprim_1d_final(FTYPE *U, struct of_geom *geom, PFTYPE *lpflag, FTYPE *pr, FTYPE *pressure, struct of_newtonstats *newtonstats);
16 extern int Utoprim_2d_final(FTYPE *U, struct of_geom *geom, PFTYPE *lpflag, FTYPE *pr, FTYPE *pressure, struct of_newtonstats *newtonstats);
17 //extern int Utoprim_2d_final_nonrelcompat_inputnorestmass(FTYPE *U, struct of_geom *geom, PFTYPE *lpflag, FTYPE *pr, FTYPE *pressure, struct of_newtonstats *newtonstats); //wrong function name, corrected by atch, see below
18 extern int Utoprim_jon_nonrelcompat_inputnorestmass(int showmessages, int eomtype, FTYPE *EOSextra, FTYPE *U, struct of_geom *ptrgeom, PFTYPE *lpflag, FTYPE *prim, FTYPE *pressure, struct of_newtonstats *newtonstats);
19 extern int Utoprim_5d2_final(FTYPE *U, struct of_geom *geom, PFTYPE *lpflag, FTYPE *pr, FTYPE *pressure, struct of_newtonstats *newtonstats);
20 
21 extern int Utoprimdiss(int showmessages, int allowlocalfailurefixandnoreport, int evolvetype, int inputtype, FTYPE *U, struct of_geom *ptrgeom, FTYPE *pr, PFTYPE *otherfail, struct of_newtonstats *newtonstats, PFTYPE *lpflag);
22 
23 extern int badenergy(struct of_geom *ptrgeom, FTYPE *prenergy, FTYPE *prentropy);
24 
25 extern int whetherdoentropy(struct of_geom *ptrgeom, FTYPE fracenergy, int entropynotfail, int energynotfail, int radinvmodentropy, int radinvmodenergy, FTYPE tryerror, FTYPE okerror, FTYPE baderror, FTYPE entropyerror, FTYPE energyerror, FTYPE *entropypr, FTYPE *energypr);
26 
27 extern int set_fracenergy(int i, int j, int k, FTYPE dissmeasure, FTYPE *fracenergy);
28 
29 extern int entropyfixguess(struct of_state *q, struct of_geom *ptrgeom, FTYPE *uu, FTYPE *pp);
30 
31 
32 /* // dudp stuff */
33 
34 /* extern void dutdui_calc(FTYPE *ucon, FTYPE *dutdui); */
35 /* extern void duiduj_calc(FTYPE *ucon, FTYPE *dutdui); */
36 /* extern void dbtdui_calc(FTYPE *dutdui, FTYPE *pr, FTYPE *dbtdui); */
37 /* extern void dbiduj_calc(FTYPE *dbtdui, FTYPE *dutdui, FTYPE *ucon, */
38 /* FTYPE *b, FTYPE (*dbiduj)[NDIM]); */
39 /* extern void db2dui_calc(FTYPE (*dbiduj)[NDIM], FTYPE *b, */
40 /* FTYPE *db2dui); */
41 /* extern void duudud_calc(FTYPE *ucon, FTYPE (*duudud)[NDIM]); */
42 
43 /* extern void dbsqdui_calc(FTYPE (*dbiduj)[NDIM], FTYPE *b, */
44 /* FTYPE *dbsqdui); */
45 /* extern void dgdvi_calc(FTYPE *pr,FTYPE *dgdvi); */
46 /* extern void duidvj_calc(FTYPE *dgdv,FTYPE (*duidvj)[NDIM]); */
47 /* extern void dudduu_calc(FTYPE*dutdui, FTYPE (*dudduu)[NDIM]); */
48 /* extern void dbdiduj_calc(FTYPE (*dbiduj)[NDIM],FTYPE (*dbdiduj)[NDIM]); */
49 /* extern void ducon_dv3_calc(struct of_state *q,FTYPE (*ducon_dv)[NDIM]); */
50 extern int sp_stress_calc(FTYPE *pr, FTYPE (*tens_matt)[NDIM],
51  FTYPE (*tens_em)[NDIM], FTYPE *b,
52  FTYPE *ucon);
53 
54 extern int setnewtonstatsdefault(struct of_newtonstats *newtonstats);
55 
56 extern int isflowcold(FTYPE COLDFACTOR, int includerad, FTYPE *pb, struct of_geom *ptrgeom, struct of_state *q, FTYPE *uu0);
57 
58 extern int isflowffde(FTYPE FFDEFACTOR, FTYPE *pb, struct of_state *q);