From 86a967f200cf64d6381f12a127bd9e8c624eea12 Mon Sep 17 00:00:00 2001 From: "clara.bayley" Date: Thu, 18 Apr 2024 12:33:52 +0200 Subject: [PATCH] feat(config): new optional config parameter for setting boundary conditions --- libs/cartesiandomain/add_supers_at_domain_top.hpp | 1 + libs/initialise/optional_config_params.cpp | 2 +- libs/initialise/optional_config_params.hpp | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/cartesiandomain/add_supers_at_domain_top.hpp b/libs/cartesiandomain/add_supers_at_domain_top.hpp index 5a0ab8266..5c0934c23 100644 --- a/libs/cartesiandomain/add_supers_at_domain_top.hpp +++ b/libs/cartesiandomain/add_supers_at_domain_top.hpp @@ -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 */ diff --git a/libs/initialise/optional_config_params.cpp b/libs/initialise/optional_config_params.cpp index 2d328329f..2bc759ec3 100644 --- a/libs/initialise/optional_config_params.cpp +++ b/libs/initialise/optional_config_params.cpp @@ -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(); diff --git a/libs/initialise/optional_config_params.hpp b/libs/initialise/optional_config_params.hpp index 120e14829..c3c6a42e2 100644 --- a/libs/initialise/optional_config_params.hpp +++ b/libs/initialise/optional_config_params.hpp @@ -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);