MaCh3  2.8.0
Reference Guide
Functions
RHat_HighMem.cpp File Reference
#include "Manager/MaCh3Logger.h"
#include "CLI/Modules/RHatModule.hpp"
Include dependency graph for RHat_HighMem.cpp:

Go to the source code of this file.

Functions

int main (int argc, char const *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char const *  argv[] 
)

Definition at line 4 of file RHat_HighMem.cpp.

4  {
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 }
#define MACH3LOG_WARN
Definition: MaCh3Logger.h:36
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