Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::VerifierService Class Reference

Base class for the data verification service between two runs. More...

#include <arcane/core/VerifierService.h>

Inheritance diagram for Arcane::VerifierService:
Collaboration diagram for Arcane::VerifierService:

Classes

struct  DiffInfo

Public Member Functions

 VerifierService (const ServiceBuildInfo &sbi)
IBaseserviceParent () const override
 Access to the base interface of main Arcane objects.
IServiceInfoserviceInfo () const override
 Access to service information. See IServiceInfo for details.
IServiceserviceInterface () override
 Returns the low-level IService interface of the service.
void setFileName (const String &file_name) override
 Sets the name of the file containing the reference values.
String fileName () const override
 Name of the file containing the reference values.
void setResultFileName (const String &file_name) override
 Name of the file containing the results.
String resultfileName () const override
void setCompareMode (eCompareMode v) override
 Desired comparison type.
eCompareMode compareMode () const override
void setSubDir (const String &sub_dir) override
 Sets the name of the subdirectory containing the reference values.
String subDir () const override
 Name of the file containing the reference values.
void setComputeDifferenceMethod (eVariableComparerComputeDifferenceMethod v) override
 Method to use for calculating the difference between two values.
eVariableComparerComputeDifferenceMethod computeDifferenceMethod () const override
ISubDomainsubDomain ()
Public Member Functions inherited from Arcane::AbstractService
 ~AbstractService () override
 Destructor.
virtual void build ()
 Build-level construction of the service.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const
Public Member Functions inherited from Arcane::IService
virtual ~IService ()
 Releases resources.
Public Member Functions inherited from Arcane::IVerifierService
virtual ~IVerifierService ()=default
 Frees resources.
virtual void writeReferenceFile ()=0
 Writes the reference file.
virtual void doVerifFromReferenceFile (bool parallel_sequential, bool compare_ghost)=0
 Performs the verification from the reference file.

Protected Member Functions

virtual void _doVerif (IDataReader *reader, const VariableCollection &variables, bool compare_ghost)
virtual void _getVariables (VariableList variables, bool parallel_sequential)
 Fills the list of variables that need to be reread in variables.
Protected Member Functions inherited from Arcane::AbstractService
 AbstractService (const ServiceBuildInfo &)
 Constructor from a ServiceBuildInfo.
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const
Protected Member Functions inherited from Arcane::IService
 IService ()
 Constructor.

Private Member Functions

template<typename ReaderType>
void _doVerif2 (ReaderType reader, const VariableList &variables, bool compare_ghost)

Private Attributes

ISubDomainm_sub_domain = nullptr
IServiceInfom_service_info = nullptr
String m_file_name
String m_result_file_name
String m_sub_dir
eCompareMode m_compare_mode = eCompareMode::Values
eVariableComparerComputeDifferenceMethod m_compute_diff_method = eVariableComparerComputeDifferenceMethod::Relative

Additional Inherited Members

Public Types inherited from Arcane::IVerifierService
enum class  eCompareMode { Values , HashOnly }
 Comparison mode. More...

Detailed Description

Base class for the data verification service between two runs.

Definition at line 44 of file VerifierService.h.

Constructor & Destructor Documentation

◆ VerifierService()

Arcane::VerifierService::VerifierService ( const ServiceBuildInfo & sbi)
explicit

Definition at line 43 of file VerifierService.cc.

Member Function Documentation

◆ _doVerif()

void Arcane::VerifierService::_doVerif ( IDataReader * reader,
const VariableCollection & variables,
bool compare_ghost )
protectedvirtual

Definition at line 240 of file VerifierService.cc.

◆ _doVerif2()

template<typename ReaderType>
void Arcane::VerifierService::_doVerif2 ( ReaderType reader,
const VariableList & variables,
bool compare_ghost )
private

Definition at line 100 of file VerifierService.cc.

◆ _getVariables()

void Arcane::VerifierService::_getVariables ( VariableList variables,
bool parallel_sequential )
protectedvirtual

Fills the list of variables that need to be reread in variables.

Definition at line 64 of file VerifierService.cc.

References Arcane::MeshHandle::hasMesh(), Arcane::IK_Unknown, Arcane::IVariable::itemKind(), Arcane::MeshHandle::mesh(), Arcane::IVariable::meshHandle(), Arcane::ISubDomain::parallelMng(), Arcane::IVariable::PExecutionDepend, Arcane::IVariable::property(), Arcane::IVariable::PSubDomainDepend, Arcane::IVariableMng::usedVariables(), and Arcane::ISubDomain::variableMng().

