Skip to content

Commit

Permalink
Added --nrepeat command line parameter
Browse files Browse the repository at this point in the history
 *) allows tests to be repeated in invert_test
  • Loading branch information
bjoo committed Dec 12, 2024
1 parent a54595d commit 9e685e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/utils/command_line_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ int Msrc = 1;
int Nsrc_tile = 1;
int Msrc_tile = 1;
int niter = 100;
int nrepeat = 1;
int maxiter_precondition = 10;
QudaVerbosity verbosity_precondition = QUDA_SUMMARIZE;
int gcrNkrylov = 8;
Expand Down Expand Up @@ -604,6 +605,7 @@ std::shared_ptr<QUDAApp> make_app(std::string app_description, std::string app_n
quda_app->add_option("--ngcrkrylov", gcrNkrylov,
"The number of inner iterations to use for GCR, BiCGstab-l, CA-CG, CA-GCR (default 8)");
quda_app->add_option("--niter", niter, "The number of iterations to perform (default 100)");
quda_app->add_option("--nrepeat", nrepeat, "The number of times to repeat the test (default 1)");
quda_app->add_option("--max-res-increase", max_res_increase,
"The number of consecutive true residual incrases allowed (default 1)");
quda_app->add_option("--max-res-increase-total", max_res_increase_total,
Expand Down
1 change: 1 addition & 0 deletions tests/utils/command_line_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ extern int Msrc;
extern int Nsrc_tile;
extern int Msrc_tile;
extern int niter;
extern int nrepeat;
extern int maxiter_precondition;
extern QudaVerbosity verbosity_precondition;
extern int gcrNkrylov;
Expand Down

0 comments on commit 9e685e4

Please sign in to comment.