12#include "../io/ParameterMap.h"
13#include "../utils/error_handling.h"
54 bool legacy_flat_outdir;
55 int uncoerced = pmap.value_or(
"legacy_flat_outdir", 0);
57 legacy_flat_outdir =
false;
58 }
else if (uncoerced == 1) {
59 legacy_flat_outdir =
true;
61 CHOLLA_ERROR(
"legacy_flat_outdir parameter must be 1 or 0.");
63 return {not legacy_flat_outdir, pmap.value_or(
"outdir",
"")};
Definition FnameTemplate.h:43
std::string effective_output_dir_path(int nfile) const noexcept
Definition FnameTemplate.cpp:11
std::string format_fname(int nfile, std::string_view pre_extension_suffix, std::optional< std::string_view > post_extension_suffix=std::nullopt) const noexcept
Definition FnameTemplate.cpp:29
std::string nominal_output_dir_path() const noexcept
Definition FnameTemplate.h:70
bool separate_cycle_dirs() const noexcept
Definition FnameTemplate.h:67
A class that provides map-like access to parameter files.
Definition ParameterMap.h:74