|
MBDyn-1.7.3
|
#include "mbconfig.h"#include <cerrno>#include <fstream>#include "ac/getopt.h"#include <time.h>#include <sys/stat.h>#include "myassert.h"#include "mynewmem.h"#include "except.h"#include "solver.h"#include "invsolver.h"#include "modules.h"#include "legalese.h"#include "cleanup.h"
Go to the source code of this file.
Classes | |
| struct | mbdyn_proc_t |
Macros | |
| #define | MB_EXIT(what, err) what((err)) |
| #define | PATH_MAX 4096 |
Enumerations | |
| enum | InputFormat { MBDYN, LASTFORMAT } |
| enum | InputSource { MBFILE_UNKNOWN, MBFILE_STDIN, MBFILE_OPT, MBFILE_ARGS } |
Functions | |
| static void | mbdyn_version (void) |
| const std::string | sDefaultInputFileName ("MBDyn") |
| void | GetEnviron (MathParser &) |
| static Solver * | RunMBDyn (MBDynParser &, const std::string &, const std::string &, unsigned int, bool, bool) |
| void | mbdyn_parse_arguments (mbdyn_proc_t &mbp, int argc, char *argv[], int &currarg) |
| static int | mbdyn_prepare_files (const std::string &sInputFileName, std::string &sOutputFileName) |
| static int | mbdyn_program (mbdyn_proc_t &mbp, int argc, char *argv[], int &currarg) |
| int | main (int argc, char *argv[]) |
Variables | |
| const char | sDefaultOutputFileName [] = "MBDyn" |
| #define MB_EXIT | ( | what, | |
| err | |||
| ) | what((err)) |
| #define PATH_MAX 4096 |
Definition at line 109 of file mbdyn.cc.
Referenced by mbdyn_parse_arguments(), mbdyn_prepare_files(), and mbdyn_program().
| enum InputFormat |
| Enumerator | |
|---|---|
| MBDYN | |
| LASTFORMAT | |
Definition at line 130 of file mbdyn.cc.
| enum InputSource |
| Enumerator | |
|---|---|
| MBFILE_UNKNOWN | |
| MBFILE_STDIN | |
| MBFILE_OPT | |
| MBFILE_ARGS | |
| void GetEnviron | ( | MathParser & | ) |
Definition at line 53 of file env.cc.
References DEBUGCOUT, environ, Table::Get(), MathParser::GetLastStmt(), MathParser::GetSymbolTable(), MBDYN_EXCEPT_ARGS, MBDYNPREFIX, NO_OP, Table::Put(), SAFEDELETEARR, SAFESTRDUP, and STRLENOF.
Referenced by mbdyn_program().

Definition at line 1012 of file mbdyn.cc.
References mbdyn_proc_t::bException, mbdyn_proc_t::bRedefine, mbdyn_proc_t::bShowSymbolTable, mbdyn_proc_t::bTable, mbdyn_proc_t::CurrInputFormat, mbdyn_proc_t::CurrInputSource, fPedantic, fSilent, mbdyn_proc_t::iSleepTime, MB_EXIT, MBDYN, mbdyn_cleanup(), mbdyn_cleanup_destroy(), mbdyn_parse_arguments(), mbdyn_program(), MBFILE_UNKNOWN, mbdyn_proc_t::nThreads, mbdyn_proc_t::pIn, mbdyn_proc_t::pMP, mbdyn_proc_t::pT, SAFEDELETE, sDefaultInputFileName(), mbdyn_proc_t::sInputFileName, and mbdyn_proc_t::using_mpi.

| void mbdyn_parse_arguments | ( | mbdyn_proc_t & | mbp, |
| int | argc, | ||
| char * | argv[], | ||
| int & | currarg | ||
| ) |
Definition at line 360 of file mbdyn.cc.
References ASSERT, mbdyn_proc_t::bException, mbdyn_proc_t::bRedefine, mbdyn_proc_t::bShowSymbolTable, mbdyn_proc_t::bTable, mbdyn_proc_t::CurrInputFormat, mbdyn_proc_t::CurrInputSource, DIR_SEP, mbdyn_proc_t::FileStreamIn, fPedantic, fSilent, getopt(), is_abs_path(), mbdyn_proc_t::iSleepTime, MBDYN, MBDYN_EXCEPT_ARGS, mbdyn_license(), mbdyn_version(), mbdyn_warranty(), MBFILE_OPT, mbdyn_proc_t::nThreads, optarg, opterr, optind, optopt, PATH_MAX, mbdyn_proc_t::pIn, mbdyn_proc_t::sInputFileName, mbdyn_proc_t::sOutputFileName, STRLENOF, and mbdyn_proc_t::using_mpi.
Referenced by main().

|
static |
Definition at line 667 of file mbdyn.cc.
References DIR_SEP, is_abs_path(), MBDYN_EXCEPT_ARGS, path, PATH_MAX, and sDefaultOutputFileName.
Referenced by mbdyn_program().

|
static |
Definition at line 776 of file mbdyn.cc.
References ASSERT, mbdyn_proc_t::bException, mbdyn_proc_t::bRedefine, mbdyn_proc_t::bShowSymbolTable, mbdyn_proc_t::bTable, buf, mbdyn_proc_t::CurrInputFormat, mbdyn_proc_t::CurrInputSource, mbdyn_proc_t::FileStreamIn, Solver::GetCPUTime(), GetEnviron(), MathParser::GetSymbolTable(), mbdyn_proc_t::iSleepTime, MBDYN, MBDYN_EXCEPT_ARGS, mbdyn_prepare_files(), MBFILE_ARGS, MBFILE_OPT, MBFILE_STDIN, MBFILE_UNKNOWN, mbdyn_proc_t::nThreads, PATH_MAX, mbdyn_proc_t::pIn, mbdyn_proc_t::pMP, mbdyn_proc_t::pT, RunMBDyn(), SAFEDELETE, SAFENEWWITHCONSTRUCTOR, sDefaultInputFileName(), mbdyn_proc_t::sInputFileName, mbdyn_proc_t::sOutputFileName, and mbdyn_proc_t::using_mpi.
Referenced by main().

|
static |
Definition at line 197 of file mbdyn.cc.
Referenced by mbdyn_parse_arguments().
|
static |
Definition at line 1156 of file mbdyn.cc.
References ASSERT, buf, DEBUGCOUTFNAME, END, HighParser::GetDescription(), IncludeParser::GetLineData(), HighParser::GetWord(), LASTKEYWORD, MBDYN_EXCEPT_ARGS, Solver::Run(), SAFEDELETE, SAFEDELETEARR, SAFENEWARR, SAFENEWWITHCONSTRUCTOR, and STRLENOF.
Referenced by mbdyn_program().

| const std::string sDefaultInputFileName | ( | "MBDyn" | ) |
Referenced by main(), and mbdyn_program().
| const char sDefaultOutputFileName[] = "MBDyn" |
Definition at line 117 of file mbdyn.cc.
Referenced by mbdyn_prepare_files().