aboutsummaryrefslogtreecommitdiff
path: root/tools/solvetest.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-08-01 11:27:02 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-08-01 11:27:02 +0200
commit59920d2760b2267333a5eeb258700fb73250af6e (patch)
treee374fb80ba50bd16c09964bfc6ce5b770058273d /tools/solvetest.h
parent10632e9fa6e8037cd584a29536e6ab1be9ca359b (diff)
downloadnissy-core-59920d2760b2267333a5eeb258700fb73250af6e.tar.gz
nissy-core-59920d2760b2267333a5eeb258700fb73250af6e.zip
Specified default solver for coordinate solvetest
Diffstat (limited to 'tools/solvetest.h')
-rw-r--r--tools/solvetest.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/solvetest.h b/tools/solvetest.h
index f9087b7..4c72ca5 100644
--- a/tools/solvetest.h
+++ b/tools/solvetest.h
@@ -122,12 +122,13 @@ int main(int argc, char **argv) {
122 char filename[7+NISSY_SIZE_DATAID], dataid[NISSY_SIZE_DATAID]; 122 char filename[7+NISSY_SIZE_DATAID], dataid[NISSY_SIZE_DATAID];
123 123
124 if (argc < 2) { 124 if (argc < 2) {
125 printf("Error: not enough arguments. " 125 solver = SOLVER;
126 "A solver must be given.\n"); 126 printf("No solver given, using default %s\n", solver);
127 return 1; 127 } else {
128 solver = argv[1];
129 printf("Using user-specified solver %s\n", solver);
128 } 130 }
129 131
130 solver = argv[1];
131 srand(time(NULL)); 132 srand(time(NULL));
132 nissy_setlogger(log_stderr, NULL); 133 nissy_setlogger(log_stderr, NULL);
133 134

Generated with cgit - Back to sebastiano.tronto.net