Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
NCWriteMPAS.hpp
Go to the documentation of this file.
00001 /*
00002  * NCWriteMPAS.hpp
00003  *
00004  *  nc write helper for MPAS type data (CAM)
00005  *  Created on: April 9, 2014
00006  *
00007  */
00008 
00009 #ifndef NCWRITEMPAS_HPP_
00010 #define NCWRITEMPAS_HPP_
00011 
00012 #include "NCWriteHelper.hpp"
00013 
00014 namespace moab
00015 {
00016 
00017 class NCWriteMPAS : public UcdNCWriteHelper
00018 {
00019   public:
00020     NCWriteMPAS( WriteNC* writeNC, int fileId, const FileOptions& opts, EntityHandle fileSet )
00021         : UcdNCWriteHelper( writeNC, fileId, opts, fileSet )
00022     {
00023     }
00024 
00025     virtual ~NCWriteMPAS();
00026 
00027   private:
00028     //! Implementation of NCWriteHelper::collect_mesh_info()
00029     virtual ErrorCode collect_mesh_info();
00030 
00031     //! Collect data for specified variables
00032     virtual ErrorCode collect_variable_data( std::vector< std::string >& var_names, std::vector< int >& tstep_nums );
00033 
00034     //! Implementation of NCWriteHelper::write_nonset_variables()
00035     virtual ErrorCode write_nonset_variables( std::vector< WriteNC::VarData >& vdatas, std::vector< int >& tstep_nums );
00036 };
00037 
00038 }  // namespace moab
00039 
00040 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines