fe_szabab_shape_0D.C
Go to the documentation of this file.00001 // The libMesh Finite Element Library. 00002 // Copyright (C) 2002-2012 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 namespace libMesh 00026 { 00027 00028 00029 00030 00031 template <> 00032 Real FE<0,SZABAB>::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,SZABAB>::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,SZABAB>::shape_deriv(const ElemType, 00057 const Order, 00058 const unsigned int, 00059 const unsigned int, 00060 const Point&) 00061 { 00062 // No spatial derivatives in 0D! 00063 libmesh_error(); 00064 return 0.; 00065 } 00066 00067 00068 00069 template <> 00070 Real FE<0,SZABAB>::shape_deriv(const Elem*, 00071 const Order, 00072 const unsigned int, 00073 const unsigned int, 00074 const Point&) 00075 { 00076 // No spatial derivatives in 0D! 00077 libmesh_error(); 00078 return 0.; 00079 } 00080 00081 00082 00083 00084 template <> 00085 Real FE<0,SZABAB>::shape_second_deriv(const ElemType, 00086 const Order, 00087 const unsigned int, 00088 const unsigned int, 00089 const Point&) 00090 { 00091 // No spatial derivatives in 0D! 00092 libmesh_error(); 00093 return 0.; 00094 } 00095 00096 00097 00098 template <> 00099 Real FE<0,SZABAB>::shape_second_deriv(const Elem*, 00100 const Order, 00101 const unsigned int, 00102 const unsigned int, 00103 const Point&) 00104 { 00105 // No spatial derivatives in 0D! 00106 libmesh_error(); 00107 return 0.; 00108 } 00109 00110 } // namespace libMesh
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:46 UTC
Hosted By: