2 #include <yaml-cpp/yaml.h>
5 #include <configure.hpp>
12 void RadiationBand::RTSolverDisort::setFlagsFromNode(YAML::Node
const& my) {
14 ds_.flag.ibcnd = my[
"ibcnd"].as<
bool>();
20 ds_.flag.usrtau = my[
"usrtau"].as<
bool>();
26 ds_.flag.usrang = my[
"usrang"].as<
bool>();
32 ds_.flag.lamber = my[
"lamber"].as<
bool>();
38 ds_.flag.planck = my[
"planck"].as<
bool>();
44 ds_.flag.spher = my[
"spher"].as<
bool>();
50 ds_.flag.onlyfl = my[
"onlyfl"].as<
bool>();
56 ds_.flag.quiet = my[
"quiet"].as<
bool>();
61 if (my[
"brdf_type"]) {
62 ds_.flag.brdf_type = my[
"brdf_type"].as<
int>();
64 ds_.flag.brdf_type = 0;
67 if (my[
"intensity_correction"]) {
68 ds_.flag.intensity_correction = my[
"intensity_correction"].as<
bool>();
70 ds_.flag.intensity_correction = 0;
73 if (my[
"old_intensity_correction"]) {
74 ds_.flag.old_intensity_correction =
75 my[
"old_intensity_correction"].as<
bool>();
77 ds_.flag.old_intensity_correction = 0;
80 if (my[
"general_source"]) {
81 ds_.flag.general_source = my[
"general_source"].as<
bool>();
83 ds_.flag.general_source = 0;
86 if (my[
"output_uum"]) {
87 ds_.flag.output_uum = my[
"output_uum"].as<
bool>();
89 ds_.flag.output_uum = 0;
93 std::vector<int> prnt = my[
"prnt"].as<std::vector<int>>();
94 for (
int i = 0; i < 5; ++i) {
95 ds_.flag.prnt[i] = prnt[i];
98 for (
int i = 0; i < 5; ++i) {