OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::ErrorCheckingExportModule Class Reference

Checks error in analysis (for automatic regression tests). More...

#include <errorcheckingexportmodule.h>

+ Inheritance diagram for oofem::ErrorCheckingExportModule:
+ Collaboration diagram for oofem::ErrorCheckingExportModule:

Public Member Functions

 ErrorCheckingExportModule (int n, EngngModel *e)
 
virtual ~ErrorCheckingExportModule ()
 
 ErrorCheckingExportModule (const ErrorCheckingExportModule &)=delete
 
ErrorCheckingExportModuleoperator= (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)
 
ErrorCheckingRulegiveErrorCheck (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...
 
SetgiveRegionSet (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...
 
EngngModelemodel
 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< Rangetsteps_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...
 

Detailed Description

Checks error in analysis (for automatic regression tests).

Exits with error if results are incorrect.

Author
Mikael Öhman (and others)

Definition at line 165 of file errorcheckingexportmodule.h.

Constructor & Destructor Documentation

oofem::ErrorCheckingExportModule::ErrorCheckingExportModule ( int  n,
EngngModel e 
)

Definition at line 415 of file errorcheckingexportmodule.C.

References allPassed, and writeChecks.

virtual oofem::ErrorCheckingExportModule::~ErrorCheckingExportModule ( )
inlinevirtual

Definition at line 181 of file errorcheckingexportmodule.h.

oofem::ErrorCheckingExportModule::ErrorCheckingExportModule ( const ErrorCheckingExportModule )
delete

Member Function Documentation

void oofem::ErrorCheckingExportModule::doOutput ( TimeStep tStep,
bool  forcedOutput = false 
)
virtual

Writes the output.

Abstract service.

Parameters
tStepTime step.
forcedOutputIf 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.

virtual const char* oofem::ErrorCheckingExportModule::giveClassName ( ) const
inlinevirtual

Returns class name of the receiver.

Implements oofem::ExportModule.

Definition at line 188 of file errorcheckingexportmodule.h.

ErrorCheckingRule * oofem::ErrorCheckingExportModule::giveErrorCheck ( std::ifstream &  stream,
double  errorTolerance 
)
protected

Definition at line 562 of file errorcheckingexportmodule.C.

References OOFEM_ERROR.

Referenced by initializeFrom().

virtual const char* oofem::ErrorCheckingExportModule::giveInputRecordName ( ) const
inlinevirtual

Definition at line 189 of file errorcheckingexportmodule.h.

References _IFT_ErrorCheckingExportModule_Name.

ErrorCheckingExportModule& oofem::ErrorCheckingExportModule::operator= ( const ErrorCheckingExportModule )
delete
bool oofem::ErrorCheckingExportModule::scanToErrorChecks ( std::ifstream &  stream,
double &  errorTolerance 
)
protected

Definition at line 545 of file errorcheckingexportmodule.C.

Referenced by initializeFrom().

Member Data Documentation

bool oofem::ErrorCheckingExportModule::allPassed
protected
std :: vector< std :: unique_ptr< ErrorCheckingRule > > oofem::ErrorCheckingExportModule::errorCheckingRules
protected

Definition at line 169 of file errorcheckingexportmodule.h.

Referenced by doOutput(), and initializeFrom().

std :: string oofem::ErrorCheckingExportModule::filename
protected

Definition at line 168 of file errorcheckingexportmodule.h.

Referenced by initializeFrom().

bool oofem::ErrorCheckingExportModule::writeChecks
protected
IntArray oofem::ErrorCheckingExportModule::writeIST
protected

Definition at line 172 of file errorcheckingexportmodule.h.

Referenced by initializeFrom(), and writeCheck().


The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:35 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011