summaryrefslogtreecommitdiff
path: root/src/options.hpp
diff options
context:
space:
mode:
authorGard Spreemann <gard.spreemann@epfl.ch>2018-10-24 13:07:52 +0200
committerGard Spreemann <gard.spreemann@epfl.ch>2018-10-24 13:07:52 +0200
commit3ae1f6c19533f24964166ec373e739c82919ae75 (patch)
treeef1c23301612a01e449f7db29b571b666b58141f /src/options.hpp
parent864389f80dc5e7bdfa936c73c5f792b993a2b971 (diff)
Proper option parsing.
Diffstat (limited to 'src/options.hpp')
-rw-r--r--src/options.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/options.hpp b/src/options.hpp
new file mode 100644
index 0000000..05a6ee5
--- /dev/null
+++ b/src/options.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <string>
+
+typedef struct Options
+{
+ std::string infile;
+ std::string outfile_vals;
+ std::string outfile_vecs;
+} Options;
+
+int parse_opts(int argc, char ** argv, Options & opts);
+
+void print_usage(const std::string & invocation);
+void print_help(const std::string & invocation);
+
+static const std::string usage_args("--laplacian|-l file --vals file --vecs file [-h|--help] [PETSc/SLEPc options]");