
Untitled
By: a guest on
Apr 24th, 2012 | syntax:
None | size: 1.27 KB | hits: 12 | expires: Never
struct error of conflicting [closed]
static double * HotOrWarm(const double * const hot,
const double * const warm,
const JetNorm * const jn);
void INIT (real *us, real x1, real x2, real x3,
int i, int j, int k, int *prim_var)
HotHaloPrimitives(halo_primitives, &norm, x1, x2, x3);
#if CLOUDS == SINGLE_CUBE
if ( CloudCubePixel(cube_pixel, x1, x2, x3) ){
CloudPrimitives(cloud_primitives, cube_pixel, x1, x2, x3, &norm, halo_primitives, us);
zone = HotOrWarm(halo_primitives, cloud_primitives, &norm);
for (nv = 0; nv < NVAR; ++nv) us[nv] = zone[nv];
}
static double * HotOrWarm(double * const hot,
double * const warm,
const JetNorm * const jn) {
double wtemp;
double primitives[NVAR];
double mu;
int nv;
/* Set dummy primitives to get mu */
primitives[DN] = 1.;
primitives[VX] = 0.;
mu = MEAN_MOLECULAR_WEIGHT(primitives);
wtemp = tempFromEOS(warm[DN], warm[PR], mu)*jn->temp_norm;
#ifndef TCRIT
fputs("Error: TCRIT not defined.n", stderr); QUIT_PLUTO(1);
#endif
if (wtemp > TCRIT){
//for (nv = 0; nv < NVAR; ++nv) zone[nv] = hot[nv];
return hot;
}
else{
return warm;
}
}
void myMethod();
void MyClass::myMethod() {
//...
}
myMethod();