From b3229f6936dac7a24610d7ff3401384b97d6c74e Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 26 Jul 2018 01:39:47 +0200 Subject: [PATCH] Give the variational refinement terms slightly less mysterious names. --- flow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flow.cpp b/flow.cpp index aedac9d..b6f0517 100644 --- a/flow.cpp +++ b/flow.cpp @@ -1366,25 +1366,25 @@ void schedule_read(GLuint tex, GLuint width, GLuint height, const char *filename int main(int argc, char **argv) { static const option long_options[] = { - { "alpha", required_argument, 0, 'a' }, - { "delta", required_argument, 0, 'd' }, - { "gamma", required_argument, 0, 'g' }, + { "smoothness-relative-weight", required_argument, 0, 's' }, // alpha. + { "intensity-relative-weight", required_argument, 0, 'i' }, // delta. + { "gradient-relative-weight", required_argument, 0, 'g' }, // gamma. { "disable-timing", no_argument, 0, 1000 }, { "ignore-variational-refinement", no_argument, 0, 1001 } // Still calculates it, just doesn't apply it. }; for ( ;; ) { int option_index = 0; - int c = getopt_long(argc, argv, "a:d:g:", long_options, &option_index); + int c = getopt_long(argc, argv, "s:i:g:", long_options, &option_index); if (c == -1) { break; } switch (c) { - case 'a': + case 's': vr_alpha = atof(optarg); break; - case 'd': + case 'i': vr_delta = atof(optarg); break; case 'g': -- 2.39.2