5 #include <application/application.hpp>
14 if (grid ==
"--C" || grid ==
"--F") {
15 nvar =
data.GetDim2();
16 }
else if (grid ==
"---") {
17 nvar =
data.GetDim1();
19 nvar =
data.GetDim4();
26 Application::Logger app(
"outputs");
27 app->Log(
"Initialize MetadataTable");
30 {
"x1",
"height at cell center",
"m",
"--C"},
31 {
"x1f",
"height at cell boundary",
"m",
"--F"},
32 {
"x2",
"distance at cell center",
"m",
"-C-"},
33 {
"x2f",
"distance at cell boundary",
"m",
"-F-"},
34 {
"x3",
"distance at cell center",
"m",
"C--"},
35 {
"x3f",
"distance at cell boundary",
"m",
"F--"},
36 {
"rho",
"density",
"kg/m^3",
"CCC"},
37 {
"press",
"pressure",
"pa",
"CCC"},
38 {
"vel",
"velocity",
"m/s",
"CCC"},
39 {
"vapor",
"mass mixing ratio of vapor",
"kg/kg",
"CCC"},
40 {
"temp",
"temperature",
"K",
"CCC"},
41 {
"theta",
"potential temperature",
"K",
"CCC"},
42 {
"thetav",
"virtual potential temperature",
"K",
"CCC"},
43 {
"mse",
"moist static energy",
"J/kg",
"CCC"},
44 {
"rh1",
"relative humidity 1",
"1",
"CCC"},
45 {
"rh2",
"relative humidity 2",
"1",
"CCC"},
46 {
"eps",
"turbulent dissipation",
"w/kg",
"CCC"},
47 {
"tke",
"turbulent kinetic energy",
"J/kg",
"CCC"},
48 {
"mut",
"dynamic turbulent viscosity",
"kg/(m.s)",
"CCC"},
49 {
"radiance",
"top-of-atmosphere radiance",
"K",
"RCC"}};
53 Application::Logger app(
"outputs");
54 app->Log(
"Destroy MetadataTable");
79 for (
int i = 0; i < nouts; ++i) {
80 if (
table_[i][0] == name) {
90 for (
int i = 0; i < nouts; ++i) {
91 if (
table_[i][0] == name) {
100 int nouts =
table_.size();
101 for (
int i = 0; i < nouts; ++i) {
102 if (
table_[i][0] == name) {
static std::mutex table_mutex
int get_num_variables(std::string grid, AthenaArray< Real > const &data)
__attribute__((weak)) MetadataTable