SundanceMeshTransformation.cpp
Go to the documentation of this file.
00001 #include "SundanceMeshTransformation.hpp"
00002 
00003 
00004 using namespace Teuchos;
00005 using namespace Sundance;
00006 using Playa::Handle;
00007 using Playa::Handleable;
00008 
00009 
00010 MeshTransformation::MeshTransformation()
00011   : Handle<MeshTransformationBase>()
00012 {}
00013 
00014 MeshTransformation::MeshTransformation(Handleable<MeshTransformationBase>* rawPtr)
00015   : Handle<MeshTransformationBase>(rawPtr)
00016 {}
00017 
00018 
00019 MeshTransformation::MeshTransformation(const RCP<MeshTransformationBase>& smartPtr)
00020   : Handle<MeshTransformationBase>(smartPtr)
00021 {}
00022 
00023 Mesh MeshTransformation::apply(const Mesh& inputMesh) const 
00024 {
00025   Mesh rtn = ptr()->apply(inputMesh);
00026   //if (rtn.spatialDim() > 1) rtn.assignIntermediateCellOwners(1);
00027   //if (rtn.spatialDim() > 2) rtn.assignIntermediateCellOwners(2);
00028   return rtn;
00029 }

Site Contact