$extrastylesheet
parallel_node.h
Go to the documentation of this file.
00001 
00002 // The libMesh Finite Element Library.
00003 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
00004 
00005 // This library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 
00020 #ifndef LIBMESH_PARALLEL_NODE_H
00021 #define LIBMESH_PARALLEL_NODE_H
00022 
00023 // Local Includes
00024 #include "libmesh/libmesh_config.h"
00025 
00026 #include "libmesh/node.h"
00027 #include "libmesh/id_types.h"
00028 
00029 namespace libMesh {
00030 namespace Parallel {
00031 // BufferType<> specialization to return a buffer datatype
00032 // to handle communication of Nodes
00033 template <>
00034 struct BufferType<const Node*> {
00035   typedef largest_id_type type;
00036 };
00037 
00038 template <>
00039 struct BufferType<Node> {
00040   typedef largest_id_type type;
00041 };
00042 
00043 } // namespace Parallel
00044 } // namespace libMesh
00045 
00046 #endif // LIBMESH_PARALLEL_NODE_H