Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 1.27 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. struct error of conflicting [closed]
  2. static double * HotOrWarm(const double * const hot,
  3.                       const double * const warm,
  4.                       const JetNorm * const jn);
  5.  
  6.  void INIT (real *us, real x1, real x2, real x3,
  7.        int i, int j, int k, int *prim_var)
  8.        
  9. HotHaloPrimitives(halo_primitives, &norm, x1, x2, x3);
  10.  
  11. #if CLOUDS == SINGLE_CUBE
  12. if ( CloudCubePixel(cube_pixel, x1, x2, x3) ){
  13.   CloudPrimitives(cloud_primitives, cube_pixel, x1, x2, x3, &norm, halo_primitives, us);
  14.   zone = HotOrWarm(halo_primitives, cloud_primitives, &norm);
  15.   for (nv = 0; nv < NVAR; ++nv) us[nv] = zone[nv];
  16. }
  17.  
  18.  
  19.   static double * HotOrWarm(double * const hot,
  20.                       double * const warm,
  21.                       const JetNorm * const jn) {
  22.  
  23.   double wtemp;
  24.   double primitives[NVAR];
  25.   double mu;
  26.   int nv;
  27. /* Set dummy primitives to get mu */
  28.  primitives[DN] = 1.;
  29.  primitives[VX] = 0.;
  30.  mu = MEAN_MOLECULAR_WEIGHT(primitives);
  31.  wtemp = tempFromEOS(warm[DN], warm[PR], mu)*jn->temp_norm;
  32.  #ifndef TCRIT
  33.  fputs("Error: TCRIT not defined.n", stderr); QUIT_PLUTO(1);
  34.  #endif
  35.  
  36.  if (wtemp > TCRIT){
  37.  //for (nv = 0; nv < NVAR; ++nv) zone[nv] = hot[nv];
  38.  return hot;
  39.  }
  40.  else{
  41.  return warm;
  42.  }
  43.  
  44.  }
  45.        
  46. void myMethod();
  47.        
  48. void MyClass::myMethod() {
  49.     //...
  50. }
  51.        
  52. myMethod();