$extrastylesheet
fe_scalar_shape_1D.C
Go to the documentation of this file.
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 namespace libMesh
00026 {
00027 
00028 template <>
00029 Real FE<1,SCALAR>::shape(const ElemType,
00030                          const Order,
00031                          const unsigned int,
00032                          const Point&)
00033 {
00034   return 1.;
00035 }
00036 
00037 template <>
00038 Real FE<1,SCALAR>::shape(const Elem*,
00039                          const Order,
00040                          const unsigned int,
00041                          const Point&)
00042 {
00043   return 1.;
00044 }
00045 
00046 template <>
00047 Real FE<1,SCALAR>::shape_deriv(const ElemType,
00048                                const Order,
00049                                const unsigned int,
00050                                const unsigned int,
00051                                const Point&)
00052 {
00053   return 0.;
00054 }
00055 
00056 template <>
00057 Real FE<1,SCALAR>::shape_deriv(const Elem*,
00058                                const Order,
00059                                const unsigned int,
00060                                const unsigned int,
00061                                const Point&)
00062 {
00063   return 0.;
00064 }
00065 
00066 template <>
00067 Real FE<1,SCALAR>::shape_second_deriv(const ElemType,
00068                                       const Order,
00069                                       const unsigned int,
00070                                       const unsigned int,
00071                                       const Point&)
00072 {
00073   return 0.;
00074 }
00075 
00076 template <>
00077 Real FE<1,SCALAR>::shape_second_deriv(const Elem*,
00078                                       const Order,
00079                                       const unsigned int,
00080                                       const unsigned int,
00081                                       const Point&)
00082 {
00083   return 0.;
00084 }
00085 
00086 } // namespace libMesh