00001 //*****************************************************************// 00002 // Albany 2.0: Copyright 2012 Sandia Corporation // 00003 // This Software is released under the BSD license detailed // 00004 // in the file "license.txt" in the top-level Albany directory // 00005 //*****************************************************************// 00006 00007 #ifndef FMDB_EXODUS_HPP 00008 #define FMDB_EXODUS_HPP 00009 00010 #include "Teuchos_RCP.hpp" 00011 #include "Epetra_Comm.h" 00012 #include "AlbPUMI_FMDBMeshStruct.hpp" 00013 00014 #include <apfPUMI.h> 00015 00016 namespace AlbPUMI { 00017 00018 class FMDBExodus { 00019 00020 public: 00021 00022 FMDBExodus(FMDBMeshStruct& meshStruct, const Teuchos::RCP<const Epetra_Comm>& comm_); 00023 00024 ~FMDBExodus(); 00025 00026 void write(const char* filename, const double time); 00027 void writeFile(const double time); 00028 00029 void setFileName(const std::string& fname){ outputFileName = fname; } 00030 00031 void debugMeshWrite(const char* filename); 00032 00033 private: 00034 apf::Mesh2* apfMesh; 00035 std::string outputFileName; 00036 }; 00037 00038 } 00039 00040 #endif 00041