$extrastylesheet
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 00020 #ifndef LIBMESH_FACE_TRI3_SUBDIVISION_H 00021 #define LIBMESH_FACE_TRI3_SUBDIVISION_H 00022 00023 00024 // Local includes 00025 #include "libmesh/face_tri3.h" 00026 00027 // C++ includes 00028 00029 namespace libMesh 00030 { 00031 00035 class Tri3Subdivision : public Tri3 00036 { 00037 public: 00038 00042 Tri3Subdivision() : 00043 Tri3(), _subdivision_updated(false), _is_ghost(false) {} 00044 00048 Tri3Subdivision(Elem *p); 00049 00053 ElemType type () const { return TRI3SUBDIVISION; } 00054 00059 virtual bool has_affine_map () const { return false; } 00060 00065 virtual bool is_linear () const { return false; } 00066 00070 Order default_order() const { return FOURTH; } 00071 00077 void prepare_subdivision_properties(); 00078 00083 bool is_subdivision_updated() const { return _subdivision_updated; } 00084 00088 Node* get_ordered_node(unsigned int node_id) const; 00089 00094 unsigned int get_ordered_valence(unsigned int node_id) const; 00095 00100 unsigned int local_node_number(unsigned int node_id) const; 00101 00105 bool is_ghost() const { return _is_ghost; } 00106 00110 void set_ghost(bool ghosted) { _is_ghost = ghosted; } 00111 00112 private: 00113 00118 Node* _ordered_nodes[3]; 00119 00124 bool _subdivision_updated; 00125 00130 bool _is_ghost; 00131 }; 00132 00133 00134 } // namespace libMesh 00135 00136 #endif // LIBMESH_FACE_TRI3_SUBDIVISION_H