v0.9.0
CoordSysMultiIndices.cpp
Go to the documentation of this file.
1 /** \file CoordSysMultiIndices.cpp
2  * \brief Tensor coordinate system
3  */
4 
5 /* MoFEM is free software: you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License as published by the
7  * Free Software Foundation, either version 3 of the License, or (at your
8  * option) any later version.
9  *
10  * MoFEM is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13  * License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with MoFEM. If not, see <http://www.gnu.org/licenses/>
17  */
18 
19 namespace MoFEM {
20 
21 CoordSys::CoordSys(const moab::Interface &moab, const EntityHandle meshset)
22  : meshSet(meshset), tagCoordSysName(NULL) {
23  // Change those tags only by modifiers
24  // dim
25  Tag th_coord_sys_dim;
26  rval = moab.tag_get_handle("_CoordSysDim", th_coord_sys_dim);
28  rval = moab.tag_get_by_ptr(th_coord_sys_dim, &meshSet, 1,
29  (const void **)&tagCoordSysDim);
31  // Coord Sys Name
32  Tag th_coord_sys_name;
33  rval = moab.tag_get_handle("_CoordSysName", th_coord_sys_name);
35  rval = moab.tag_get_by_ptr(th_coord_sys_name, &meshset, 1,
36  (const void **)&tagCoordSysName,
39 }
40 
41 } // namespace MoFEM
const char * tagCoordSysName
tag keeps name of the field
#define MOAB_THROW(a)
Check error code of MoAB function and throw MoFEM exception.
Definition: definitions.h:602
implementation of Data Operators for Forces and Sources
Definition: Common.hpp:21
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
Definition: Exceptions.hpp:84
EntityHandle meshSet
keeps entities for this meshset
CoordSys(const Interface &moab, const EntityHandle meshset)