$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 00021 // Local includes 00022 #include "libmesh/fe.h" 00023 #include "libmesh/elem.h" 00024 00025 00026 namespace libMesh 00027 { 00028 00029 00030 00031 template <> 00032 Real FE<0,CLOUGH>::shape(const ElemType, 00033 const Order, 00034 const unsigned int libmesh_dbg_var(i), 00035 const Point&) 00036 { 00037 libmesh_assert_less (i, 1); 00038 return 1.; 00039 } 00040 00041 00042 00043 template <> 00044 Real FE<0,CLOUGH>::shape(const Elem*, 00045 const Order, 00046 const unsigned int libmesh_dbg_var(i), 00047 const Point&) 00048 { 00049 libmesh_assert_less (i, 1); 00050 return 1.; 00051 } 00052 00053 00054 00055 template <> 00056 Real FE<0,CLOUGH>::shape_deriv(const ElemType, 00057 const Order, 00058 const unsigned int, 00059 const unsigned int, 00060 const Point&) 00061 { 00062 libmesh_error_msg("No spatial derivatives in 0D!"); 00063 return 0.; 00064 } 00065 00066 00067 00068 template <> 00069 Real FE<0,CLOUGH>::shape_deriv(const Elem*, 00070 const Order, 00071 const unsigned int, 00072 const unsigned int, 00073 const Point&) 00074 { 00075 libmesh_error_msg("No spatial derivatives in 0D!"); 00076 return 0.; 00077 } 00078 00079 00080 00081 00082 template <> 00083 Real FE<0,CLOUGH>::shape_second_deriv(const ElemType, 00084 const Order, 00085 const unsigned int, 00086 const unsigned int, 00087 const Point&) 00088 { 00089 libmesh_error_msg("No spatial derivatives in 0D!"); 00090 return 0.; 00091 } 00092 00093 00094 00095 template <> 00096 Real FE<0,CLOUGH>::shape_second_deriv(const Elem*, 00097 const Order, 00098 const unsigned int, 00099 const unsigned int, 00100 const Point&) 00101 { 00102 libmesh_error_msg("No spatial derivatives in 0D!"); 00103 return 0.; 00104 } 00105 00106 } // namespace libMesh