MaCh3  2.8.0
Reference Guide
RHat_HighMem.cpp
Go to the documentation of this file.
1 #include "Manager/MaCh3Logger.h"
3 
4 int main(int argc, char const* argv[]){
5  MACH3LOG_WARN("Deprecation Warning: Use of the standalone executable will be deprecated in future releases.");
6  MACH3LOG_WARN(" : you can use 'mach3 rhat --high-mem' as a direct replacement instead.");
7  // Create a new argv array with an additional element for "--high-mem"
8  std::vector<const char*> new_argv;
9  new_argv.push_back("rhat");
10  new_argv.push_back("--high-mem");
11  for (int i = 1; i < argc; ++i) {
12  new_argv.push_back(argv[i]);
13  }
14  argc = static_cast<int>(new_argv.size());
15  argv = new_argv.data();
16  M3::RHatModule proc;
17  M3::MaCh3ArgumentParser* parser = proc.get_parser();
18  parser->parse_args(argc, argv);
19  proc.Run();
20  MACH3LOG_WARN("Deprecation Warning: Use of the standalone executable will be deprecated in future releases.");
21  MACH3LOG_WARN(" : you can use 'mach3 rhat --high-mem' as a direct replacement instead.");
22  return 0;
23 }
MaCh3 Logging utilities built on top of SPDLOG.
#define MACH3LOG_WARN
Definition: MaCh3Logger.h:36
Module for computing the R-hat diagnostic for MCMC chains.
int main(int argc, char const *argv[])
Definition: RHat_HighMem.cpp:4
Extended ArgumentParser with MaCh3-specific functionality.
Definition: m3argparse.hpp:17
Module for computing the R-hat diagnostic for MCMC chains.
Definition: RHatModule.hpp:12
int Run() override
Execute the MCMC diagnostics.
Definition: RHatModule.cpp:41
MaCh3ArgumentParser * get_parser() override
Get the argument parser for this module.
Definition: RHatModule.cpp:22