#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mefelinit.h"
#include "global.h"
#include "globmat.h"
#include "sequent.h"
#include "intpoints.h"
#include "gtopology.h"
#include "meshtransfer.h"
#include "adaptivity.h"
#include "mechprint.h"
#include "nssolver.h"
#include "element.h"
#include "elemswitch.h"
#include "iotools.h"
#include "xfile.h"
#include "saddpoint.h"
#include "stacktrace.h"
Go to the source code of this file.
Functions | |
void | mefel_init (int argc, const char *argv[], stochdriver *stochd) |
function initializes | |
void | print_help (FILE *out, const char *prgname) |
function prints help message to the stdout | |
long | process_args (int argc, const char *argv[]) |
function decodes used command line arguments |
void mefel_init | ( | int | argc, | |
const char * | argv[], | |||
stochdriver * | stochd | |||
) |
function initializes
Function reads data from input file and initiates all necessary variables and arrays.
Parameters:
argc | - number of passed command line parameters | |
argv | - array of pointers to strings with command line parameters passed to program | |
stochd | - pointer to stochdriver |
Returns:
The | function does not return anything. |
Created by JK, Modified by Tomas Koudelka,
Definition at line 39 of file mefelinit.cpp.
References gtopology::adjacelem(), adjacip(), gtopology::adjacnodes(), lhsrhs::alloc(), mechtop::alloc_edges(), mechtop::alloc_enodes(), mechtop::alloc_growstr(), gtopology::alloc_growstr(), mechtop::alloc_nodes_arrays(), mechbclc::alloc_sumcomp(), mechmat::alloceigstrains(), mechmat::alloceigstresses(), mechmat::alloctempstrains(), Amat, gtopology::auto_subdom_detection(), gtopology::backup_codnum(), gtopology::bckcn, gtopology::code_num_mod(), gtopology::codenum_generation(), gtopology::comp_domain_sizes(), mechtop::comreac(), mechmat::csol, Dmat, mechtop::domvol, earth_pressure, probdesc::eigstrains, mechtop::elements, mechtop::elemprescdisp(), mechtop::elempresctemp(), probdesc::filename, filename_decomposition(), gtopology::flsub, mechtop::gencodnumlagrmult(), mechtop::give_domain_vol(), mechtop::give_maxncompo(), mechtop::give_maxncompstr(), mechtop::give_ncomp(), gtopology::gnodes, growing_mech_structure, Gtm, hemivar_inequal, probdesc::homog, mechbclc::ico, ignore, XFILE::ignorecase, mechbclc::inicipval(), mechmat::init_ip_1(), mechmat::init_ip_2(), lhsrhs::initcond(), gtopology::initiate_elemmult(), ipvolume(), Ismat, kwd_full, kwd_outd, kwd_pd, XFILE::kwdmode, probdesc::kwdsw, layered_linear_statics, lin_floating_subdomain, linear_statics, Lsrs, probdesc::matmodel, mechmat::max_encompo, mechmat::max_ncompstre, mechmat::max_ncompstrn, mechmat::max_nncompo, Mb, Mc, mech_timedependent_prob, memset(), Mespr, Mm, Mmat, Mp, Mt, floatsub::ndof_subdom(), Ndofm, gtopology::nn, nokwd, nonlocal, Out, Outdm, outdriverm::outfn, probdesc::path, slesolv::prepare_data(), print_err(), process_args(), probdesc::reactcomp, stochdriver::read(), outdriverm::read(), mechbclc::read(), mechcrsec::read(), mechmat::read(), mechtop::read(), probdesc::read(), gtopology::read_gf(), restore_adjacip(), save_adjacip(), sequent_mode, set_prgname(), Smat, probdesc::ssle, St, probdesc::stochasticcalc, probdesc::suffix, element::te, probdesc::temperature, probdesc::tlm, probdesc::tprob, XFILE::warning, xfclose(), and xfopen().
Referenced by main().
void print_help | ( | FILE * | out, | |
const char * | prgname | |||
) |
function prints help message to the stdout
Function prints help for command line to the opened file out
out | - pointer to the opened text file for output of help | |
prgname | - program name |
created 15.10.2007 by Tomas Koudelka koudelka,fsv.cvut.cz
Definition at line 402 of file mefelinit.cpp.
Referenced by process_args().
long process_args | ( | int | argc, | |
const char * | argv[] | |||
) |
function decodes used command line arguments
Function processes command line switches.
argc | - number of command line arguments | |
argv | - pointer to string array with particular arguments |
0 | - on success | |
1 | - unknown switch is required |
created 15.10.2007 by Tomas Koudelka koudelka@cml.fsv.cvut.cz
Definition at line 430 of file mefelinit.cpp.
References probdesc::kwdsw, Mp, nokwd, print_help(), and strstrcis().
Referenced by mefel_init(), and pmefel_init().