remote_elem.h
Go to the documentation of this file.00001 // The libMesh Finite Element Library. 00002 // Copyright (C) 2002-2012 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_REMOTE_ELEM_H 00021 #define LIBMESH_REMOTE_ELEM_H 00022 00023 // Local includes 00024 #include "libmesh/elem.h" 00025 00026 // C++ includes 00027 #include <cstddef> 00028 #include <limits> 00029 00030 namespace libMesh 00031 { 00032 00033 // Forward declarations 00034 00035 00036 00047 // ------------------------------------------------------------ 00048 // RemoteElem class definition 00049 class RemoteElem : public Elem 00050 { 00051 public: 00052 00056 static const dof_id_type remote_elem_id = static_cast<dof_id_type>(-2); 00057 00061 RemoteElem () : Elem(0,0,NULL,_elemlinks_data,NULL) 00062 { this->set_id(remote_elem_id); } 00063 00067 virtual ~RemoteElem() {} 00068 00069 virtual const Point & point (const unsigned int i) const 00070 { libmesh_error(); return Elem::point(i); } 00071 00072 virtual Point & point (const unsigned int i) 00073 { libmesh_error(); return Elem::point(i); } 00074 00075 virtual dof_id_type node (const unsigned int i) const 00076 { libmesh_error(); return Elem::node(i); } 00077 00078 virtual Node* get_node (const unsigned int i) const 00079 { libmesh_error(); return Elem::get_node(i); } 00080 00081 virtual Node* & set_node (const unsigned int i) 00082 { libmesh_error(); return Elem::set_node(i); } 00083 00084 virtual dof_id_type key (const unsigned int) const 00085 { libmesh_error(); return 0; } 00086 00087 virtual bool is_remote () const 00088 { return true; } 00089 00090 virtual void connectivity(const unsigned int, 00091 const IOPackage, 00092 std::vector<dof_id_type>&) const 00093 { libmesh_error(); } 00094 00095 virtual ElemType type () const 00096 { return REMOTEELEM; } 00097 00098 virtual unsigned int dim () const 00099 { libmesh_error(); return 0; } 00100 00101 virtual unsigned int n_nodes () const 00102 { libmesh_error(); return 0; } 00103 00104 virtual unsigned int n_sides () const 00105 { libmesh_error(); return 0; } 00106 00107 virtual unsigned int n_vertices () const 00108 { libmesh_error(); return 0; } 00109 00110 virtual unsigned int n_edges () const 00111 { libmesh_error(); return 0; } 00112 00113 virtual unsigned int n_faces () const 00114 { libmesh_error(); return 0; } 00115 00116 virtual unsigned int n_children () const 00117 { libmesh_error(); return 0; } 00118 00119 virtual bool is_vertex(const unsigned int) const 00120 { libmesh_error(); return false; } 00121 00122 virtual bool is_edge(const unsigned int) const 00123 { libmesh_error(); return false; } 00124 00125 virtual bool is_face(const unsigned int) const 00126 { libmesh_error(); return false; } 00127 00128 virtual bool is_node_on_side(const unsigned int, 00129 const unsigned int) const 00130 { libmesh_error(); return false; } 00131 00132 virtual bool is_child_on_side(const unsigned int, 00133 const unsigned int) const 00134 { libmesh_error(); return false; } 00135 00136 virtual bool is_edge_on_side(const unsigned int, 00137 const unsigned int) const 00138 { libmesh_error(); return false; } 00139 00140 virtual bool is_node_on_edge(const unsigned int, 00141 const unsigned int) const 00142 { libmesh_error(); return false; } 00143 00144 virtual unsigned int n_sub_elem () const 00145 { libmesh_error(); return 0; } 00146 00147 virtual AutoPtr<Elem> side (const unsigned int) const 00148 { libmesh_error(); return AutoPtr<Elem>(NULL); } 00149 00150 virtual AutoPtr<Elem> build_side (const unsigned int, 00151 bool) const 00152 { libmesh_error(); return AutoPtr<Elem>(NULL); } 00153 00154 virtual AutoPtr<Elem> build_edge (const unsigned int) const 00155 { libmesh_error(); return AutoPtr<Elem>(NULL); } 00156 00157 virtual Order default_order () const 00158 { libmesh_error(); return FIRST; } 00159 00160 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS 00161 00162 virtual bool infinite () const 00163 { libmesh_error(); return false; } 00164 00165 #endif 00166 00167 #ifdef LIBMESH_ENABLE_AMR 00168 00173 virtual float embedding_matrix (const unsigned int, 00174 const unsigned int, 00175 const unsigned int) const 00176 { libmesh_error(); return 0.; } 00177 00178 #endif 00179 00180 protected: 00181 00185 Elem* _elemlinks_data[1]; 00186 00187 }; 00188 00189 // Singleton RemoteElem 00190 extern const RemoteElem* remote_elem; 00191 00192 } // namespace libMesh 00193 00194 #endif // LIBMESH_REMOTE_ELEM_H
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:48 UTC
Hosted By: