Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
NCHelperFV.hpp
Go to the documentation of this file.
1 //-------------------------------------------------------------------------
2 // Filename : NCHelperFV.hpp
3 //
4 // Purpose : Climate NC file helper for Finite Volume grid
5 //
6 // Creator : Danqing Wu
7 //-------------------------------------------------------------------------
8 
9 #ifndef NCHELPERFV_HPP
10 #define NCHELPERFV_HPP
11 
12 #include "NCHelper.hpp"
13 
14 namespace moab
15 {
16 
17 //! Child helper class for Finite Volume grid (CAM_FV)
18 class NCHelperFV : public ScdNCHelper
19 {
20  public:
21  NCHelperFV( ReadNC* readNC, int fileId, const FileOptions& opts, EntityHandle fileSet )
22  : ScdNCHelper( readNC, fileId, opts, fileSet )
23  {
24  }
25  static bool can_read_file( ReadNC* readNC, int fileId );
26 
27  private:
28  virtual ErrorCode init_mesh_vals();
29  virtual std::string get_mesh_type_name()
30  {
31  return "CAM_FV";
32  }
33 };
34 
35 } // namespace moab
36 
37 #endif