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