Referenced by Arcane::ArcaneBasicVerifierService::doVerifFromReferenceFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compareMode()

eCompareMode Arcane::VerifierService::compareMode ( ) const
inlineoverridevirtual

Implements Arcane::IVerifierService.

Definition at line 91 of file VerifierService.h.

◆ computeDifferenceMethod()

eVariableComparerComputeDifferenceMethod Arcane::VerifierService::computeDifferenceMethod ( ) const
inlineoverridevirtual

Implements Arcane::IVerifierService.

Definition at line 100 of file VerifierService.h.

◆ fileName()

String Arcane::VerifierService::fileName ( ) const
inlineoverridevirtual

Name of the file containing the reference values.

Implements Arcane::IVerifierService.

Definition at line 82 of file VerifierService.h.

◆ resultfileName()

String Arcane::VerifierService::resultfileName ( ) const
inlineoverridevirtual

Implements Arcane::IVerifierService.

Definition at line 87 of file VerifierService.h.

◆ serviceInfo()

IServiceInfo * Arcane::VerifierService::serviceInfo ( ) const
inlineoverridevirtual

Access to service information. See IServiceInfo for details.

Reimplemented from Arcane::AbstractService.

Definition at line 76 of file VerifierService.h.

◆ serviceInterface()

IService * Arcane::VerifierService::serviceInterface ( )
inlineoverridevirtual

Returns the low-level IService interface of the service.

Reimplemented from Arcane::AbstractService.

Definition at line 77 of file VerifierService.h.

◆ serviceParent()

IBase * Arcane::VerifierService::serviceParent ( ) const
overridevirtual

Access to the base interface of main Arcane objects.

Reimplemented from Arcane::AbstractService.

Definition at line 55 of file VerifierService.cc.

◆ setCompareMode()

void Arcane::VerifierService::setCompareMode ( eCompareMode v)
inlineoverridevirtual

Desired comparison type.

Implements Arcane::IVerifierService.

Definition at line 90 of file VerifierService.h.

◆ setComputeDifferenceMethod()

void Arcane::VerifierService::setComputeDifferenceMethod ( eVariableComparerComputeDifferenceMethod v)
inlineoverridevirtual

Method to use for calculating the difference between two values.

Implements Arcane::IVerifierService.

Definition at line 96 of file VerifierService.h.

◆ setFileName()

void Arcane::VerifierService::setFileName ( const String & file_name)
inlineoverridevirtual

Sets the name of the file containing the reference values.

Implements Arcane::IVerifierService.

Definition at line 81 of file VerifierService.h.

◆ setResultFileName()

void Arcane::VerifierService::setResultFileName ( const String & file_name)
inlineoverridevirtual

Name of the file containing the results.

Implements Arcane::IVerifierService.

Definition at line 86 of file VerifierService.h.

◆ setSubDir()

void Arcane::VerifierService::setSubDir ( const String & sub_dir)
inlineoverridevirtual

Sets the name of the subdirectory containing the reference values.

Implements Arcane::IVerifierService.

Definition at line 93 of file VerifierService.h.

◆ subDir()

String Arcane::VerifierService::subDir ( ) const
inlineoverridevirtual

Name of the file containing the reference values.

Implements Arcane::IVerifierService.

Definition at line 94 of file VerifierService.h.

◆ subDomain()

ISubDomain * Arcane::VerifierService::subDomain ( )
inline

Definition at line 113 of file VerifierService.h.

Member Data Documentation

◆ m_compare_mode

eCompareMode Arcane::VerifierService::m_compare_mode = eCompareMode::Values
private

Definition at line 123 of file VerifierService.h.

◆ m_compute_diff_method

eVariableComparerComputeDifferenceMethod Arcane::VerifierService::m_compute_diff_method = eVariableComparerComputeDifferenceMethod::Relative
private

Definition at line 124 of file VerifierService.h.

◆ m_file_name

String Arcane::VerifierService::m_file_name
private

Definition at line 120 of file VerifierService.h.

◆ m_result_file_name

String Arcane::VerifierService::m_result_file_name
private

Definition at line 121 of file VerifierService.h.

◆ m_service_info

IServiceInfo* Arcane::VerifierService::m_service_info = nullptr
private

Definition at line 119 of file VerifierService.h.

◆ m_sub_dir

String Arcane::VerifierService::m_sub_dir
private

Definition at line 122 of file VerifierService.h.

◆ m_sub_domain

ISubDomain* Arcane::VerifierService::m_sub_domain = nullptr
private

Definition at line 118 of file VerifierService.h.


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