#include <AMReX.H>
#include <AMReX_ParmParse.H>
#include <AMReX_Print.H>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <regex>
#include <string>
#include <unordered_map>
#include <vector>
Go to the source code of this file.
◆ CheckForDuplicateInputs()
| void CheckForDuplicateInputs |
( |
const std::string & |
inputs_file | ) |
|
|
inline |
Abort if a key is set twice in the inputs file, counting the files it includes with FILE = <name>. A file may re-set a key that a file it included earlier set (a base deck included first and then overridden); a key set twice in one file, in two files included side by side, or in a file and then again in a file it includes afterwards is refused. UNSET = <key> drops a key so it may be set again. Keys given on the command line are not checked; they override the file's.
277 if (!state.
error.empty()) {
278 amrex::Abort(state.
error);
282 amrex::Abort(
"Duplicate inputs detected in inputs file");
Referenced by main().
◆ inputs_name