Mesh Oriented datABase
(version 5.4.1)
Array-based unstructured mesh datastructure
|
00001 //------------------------------------------------------------------------- 00002 // Filename : NCHelperFV.hpp 00003 // 00004 // Purpose : Climate NC file helper for Domain grid 00005 00006 //----------------------- 00007 #ifndef NCHELPERDOMAIN_HPP 00008 #define NCHELPERDOMAIN_HPP 00009 00010 #include "NCHelper.hpp" 00011 00012 namespace moab 00013 { 00014 00015 //! Child helper class for Domain grid 00016 class NCHelperDomain : public ScdNCHelper 00017 { 00018 public: 00019 NCHelperDomain( ReadNC* readNC, int fileId, const FileOptions& opts, EntityHandle fileSet ) 00020 : ScdNCHelper( readNC, fileId, opts, fileSet ) 00021 { 00022 } 00023 static bool can_read_file( ReadNC* readNC, int fileId ); 00024 00025 ErrorCode create_mesh( Range& faces ); 00026 00027 private: 00028 virtual ErrorCode init_mesh_vals(); 00029 virtual std::string get_mesh_type_name() 00030 { 00031 return "DOMAIN"; 00032 } 00033 00034 int nv; // number of vertices per cell 00035 int nvDim; // index of nv dim 00036 }; 00037 00038 #endif /* NCHELPERDOMAIN_HPP */ 00039 } // namespace moab