00001 /* 00002 * AuxDefs.h: Common definitions 00003 * DG++ 00004 * 00005 * Created by Adrian Lew on 9/4/06. 00006 * 00007 * Copyright (c) 2006 Adrian Lew 00008 * 00009 * Permission is hereby granted, free of charge, to any person obtaining 00010 * a copy of this software and associated documentation files (the 00011 * "Software"), to deal in the Software without restriction, including 00012 * without limitation the rights to use, copy, modify, merge, publish, 00013 * distribute, sublicense, and/or sell copies of the Software, and to 00014 * permit persons to whom the Software is furnished to do so, subject 00015 * to the following conditions: 00016 * 00017 * The above copyright notice and this permission notice shall be included 00018 * in all copies or substantial portions of the Software. 00019 * 00020 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00021 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00022 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00023 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 00024 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 00025 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 00026 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00027 */ 00028 00029 #ifndef _AUXDEFS_H_ 00030 #define _AUXDEFS_H_ 00031 00032 #include <cstddef> 00033 #include <vector> 00034 00036 typedef size_t GlobalNodalIndex; 00037 00039 typedef size_t GlobalDofIndex; 00040 00042 typedef size_t GlobalElementIndex; 00043 00044 00046 typedef std::vector<double> VecDouble; 00047 typedef std::vector< std::vector<double> > MatDouble; 00048 typedef std::vector< std::vector < std::vector < std::vector <double> > > > FourDVecDouble; 00049 00050 typedef std::vector<bool> VecBool; 00051 typedef std::vector< std::vector< bool> > MatBool; 00052 00053 00055 const double TOLERANCE = 1e-20; 00056 00057 #endif