summaryrefslogtreecommitdiff
path: root/src/options.hpp
diff options
context:
space:
mode:
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]");