OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Checks error in analysis (for automatic regression tests). More...
#include <errorcheckingexportmodule.h>
Public Member Functions | |
ErrorCheckingExportModule (int n, EngngModel *e) | |
virtual | ~ErrorCheckingExportModule () |
ErrorCheckingExportModule (const ErrorCheckingExportModule &)=delete | |
ErrorCheckingExportModule & | operator= (const ErrorCheckingExportModule &)=delete |
virtual IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
virtual void | doOutput (TimeStep *tStep, bool forcedOutput=false) |
Writes the output. More... | |
virtual const char * | giveClassName () const |
Returns class name of the receiver. More... | |
virtual const char * | giveInputRecordName () const |
Public Member Functions inherited from oofem::ExportModule | |
ExportModule (int n, EngngModel *e) | |
Constructor. Creates empty Output Manager with number n. More... | |
virtual | ~ExportModule () |
Destructor. More... | |
void | doForcedOutput (TimeStep *tStep) |
Writes the output. More... | |
bool | testSubStepOutput () |
Initializes receiver. More... | |
virtual void | initialize () |
virtual void | initializeElementSet () |
Fill regionSets with all elements if regionSets is initially empty. More... | |
virtual void | terminate () |
Terminates the receiver. More... | |
Protected Member Functions | |
bool | scanToErrorChecks (std::ifstream &stream, double &errorTolerance) |
ErrorCheckingRule * | giveErrorCheck (std::ifstream &stream, double errorTolerance) |
void | writeCheck (Domain *domain, TimeStep *tStep) |
Protected Member Functions inherited from oofem::ExportModule | |
int | giveNumberOfRegions () |
Returns number of regions (aka regionSets) More... | |
Set * | giveRegionSet (int i) |
Returns element set. More... | |
std::string | giveOutputBaseFileName (TimeStep *tStep) |
Gives the appropriate name (minus specific file extension). More... | |
bool | testTimeStepOutput (TimeStep *tStep) |
Tests if given time step output is required. More... | |
bool | testDomainOutput (int n) |
Test if domain output is required. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Protected Attributes | |
std::string | filename |
std::vector< std::unique_ptr< ErrorCheckingRule > > | errorCheckingRules |
bool | allPassed |
bool | writeChecks |
IntArray | writeIST |
Protected Attributes inherited from oofem::ExportModule | |
int | number |
Component number. More... | |
EngngModel * | emodel |
Problem pointer. More... | |
bool | tstep_all_out_flag |
Indicates all steps selection. More... | |
int | tstep_step_out |
User timeStep Output step. Indicates every tstep_step_out-th step selected. More... | |
std::list< Range > | tsteps_out |
List of user selected step numbers. More... | |
bool | tstep_substeps_out_flag |
Flag turning output in solution step substeps/itarations. More... | |
bool | domain_all_flag |
Indicates all domains. More... | |
IntArray | domainMask |
Domain selection mask. More... | |
IntArray | regionSets |
regions represented by sets More... | |
double | timeScale |
Scaling time in output, e.g. conversion from seconds to hours. More... | |
Set | defaultElementSet |
Default region set. More... | |
Checks error in analysis (for automatic regression tests).
Exits with error if results are incorrect.
Definition at line 165 of file errorcheckingexportmodule.h.
oofem::ErrorCheckingExportModule::ErrorCheckingExportModule | ( | int | n, |
EngngModel * | e | ||
) |
Definition at line 415 of file errorcheckingexportmodule.C.
References allPassed, and writeChecks.
|
inlinevirtual |
Definition at line 181 of file errorcheckingexportmodule.h.
|
delete |
|
virtual |
Writes the output.
Abstract service.
tStep | Time step. |
forcedOutput | If true, no testTimeStepOutput should be done. |
Implements oofem::ExportModule.
Definition at line 469 of file errorcheckingexportmodule.C.
References allPassed, oofem::ExportModule::emodel, errorCheckingRules, oofem::EngngModel::giveDomain(), oofem::TimeStep::isNotTheLastStep(), OOFEM_ERROR, OOFEM_LOG_INFO, oofem::ExportModule::testTimeStepOutput(), writeCheck(), and writeChecks.
|
inlinevirtual |
Returns class name of the receiver.
Implements oofem::ExportModule.
Definition at line 188 of file errorcheckingexportmodule.h.
|
protected |
Definition at line 562 of file errorcheckingexportmodule.C.
References OOFEM_ERROR.
Referenced by initializeFrom().
|
inlinevirtual |
Definition at line 189 of file errorcheckingexportmodule.h.
References _IFT_ErrorCheckingExportModule_Name.
|
virtual |
Initializes receiver according to object description stored in input record.
Reimplemented from oofem::ExportModule.
Definition at line 422 of file errorcheckingexportmodule.C.
References _IFT_ErrorCheckingExportModule_filename, _IFT_ErrorCheckingExportModule_writeIST, allPassed, oofem::IntArray::clear(), oofem::ExportModule::emodel, errorCheckingRules, filename, giveErrorCheck(), oofem::EngngModel::giveReferenceFileName(), oofem::InputRecord::hasField(), oofem::ExportModule::initializeFrom(), IR_GIVE_FIELD, oofem::IRRT_BAD_FORMAT, OOFEM_WARNING, scanToErrorChecks(), writeChecks, and writeIST.
|
delete |
|
protected |
Definition at line 545 of file errorcheckingexportmodule.C.
Referenced by initializeFrom().
Definition at line 498 of file errorcheckingexportmodule.C.
References oofem::FloatArray::at(), oofem::IntegrationRule::getIntegrationPoint(), oofem::Domain::giveDofManagers(), oofem::Domain::giveElements(), oofem::TimeStep::giveNumber(), oofem::IntegrationRule::giveNumberOfIntegrationPoints(), oofem::FloatArray::giveSize(), oofem::TimeStep::isNotTheLastStep(), oofem::TimeStep::isTheFirstStep(), and writeIST.
Referenced by doOutput().
|
protected |
Definition at line 170 of file errorcheckingexportmodule.h.
Referenced by doOutput(), ErrorCheckingExportModule(), and initializeFrom().
|
protected |
Definition at line 169 of file errorcheckingexportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Definition at line 168 of file errorcheckingexportmodule.h.
Referenced by initializeFrom().
|
protected |
Definition at line 171 of file errorcheckingexportmodule.h.
Referenced by doOutput(), ErrorCheckingExportModule(), and initializeFrom().
|
protected |
Definition at line 172 of file errorcheckingexportmodule.h.
Referenced by initializeFrom(), and writeCheck().