Canoe
Comprehensive Atmosphere N' Ocean Engine
output_utils.hpp
Go to the documentation of this file.
1
#ifndef SRC_OUTPUTS_OUTPUT_UTILS_HPP_
2
#define SRC_OUTPUTS_OUTPUT_UTILS_HPP_
3
4
// C/C++
5
#include <string>
6
#include <vector>
7
8
// athena
9
#include <athena/athena.hpp>
10
11
int
get_num_variables
(std::string grid,
AthenaArray<Real>
const
&
data
);
12
13
class
MetadataTable
{
14
protected
:
15
using
StringTable
= std::vector<std::vector<std::string>>;
16
18
MetadataTable
();
19
20
public
:
21
~MetadataTable
();
22
23
static
MetadataTable
const
*
GetInstance
();
24
25
static
void
Destroy
();
26
27
std::string
GetGridType
(std::string name)
const
;
28
29
std::string
GetUnits
(std::string name)
const
;
30
31
std::string
GetLongName
(std::string name)
const
;
32
33
private
:
34
StringTable
table_
;
35
37
static
MetadataTable
*
myptr_
;
38
};
39
40
#endif
// SRC_OUTPUTS_OUTPUT_UTILS_HPP_
AthenaArray< Real >
MetadataTable
Definition:
output_utils.hpp:13
MetadataTable::MetadataTable
MetadataTable()
Protected ctor access thru static member function Instance.
MetadataTable::GetInstance
static MetadataTable const * GetInstance()
Definition:
output_utils.cpp:57
MetadataTable::myptr_
static MetadataTable * myptr_
Pointer to the single MetadataTable instance.
Definition:
output_utils.hpp:37
MetadataTable::StringTable
std::vector< std::vector< std::string > > StringTable
Definition:
output_utils.hpp:15
MetadataTable::GetLongName
std::string GetLongName(std::string name) const
Definition:
output_utils.cpp:99
MetadataTable::~MetadataTable
~MetadataTable()
Definition:
output_utils.cpp:52
MetadataTable::table_
StringTable table_
Definition:
output_utils.hpp:34
MetadataTable::Destroy
static void Destroy()
Definition:
output_utils.cpp:68
MetadataTable::GetGridType
std::string GetGridType(std::string name) const
Definition:
output_utils.cpp:77
MetadataTable::GetUnits
std::string GetUnits(std::string name) const
Definition:
output_utils.cpp:88
fit_ammonia.data
data
Definition:
fit_ammonia.py:5
get_num_variables
int get_num_variables(std::string grid, AthenaArray< Real > const &data)
Definition:
output_utils.cpp:12
src
outputs
output_utils.hpp
Generated by
1.9.1