$extrastylesheet
00001 // The libMesh Finite Element Library. 00002 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner 00003 00004 // This library is free software; you can redistribute it and/or 00005 // modify it under the terms of the GNU Lesser General Public 00006 // License as published by the Free Software Foundation; either 00007 // version 2.1 of the License, or (at your option) any later version. 00008 00009 // This library is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 // Lesser General Public License for more details. 00013 00014 // You should have received a copy of the GNU Lesser General Public 00015 // License along with this library; if not, write to the Free Software 00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 00018 00019 // C++ includes 00020 #include <iostream> 00021 00022 // Local includes 00023 #include "libmesh/libmesh_common.h" 00024 #include "libmesh/quadrature_rules.h" 00025 00026 namespace libMesh 00027 { 00028 00029 00030 00031 std::string QuadratureRules::name (const QuadratureType q) 00032 { 00033 std::string its_name; 00034 00035 switch (q) 00036 { 00037 00038 case QGAUSS: 00039 its_name = "Gauss-Legendre Quadrature"; 00040 break; 00041 00042 case QJACOBI_1_0: 00043 its_name = "Jacobi(1,0)-Gauss Quadrature"; 00044 break; 00045 00046 case QJACOBI_2_0: 00047 its_name = "Jacobi(2,0)-Gauss Quadrature"; 00048 break; 00049 00050 case QSIMPSON: 00051 its_name = "Simpson Rule"; 00052 break; 00053 00054 case QTRAP: 00055 its_name = "Trapezoidal Rule"; 00056 break; 00057 00058 default: 00059 libmesh_error_msg("ERROR: Bad qt=" << q); 00060 } 00061 00062 return its_name; 00063 } 00064 00065 } // namespace libMesh