Skip to content

Commit

Permalink
Print custom param labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwfncar committed Oct 9, 2023
1 parent 3f0f3ba commit 9e07e5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/kpp/test_kpp_to_micm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ int main(const int argc, const char *argv[])
}
std::cout << process_vector[i].products_[n_products - 1].first.name_;

std::vector<std::string> param_labels = process_vector[i].rate_constant_->CustomParameters();
for (int k = 0; k < param_labels.size(); k++) {
std::cout << " " << param_labels[k];
}

std::cout << std::endl;
}

Expand All @@ -91,6 +96,7 @@ int main(const int argc, const char *argv[])

state.custom_rate_parameters_[0][0] = 6.0e-11; // s^-1 j_O2
state.custom_rate_parameters_[0][1] = 1.0e-3; // s^-1 j_O3
state.custom_rate_parameters_[0][2] = 1.0e-3; // s^-1 j_O3

double N_Avogadro = 6.02214076e23;
// molecules cm-3 -> mol m-3, S&P3e table 5.1, z = 30 km
Expand Down

0 comments on commit 9e07e5a

Please sign in to comment.