00001 /* _______ __ 00002 / ___/ / ___ __ _ / / ___ 00003 / /__/ _ \/ _ \/ ' \/ _ \/ _ \ 00004 \___/_//_/\___/_/_/_/_.__/\___/ 00005 */ 00006 // 00007 // This software is copyright (C) by the Lawrence Berkeley 00008 // National Laboratory. Permission is granted to reproduce 00009 // this software for non-commercial purposes provided that 00010 // this notice is left intact. 00011 // 00012 // It is acknowledged that the U.S. Government has rights to 00013 // this software under Contract DE-AC03-765F00098 between 00014 // the U.S. Department of Energy and the University of 00015 // California. 00016 // 00017 // This software is provided as a professional and academic 00018 // contribution for joint exchange. Thus it is experimental, 00019 // is provided ``as is'', with no warranties of any kind 00020 // whatsoever, no support, no promise of updates, or printed 00021 // documentation. By using this software, you acknowledge 00022 // that the Lawrence Berkeley National Laboratory and 00023 // Regents of the University of California shall have no 00024 // liability with respect to the infringement of other 00025 // copyrights by any part of this software. 00026 // 00027 00028 // Constants used between C++ and Fortran to index the conserved and 00029 // primitive variables and to know the number of each. Also, the number 00030 // of slopes and fluxes are defined here. 00031 00032 #if (CH_SPACEDIM == 2) 00033 00034 #define WRHO 0 00035 #define WVELX 1 00036 #define WVELY 2 00037 #define WPRES 3 00038 00039 #define WNUM 4 00040 #define WSLOPE 4 00041 00042 #define URHO 0 00043 #define UMOMX 1 00044 #define UMOMY 2 00045 #define UENG 3 00046 00047 #define UNUM 4 00048 #define UFLUX 4 00049 00050 #endif 00051 00052 #if (CH_SPACEDIM == 3) 00053 00054 #define WRHO 0 00055 #define WVELX 1 00056 #define WVELY 2 00057 #define WVELZ 3 00058 #define WPRES 4 00059 00060 #define WNUM 5 00061 #define WSLOPE 5 00062 00063 #define URHO 0 00064 #define UMOMX 1 00065 #define UMOMY 2 00066 #define UMOMZ 3 00067 #define UENG 4 00068 00069 #define UNUM 5 00070 #define UFLUX 5 00071 00072 #endif