10 #include <catch2/catch_test_macros.hpp>
17 const char*
argv[] = {
28 #ifdef CORENEURON_ENABLE_GPU
82 REQUIRE(corenrn_param_test.
seed == -1);
84 REQUIRE(corenrn_param_test.
spikebuf == 100);
86 REQUIRE(corenrn_param_test.
threading ==
true);
88 REQUIRE(corenrn_param_test.
dt == 0.02);
90 REQUIRE(corenrn_param_test.
tstop == 0.1);
92 REQUIRE(corenrn_param_test.
prcellgid == 12);
93 #ifdef CORENEURON_ENABLE_GPU
94 REQUIRE(corenrn_param_test.
gpu ==
true);
96 REQUIRE(corenrn_param_test.
gpu ==
false);
98 REQUIRE(corenrn_param_test.
dt_io == 0.2);
102 REQUIRE(corenrn_param_test.
celsius == 25.12);
104 REQUIRE(corenrn_param_test.
mpi_enable ==
true);
108 REQUIRE(corenrn_param_test.
voltage == -32);
110 REQUIRE(corenrn_param_test.
nwarp == 8);
112 REQUIRE(corenrn_param_test.
multisend ==
true);
114 REQUIRE(corenrn_param_test.
mindelay == 0.1);
116 REQUIRE(corenrn_param_test.
ms_phases == 1);
118 REQUIRE(corenrn_param_test.
ms_subint == 2);
122 REQUIRE(corenrn_param_test.
multisend ==
true);
125 corenrn_param_test.
reset();
132 REQUIRE(corenrn_param_test.
config_to_str(
false,
false).empty());
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
bool threading
Use Multisend spike exchange instead of Allgather.
double mindelay
Forward skip to TIME.
double voltage
Temperature in degC.
int seed
Size in MB of the report buffer.
unsigned ms_subint
Number of multisend phases, 1 or 2.
double forwardskip
Initial voltage used for nrn_finitialize(1, v_init).
unsigned cell_interleave_permute
Spike Compression.
int prcellgid
Internal buffer used on every rank for spikes.
bool mpi_enable
Initialization seed for random number generator (int)
unsigned nwarp
Cell interleaving permutation.
bool multisend
Skip MPI finalization.
unsigned spkcompress
Number of multisend interval. 1 or 2.
double dt
Stop time of simulation in msec.
double tstop
Verbosity-level.
bool gpu
Enable pthread/openmp.
double dt_io
Timestep to use in msec.
unsigned ms_phases
Gid of cell for prcellstate.
double celsius
I/O timestep to use in msec for reports.
void parse(int argc, char *argv[])
Destructor defined in .cpp where CLI11 types are complete.
std::string config_to_str(bool default_also=false, bool write_description=false) const
Return a string summarising the current parameter values.
void reset()
Runs the CLI11_PARSE macro.
TEST_CASE("cmdline_interface")