StatMech
Loading...
Searching...
No Matches
setVariablesForEnsemble.cpp File Reference

Functions

 if (argc< Nargs_base||argc > Nargs)
 
 if (n_min > n_max)
 
std::string baseDirName (argv[4])
 
 debug_print ("A :"<< baseDirName)
 

Variables

constexpr int Nargs_base = Nargs_common + Nargs_sp
 
constexpr int Nargs = Nargs_common + Nargs_sp + Nargs_opt
 
 else { debug_print("argc=" << argc << ", Nargs_base=" << Nargs_base)
 
Integer_t const n_max = (Integer_t)std::atoll(argv[1])
 
Integer_t const n_min = (Integer_t)std::atoll(argv[2])
 
Integer_t const div = (Integer_t)std::atoll(argv[3])
 
Integer_t const repMin = (argc >= Nargs_base + 2) ? (Integer_t)std::atoll(argv[Nargs_base + 1]) : (MAXDATA * div)
 
Integer_t const repMax
 
constexpr Integer_t dim_loc = 2
 
Integer_t const num_h = (Integer_t)std::atoll(argv[5])
 
Integer_t const num_op = (Integer_t)std::atoll(argv[6])
 
Integer_t const dloc_h = (Integer_t)std::pow(dim_loc, num_h)
 
Integer_t const dloc_op = (Integer_t)std::pow(dim_loc, num_op)
 
 baseDirName = "/LocalRandomMatrix/"
 

Function Documentation

◆ baseDirName()

std::string baseDirName ( argv  [4])

◆ debug_print()

debug_print ( "A :"<<  baseDirName)

◆ if() [1/2]

if ( argc< Nargs_base||argc >  Nargs)
15 {
16 std::cerr << USAGE_commom << USAGE_sp << USAGE_opt << std::endl;
17 if(argc < Nargs_base) std::exit(EX_USAGE);
18}
std::string const USAGE_commom
Definition Fluc_randHOp.cpp:91
std::string const USAGE_sp
Definition generateRM.hpp:17
constexpr int Nargs_base
Definition setVariablesForEnsemble.cpp:13

◆ if() [2/2]

if ( n_min  ,
n_max   
)
44 {
45 std::cerr << "Error: n_min(" << n_min << ") > n_max(" << n_max << ")." << std::endl;
46 std::exit(EX_USAGE);
47}
Integer_t const n_min
Definition setVariablesForEnsemble.cpp:28
Integer_t const n_max
Definition setVariablesForEnsemble.cpp:27

Variable Documentation

◆ baseDirName

baseDirName = "/LocalRandomMatrix/"

◆ dim_loc

constexpr Integer_t dim_loc = 2
constexpr

◆ div

Integer_t const div = (Integer_t)std::atoll(argv[3])

◆ dloc_h

Integer_t const dloc_h = (Integer_t)std::pow(dim_loc, num_h)

◆ dloc_op

Integer_t const dloc_op = (Integer_t)std::pow(dim_loc, num_op)

◆ else

else { debug_print("argc=" << argc << ", Nargs_base=" << Nargs_base)

◆ n_max

Integer_t const n_max = (Integer_t)std::atoll(argv[1])

◆ n_min

Integer_t const n_min = (Integer_t)std::atoll(argv[2])

◆ Nargs

constexpr int Nargs = Nargs_common + Nargs_sp + Nargs_opt
constexpr

◆ Nargs_base

constexpr int Nargs_base = Nargs_common + Nargs_sp
constexpr

◆ num_h

Integer_t const num_h = (Integer_t)std::atoll(argv[5])

◆ num_op

Integer_t const num_op = (Integer_t)std::atoll(argv[6])

◆ repMax

Integer_t const repMax
Initial value:
= (argc >= Nargs_base + 3) ? (Integer_t)std::atoll(argv[Nargs_base + 2])
: (repMin + MAXDATA - 1)
MKL_INT Integer_t
Definition mytypes.hpp:359
Integer_t const repMin
Definition setVariablesForEnsemble.cpp:31

◆ repMin

Integer_t const repMin = (argc >= Nargs_base + 2) ? (Integer_t)std::atoll(argv[Nargs_base + 1]) : (MAXDATA * div)