SundanceMeshType.cpp
Go to the documentation of this file.
00001 #include "SundanceMeshType.hpp"
00002 
00003 using namespace Sundance;
00004 using namespace Sundance;
00005 
00006 using namespace Teuchos;
00007 using namespace Sundance;
00008 
00009 using std::endl;
00010 
00011 MeshType::MeshType()
00012   : Handle<MeshTypeBase>()
00013 {}
00014 
00015 MeshType::MeshType(Handleable<MeshTypeBase>* rawPtr)
00016   : Handle<MeshTypeBase>(rawPtr)
00017 {}
00018 
00019 
00020 MeshType::MeshType(const RCP<MeshTypeBase>& smartPtr)
00021   : Handle<MeshTypeBase>(smartPtr)
00022 {}
00023 
00024 Mesh MeshType::createEmptyMesh(int dim, const MPIComm& comm) const 
00025 {
00026   Mesh rtn;
00027   try
00028     {
00029       rtn = ptr()->createEmptyMesh(dim, comm);
00030     }
00031   catch(std::exception& e)
00032     {
00033       SUNDANCE_TRACE(e);
00034     }
00035   return rtn;
00036 }
00037 
00038 

Site Contact