Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

LGintegrator.H

Go to the documentation of this file.
00001 #if CH_LANG_CC
00002 /* _______              __
00003   / ___/ /  ___  __ _  / /  ___
00004  / /__/ _ \/ _ \/  ' \/ _ \/ _ \
00005  \___/_//_/\___/_/_/_/_.__/\___/
00006 */
00007 //
00008 // This software is copyright (C) by the Lawrence Berkeley
00009 // National Laboratory.  Permission is granted to reproduce
00010 // this software for non-commercial purposes provided that
00011 // this notice is left intact.
00012 //
00013 // It is acknowledged that the U.S. Government has rights to
00014 // this software under Contract DE-AC03-765F00098 between
00015 // the U.S.  Department of Energy and the University of
00016 // California.
00017 //
00018 // This software is provided as a professional and academic
00019 // contribution for joint exchange. Thus it is experimental,
00020 // is provided ``as is'', with no warranties of any kind
00021 // whatsoever, no support, no promise of updates, or printed
00022 // documentation. By using this software, you acknowledge
00023 // that the Lawrence Berkeley National Laboratory and
00024 // Regents of the University of California shall have no
00025 // liability with respect to the infringement of other
00026 // copyrights by any part of this software.
00027 //
00028 
00029 // Constants used between C++ and Fortran to index the conserved and
00030 // primitive variables and to know the number of each.  Also, the number
00031 // of slopes and fluxes are defined here.
00032 #endif
00033 
00034 #if CH_LANG_CC
00035 /*
00036  * a few comments
00037  * NCRP = N. components for CRPs
00038  * NCRE = N. components for CREs
00039  * WCRP0= (WMAGX+NMAG) ;  if NMAG=0 -> WCRP0=5/6 in 2/3 dimensions
00040  * WNUM  += NCRP+2  for Pc, Gc 
00041  * WSLOPE +=2  for CR pressure, gamma_cr
00042  * UFLUX  +=1  for CR pressure
00043  *
00044  */
00045 #endif
00046 
00047 #ifndef CH_LGINTEGRATOR_H
00048 #define CH_LGINTEGRATOR_H
00049 
00050 #define GAS
00051 #define GRAVITY
00052 
00053 #undef  DARKMATTER
00054 #undef  COSMEXP
00055 #undef  COOLING
00056 #undef  STARS
00057 #undef  CRP
00058 #undef  CRE
00059 #undef  MHD
00060 #undef  METALS
00061 
00062 #undef  INFINITE_DOMAIN_BC
00063 
00064 #define STAGGERED_FORCE
00065 #undef  STAGGERED_FORCE
00066 
00067 #if (defined(GRAVITY))
00068 # define SOURCE
00069 #endif
00070 
00071 #ifdef CH_LANG_CC
00072 #  ifdef STAGGERED_FORCE
00073      class FluxBox;
00074      typedef FluxBox ForceBox;
00075 #  else
00076      class FArrayBox;
00077      typedef FArrayBox ForceBox;
00078 #  endif 
00079 #endif 
00080 
00081 
00082 #if (CH_SPACEDIM == 2)
00083 
00084 #define WRHO   0
00085 #define WVELX  1
00086 #define WVELY  2
00087 #define WPRES  3
00088 #define WENTR  4
00089 
00090 #define WNUM   (5) 
00091 #define WSLOPE (5)
00092 
00093 #define URHO  0
00094 #define UMOMX 1
00095 #define UMOMY 2
00096 #define UENG  3
00097 #define UENTR 4
00098 
00099 #define UNUM  (5)
00100 #define UFLUX (5)
00101 
00102 #define MWAVE 0
00103 #define ZWAVE 1
00104 #define SWAVE 3
00105 #define PWAVE 4
00106 
00107 #endif
00108 
00109 #if (CH_SPACEDIM == 3)
00110 
00111 #define WRHO   0
00112 #define WVELX  1
00113 #define WVELY  2
00114 #define WVELZ  3
00115 #define WPRES  4
00116 #define WENTR  5
00117 
00118 #define WNUM   (6)
00119 #define WSLOPE (6)
00120 
00121 #define URHO  0
00122 #define UMOMX 1
00123 #define UMOMY 2
00124 #define UMOMZ 3
00125 #define UENG  4
00126 #define UENTR 5
00127 
00128 #define UNUM  (6)
00129 #define UFLUX (6)
00130 
00131 #define MWAVE 0
00132 #define ZWAVE 1
00133 #define SWAVE 4
00134 #define PWAVE 5
00135 
00136 #endif
00137 
00138 #endif
00139 
00140 

Generated on Wed Oct 5 13:52:09 2005 for Chombo&AMRSelfGravity by  doxygen 1.4.1