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

Go to the source code of this file.

Functions

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

Detailed Description

Author
David Riley

Definition in file UmbrellaSolver.cpp.

Function Documentation

◆ main()

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

Definition at line 9 of file UmbrellaSolver.cpp.

9  {
10  MACH3LOG_WARN("Deprecation Warning: Use of the standalone executable will be deprecated in future releases.");
11  MACH3LOG_WARN(" : you can use 'mach3 umbrellasolver' as a direct replacement instead.");
12  argv[0] = "umbrellasolver";
13  M3::UmbrellaModule proc;
14  M3::MaCh3ArgumentParser* parser = proc.get_parser();
15  std::vector<std::string> args(argv, argv + argc);
16  parser->insert_default_subcommands(args); // The UmbrellaModule parser doesn't automatically insert default subcommand so treats the first argument as a subcommand
17  parser->parse_args(args);
18  proc.Run();
19  MACH3LOG_WARN("Deprecation Warning: Use of the standalone executable will be deprecated in future releases.");
20  MACH3LOG_WARN(" : you can use 'mach3 umbrellasolver' as a direct replacement instead.");
21  return 0;
22 }
#define MACH3LOG_WARN
Definition: MaCh3Logger.h:36
Extended ArgumentParser with MaCh3-specific functionality.
Definition: m3argparse.hpp:17
void insert_default_subcommands(std::vector< std::string > &args, std::size_t pos=0) const
Insert default subcommands into args where no explicit subcommand was given.
Definition: m3argparse.hpp:132
Module for performing Umbrella sampling.
int Run() override
Execute the Umbrella sampling.
MaCh3ArgumentParser * get_parser() override
Get the argument parser for this module.