diff --git a/src/magtet.cpp b/src/magtet.cpp index d75cab2..e9afe2f 100644 --- a/src/magtet.cpp +++ b/src/magtet.cpp @@ -498,3 +498,35 @@ void magtet::routine(const char *para_file) RUN_ECHO(write_text(gopt_.get_value(OBSFILE)), "Writing outputs"); return; } + +// Here starts the main function +int main(int argc, char const *argv[]) +{ + if (argc == 1) + { + std::clog << "Magnetic gradient tensors of homologous tetrahedrons.\n"; + std::clog << "Usage: ./magtet \n"; + std::clog << "Option format:\n"; + std::clog << "