Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ArcaneBasicVerifierService Class Reference
Inheritance diagram for Arcane::ArcaneBasicVerifierService:
Collaboration diagram for Arcane::ArcaneBasicVerifierService:

Classes

class  GroupFinder

Public Member Functions

 ArcaneBasicVerifierService (const ServiceBuildInfo &sbi)
void build () override
 Build-level construction of the service.
void writeReferenceFile () override
 Writes the reference file.
void doVerifFromReferenceFile (bool parallel_sequential, bool compare_ghost) override
 Performs the verification from the reference file.
Public Member Functions inherited from Arcane::VerifierService
 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.
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.

Protected Member Functions

void _setFormatVersion (Int32 v)
Protected Member Functions inherited from Arcane::VerifierService
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

void _computeFullFileName (bool is_read)
void _doVerifHash (BasicReader *reader, const VariableCollection &variables)
void _writeReferenceFile (const String &file_name)

Private Attributes

String m_full_file_name
Int32 m_wanted_format_version = 1

Additional Inherited Members

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

Detailed Description

Definition at line 45 of file ArcaneBasicVerifierService.cc.

Constructor & Destructor Documentation

◆ ArcaneBasicVerifierService()

Arcane::ArcaneBasicVerifierService::ArcaneBasicVerifierService ( const ServiceBuildInfo & sbi)
inlineexplicit

Definition at line 72 of file ArcaneBasicVerifierService.cc.

Member Function Documentation

◆ _computeFullFileName()

void Arcane::ArcaneBasicVerifierService::_computeFullFileName ( bool is_read)
inlineprivate

Definition at line 97 of file ArcaneBasicVerifierService.cc.

◆ _doVerifHash()

void Arcane::ArcaneBasicVerifierService::_doVerifHash ( BasicReader * reader,
const VariableCollection & variables )
private

Definition at line 214 of file ArcaneBasicVerifierService.cc.

◆ _setFormatVersion()

void Arcane::ArcaneBasicVerifierService::_setFormatVersion ( Int32 v)
inlineprotected

Definition at line 85 of file ArcaneBasicVerifierService.cc.

◆ _writeReferenceFile()

void Arcane::ArcaneBasicVerifierService::_writeReferenceFile ( const String & file_name)
private

Definition at line 116 of file ArcaneBasicVerifierService.cc.

◆ build()

void Arcane::ArcaneBasicVerifierService::build ( void )
inlineoverridevirtual

Build-level construction of the service.

This method is called right after the constructor.

Reimplemented from Arcane::AbstractService.

Definition at line 79 of file ArcaneBasicVerifierService.cc.

◆ doVerifFromReferenceFile()

void Arcane::ArcaneBasicVerifierService::doVerifFromReferenceFile ( bool parallel_sequential,
bool compare_ghost )
overridevirtual

Performs the verification from the reference file.

Parameters
parallel_sequentialif true, indicates that the result of a parallel execution is compared with that of a sequential execution. This option is inactive if the execution is sequential.
compare_ghostif true, indicates that the results are also compared on ghost entities. It is generally normal for the results to be different on ghost entities, because it is not necessary that all variables are synchronized. This is why it is better generally not to perform verification on ghost entities. This option is inactive if the execution is sequential.

Implements Arcane::IVerifierService.

Definition at line 164 of file ArcaneBasicVerifierService.cc.

References Arcane::VerifierService::_getVariables(), Arcane::ISubDomain::application(), Arcane::IVariableUtilities::filterCommonVariables(), Arcane::RefImpl< InstanceType, RefClassType, ImplTagId >::get(), Arcane::IVerifierService::HashOnly, Arcane::ITraceMng::info(), Arcane::IParallelMng::isParallel(), Arcane::makeRef(), Arcane::ISubDomain::parallelMng(), Arcane::IBase::traceMng(), Arcane::IVariableMng::utilities(), Arcane::IVerifierService::Values, and Arcane::ISubDomain::variableMng().

Here is the call graph for this function:

◆ writeReferenceFile()

void Arcane::ArcaneBasicVerifierService::writeReferenceFile ( )
overridevirtual

Writes the reference file.

Implements Arcane::IVerifierService.

Definition at line 152 of file ArcaneBasicVerifierService.cc.

References Arcane::platform::getFileDirName(), and Arcane::platform::recursiveCreateDirectory().

Here is the call graph for this function:

Member Data Documentation

◆ m_full_file_name

String Arcane::ArcaneBasicVerifierService::m_full_file_name
private

Definition at line 92 of file ArcaneBasicVerifierService.cc.

◆ m_wanted_format_version

Int32 Arcane::ArcaneBasicVerifierService::m_wanted_format_version = 1
private

Definition at line 93 of file ArcaneBasicVerifierService.cc.


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