Loading...
Searching...
No Matches
field_rdof.icc
Go to the documentation of this file.
# ifndef _RHEOLEF_FIELD_RDOF_ICC
# define _RHEOLEF_FIELD_RDOF_ICC
//
// This file is part of Rheolef.
//
// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
//
// Rheolef is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// Rheolef 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Rheolef; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// =========================================================================
#include "rheolef/field_rdof.h"
#include "rheolef/field_wdof_indirect.h"
#include "rheolef/field_wdof_sliced.h"
namespace rheolef { namespace details {
template<class Derived>
field_rdof_indirect_const<Derived>
field_rdof_base<Derived>::operator[] (const std::string& dom_name) const
{
return field_rdof_indirect_const<Derived> (derived(), derived().get_geo().operator[](dom_name));
}
template<class Derived>
field_rdof_indirect_const<Derived>
field_rdof_base<Derived>::operator[] (const geo_type& dom) const
{
return field_rdof_indirect_const<Derived> (derived(), dom);
}
template<class Derived>
field_rdof_sliced_const<Derived>
field_rdof_base<Derived>::operator[] (size_type i_comp) const
{
return field_rdof_sliced_const<Derived> (derived(), i_comp);
}
template<class Derived>
field_rdof_sliced_const<Derived>
field_rdof_base<Derived>::operator() (size_type i_comp, size_type j_comp) const
{
space_constant::coordinate_type sys_coord = derived().get_geo().coordinate_system();
size_type ij_comp = space_constant::tensor_index (derived().valued_tag(), sys_coord, i_comp, j_comp);
return field_rdof_sliced_const<Derived> (derived(), ij_comp);
}
}}// namespace rheolef::details
# endif /* _RHEOLEF_FIELD_RDOF_ICC */
rheolef::details::field_rdof_base::operator()
field_rdof_sliced_const< Derived > operator()(size_type i_comp, size_type j_comp) const
Definition field_rdof.icc:50
rheolef::details::field_rdof_base::geo_type
geo_basic< float_type, memory_type > geo_type
Definition field_rdof.h:49
rheolef::details::field_rdof_base::operator[]
field_rdof_indirect_const< Derived > operator[](const std::string &dom_name) const
Definition field_rdof.icc:32
rheolef::details::field_rdof_base::size_type
typename field_traits< Derived >::size_type size_type
Definition field_rdof.h:45
rheolef::details::field_rdof_base::derived
Derived & derived()
Definition field_rdof.h:64
rheolef::details::field_rdof_indirect_const
Definition field_wdof_indirect.h:212
rheolef::details::field_rdof_sliced_const
Definition field_wdof_sliced.h:204
get_geo
void get_geo(istream &in, my_geo &omega)
Definition field2gmsh_pos.cc:126
rheolef::space_constant::tensor_index
size_type tensor_index(valued_type valued_tag, coordinate_type sys_coord, size_type i, size_type j)
Definition space_constant.cc:181
rheolef::space_constant::coordinate_type
coordinate_type
Definition space_constant.h:119
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
rheolef::valued_tag
space_constant::valued_type valued_tag() const
Definition field_expr_recursive.h:620