1#ifndef IO_INPUTSCRAPER_H
2#define IO_INPUTSCRAPER_H
6#include <source_location>
30 std::string
kind =
"input";
56 std::string
kind =
"scope";
98 static std::string
DirectiveName(
const std::source_location &location);
102 std::string directive,
103 const std::source_location &location,
104 std::vector<std::string> options = {},
105 std::optional<std::string> default_value = std::nullopt,
106 bool has_unnamed_default =
false);
110 std::vector<std::string> members,
111 std::vector<std::string> units,
112 const std::source_location &location);
116 const std::string &sequence_name,
117 const std::string &template_name);
123 std::ostringstream os;
134 std::ostringstream os;
135 for (std::size_t i = 0; i < values.size(); i++)
145 std::ostringstream os;
146 for (
int i = 0; i < AMREX_SPACEDIM; i++)
156 std::ostringstream os;
157 for (
int i = 0; i < AMREX_SPACEDIM; i++)
159 for (
int j = 0; j < AMREX_SPACEDIM; j++)
161 if (i || j) os <<
" ";
181 const std::vector<std::string> &options = {});
182 static std::string
MergeKind(
const std::string &old_kind,
const std::string &new_kind);
183 static void AddContext(InputNode &node,
const std::vector<InputNode::Condition> &conditions);
185 const std::string &directive,
186 const std::vector<std::string> &options,
187 const std::source_location &location,
188 bool has_unnamed_default);
192 const std::string &value);
Eigen::Matrix< amrex::Real, AMREX_SPACEDIM, 1 > Vector
Eigen::Matrix< amrex::Real, AMREX_SPACEDIM, AMREX_SPACEDIM > Matrix