Check accepted one-hex state against the 450T Abaqus workbook.
More...
#include <MoFEM.hpp>
#include <array>
#include <cmath>
#include <cstdio>
#include <string>
#include <vector>
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
Check accepted one-hex state against the 450T Abaqus workbook.
Definition in file abaqus_450t_mesh_check.cpp.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 96 of file abaqus_450t_mesh_check.cpp.
96 {
97 if (argc != 3) {
98 std::fprintf(stderr, "usage: %s {base|S1|S2} output-directory\n", argv[0]);
99 return 2;
100 }
101 int mofem_argc = 1;
102 char *mofem_argv[] = {argv[0], nullptr};
103 char **mofem_argv_ptr = mofem_argv;
105 try {
106 const std::string case_name = argv[1];
107 const std::string directory = argv[2];
108 for (const auto &test_case : cases)
109 if (case_name == test_case.
name) {
110 CHKERR checkCase(test_case, directory);
112 return 0;
113 }
115 case_name.c_str());
116 }
119 return 1;
120}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.