1 #ifndef CHECK_INPUT_FILE_HPP
2 #define CHECK_INPUT_FILE_HPP
29 void deprecate(std::string list, std::string name, std::string msg){
39 void remove(std::string list, std::string name, std::string msg){
52 printf(
"\n\n\n******** WARNING: Deprecated input detected *********\n");
54 printf(
"\n Input parameter: %s",
deprecated[i].name.c_str());
55 printf(
"\n Suggestion: %s\n",
deprecated[i].msg.c_str());
60 printf(
"\n\n\n******** ERROR: Removed input detected *********\n");
61 for(
int i=0; i<
removed.size(); i++){
62 printf(
"\n Input parameter: %s",
removed[i].name.c_str());
63 printf(
"\n Suggestion: %s\n",
removed[i].msg.c_str());
68 printf(
"\n\n\n******** ERROR: Missing namelist detected *********\n");
69 printf(
"\n Add diff_param to input file\n");
73 printf(
"\nIf this input file is in an official example, please let the XGC team know so we can update the example.\n");
74 printf(
"\n****************************************************\n\n");
bool is_rank_zero()
Definition: globals.hpp:27
bool present(const string ¶m)
Definition: NamelistReader.hpp:363
Definition: NamelistReader.hpp:193
CheckerEntry(std::string name, std::string msg)
Definition: check_input_file.hpp:11
Definition: check_input_file.hpp:7
void use_namelist(const string &namelist)
Definition: NamelistReader.hpp:355
bool namelist_present(const string &namelist)
Definition: NamelistReader.hpp:351
void exit_XGC(std::string msg)
Definition: globals.hpp:37
std::string msg
Definition: check_input_file.hpp:9
std::string name
Definition: check_input_file.hpp:8