00001 #if CH_LANG_CC 00002 /* _______ __ 00003 / ___/ / ___ __ _ / / ___ 00004 / /__/ _ \/ _ \/ V \/ _ \/ _ \ 00005 \___/_//_/\___/_/_/_/_.__/\___/ 00006 */ 00007 // CHOMBO Copyright (c) 2000-2004, The Regents of the University of 00008 // California, through Lawrence Berkeley National Laboratory (subject to 00009 // receipt of any required approvals from U.S. Dept. of Energy). All 00010 // rights reserved. 00011 // 00012 // Redistribution and use in source and binary forms, with or without 00013 // modification, are permitted provided that the following conditions are met: 00014 // 00015 // (1) Redistributions of source code must retain the above copyright 00016 // notice, this list of conditions and the following disclaimer. 00017 // (2) Redistributions in binary form must reproduce the above copyright 00018 // notice, this list of conditions and the following disclaimer in the 00019 // documentation and/or other materials provided with the distribution. 00020 // (3) Neither the name of Lawrence Berkeley National Laboratory, U.S. 00021 // Dept. of Energy nor the names of its contributors may be used to endorse 00022 // or promote products derived from this software without specific prior 00023 // written permission. 00024 // 00025 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00026 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 00027 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00028 // PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 00029 // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00030 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00031 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00032 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00033 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00034 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00035 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00036 // 00037 // You are under no obligation whatsoever to provide any bug fixes, 00038 // patches, or upgrades to the features, functionality or performance of 00039 // the source code ("Enhancements") to anyone; however, if you choose to 00040 // make your Enhancements available either publicly, or directly to 00041 // Lawrence Berkeley National Laboratory, without imposing a separate 00042 // written license agreement for such Enhancements, then you hereby grant 00043 // the following license: a non-exclusive, royalty-free perpetual license 00044 // to install, use, modify, prepare derivative works, incorporate into 00045 // other computer software, distribute, and sublicense such Enhancements or 00046 // derivative works thereof, in binary and source code form. 00047 // 00048 // TRADEMARKS. Product and company names mentioned herein may be the 00049 // trademarks of their respective owners. Any rights not expressly granted 00050 // herein are reserved. 00051 // 00052 00053 // Constants used between C++ and Fortran to index the conserved and 00054 // primitive variables and to know the number of each. Also, the number 00055 // of slopes and fluxes are defined here. 00056 #endif 00057 00058 #ifndef _LGINTEGRATOR_H_ 00059 #define _LGINTEGRATOR_H_ 00060 00061 #if (CH_SPACEDIM == 2) 00062 00063 #define WRHO 0 00064 #define WVELX 1 00065 #define WVELY 2 00066 #define WVELZ 3 00067 #define WBX 4 00068 #define WBY 5 00069 #define WBZ 6 00070 #define WPRES 7 00071 #define WC 8 00072 00073 #define WNUM 8 00074 #define WSLOPE 8 00075 00076 #define URHO 0 00077 #define UMOMX 1 00078 #define UMOMY 2 00079 #define UMOMZ 3 00080 #define UBX 4 00081 #define UBY 5 00082 #define UBZ 6 00083 #define UENG 7 00084 #define DIVB 8 00085 #define UFACE 9 00086 #define VFACE 10 00087 #define WFACE 11 00088 #define BXFACE 12 00089 #define BYFACE 13 00090 #define BZFACE 14 00091 00092 #define UNUM 8 00093 #define UFLUX 15 00094 00095 #endif 00096 00097 #if (CH_SPACEDIM == 3) 00098 00099 #define WRHO 0 00100 #define WVELX 1 00101 #define WVELY 2 00102 #define WVELZ 3 00103 #define WBX 4 00104 #define WBY 5 00105 #define WBZ 6 00106 #define WPRES 7 00107 #define WC 8 00108 00109 #define WNUM 8 00110 #define WSLOPE 8 00111 00112 #define URHO 0 00113 #define UMOMX 1 00114 #define UMOMY 2 00115 #define UMOMZ 3 00116 #define UBX 4 00117 #define UBY 5 00118 #define UBZ 6 00119 #define UENG 7 00120 #define DIVB 8 00121 #define UFACE 9 00122 #define VFACE 10 00123 #define WFACE 11 00124 #define BXFACE 12 00125 #define BYFACE 13 00126 #define BZFACE 14 00127 00128 #define UNUM 8 00129 #define UFLUX 8 00130 00131 #endif 00132 00133 #endif