Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85231070
shape_functions_inline_impl.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Sep 27, 16:28
Size
2 KB
Mime Type
text/x-c++
Expires
Sun, Sep 29, 16:28 (2 d)
Engine
blob
Format
Raw Data
Handle
21119520
Attached To
rAKA akantu
shape_functions_inline_impl.cc
View Options
/**
* @file shape_functions_inline_impl.cc
* @author Fabian Barras <fabian.barras@epfl.ch>
* @date Fri Apr 1 13:57:05 2011
*
* @brief
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
inline
UInt
ShapeFunctions
::
getShapeSize
(
const
ElementType
&
type
)
{
AKANTU_DEBUG_IN
();
UInt
shape_size
=
0
;
#define GET_SHAPE_SIZE(type) \
shape_size = ElementClass<type>::getShapeSize()
AKANTU_BOOST_ELEMENT_SWITCH
(
GET_SHAPE_SIZE
);
#undef GET_SHAPE_SIZE
AKANTU_DEBUG_OUT
();
return
shape_size
;
}
/* -------------------------------------------------------------------------- */
inline
UInt
ShapeFunctions
::
getShapeDerivativesSize
(
const
ElementType
&
type
)
{
AKANTU_DEBUG_IN
();
UInt
shape_derivatives_size
=
0
;
#define GET_SHAPE_DERIVATIVES_SIZE(type) \
shape_derivatives_size = ElementClass<type>::getShapeDerivativesSize()
AKANTU_BOOST_ELEMENT_SWITCH
(
GET_SHAPE_DERIVATIVES_SIZE
);
#undef GET_SHAPE_DERIVATIVES_SIZE
AKANTU_DEBUG_OUT
();
return
shape_derivatives_size
;
}
/* -------------------------------------------------------------------------- */
template
<
ElementType
type
>
void
ShapeFunctions
::
setControlPointsByType
(
const
Vector
<
Real
>
&
points
,
const
GhostType
&
ghost_type
)
{
control_points
.
setVector
(
type
,
ghost_type
,
points
);
}
Event Timeline
Log In to Comment