Skip to content

Commit

Permalink
feat(config): new optional config parameter for setting boundary cond…
Browse files Browse the repository at this point in the history
…itions
  • Loading branch information
yoctoyotta1024 committed Apr 18, 2024
1 parent 113f844 commit 86a967f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions libs/cartesiandomain/add_supers_at_domain_top.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "../kokkosaliases.hpp"
#include "cartesiandomain/cartesianmaps.hpp"
#include "gridboxes/sortsupers.hpp"
#include "initialise/optional_config_params.hpp"

struct AddSupersAtDomainTop {
double coord3lim; /**< gridboxes with upper bound > coord3lim get new super-droplets */
Expand Down
2 changes: 1 addition & 1 deletion libs/initialise/optional_config_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void OptionalConfigParams::CvodeDynamicsParams::print_params() const {
<< "\n---------------------------------------------------------\n";
}

void OptionalConfigParams::AddSupersAtDomainTopParams : set_params(const YAML::Node &config) {
void OptionalConfigParams::AddSupersAtDomainTopParams::set_params(const YAML::Node &config) {
const YAML::Node yaml = config["boundary_conditions"];

COORD3LIM = yaml["COORD3LIM"].as<double>();
Expand Down
2 changes: 2 additions & 0 deletions libs/initialise/optional_config_params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ struct OptionalConfigParams {

void set_coupled_dynamics(const YAML::Node& config);

void set_boundary_conditions(const YAML::Node& config);

/*** Super-Droplet Microphysics Parameters ***/
struct CondensationParams {
void set_params(const YAML::Node& config);
Expand Down

0 comments on commit 86a967f

Please sign in to comment.