Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IVerifierService.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* IVerifierService.h (C) 2000-2025 */
9/* */
10/* Interface of the data verification service between two executions. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IVERIFIERSERVICE_H
13#define ARCANE_CORE_IVERIFIERSERVICE_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
34{
35 public:
36
40 enum class eCompareMode
41 {
53 };
54
55 public:
56
58 virtual ~IVerifierService() = default;
59
60 public:
61
63 virtual void writeReferenceFile() = 0;
64
79 virtual void doVerifFromReferenceFile(bool parallel_sequential, bool compare_ghost) = 0;
80
81 public:
82
84 virtual void setFileName(const String& file_name) = 0;
86 virtual String fileName() const = 0;
87
88 public:
89
91 virtual void setResultFileName(const String& file_name) = 0;
92 virtual String resultfileName() const = 0;
93
95 virtual void setCompareMode(eCompareMode v) = 0;
96 virtual eCompareMode compareMode() const = 0;
97
98 public:
99
101 virtual void setSubDir(const String& sub_dir) = 0;
103 virtual String subDir() const = 0;
104
105 public:
106
109 virtual eVariableComparerComputeDifferenceMethod computeDifferenceMethod() const = 0;
110};
111
112/*---------------------------------------------------------------------------*/
113/*---------------------------------------------------------------------------*/
114
115} // End namespace Arcane
116
117/*---------------------------------------------------------------------------*/
118/*---------------------------------------------------------------------------*/
119
120#endif
Declarations of Arcane's general types.
Interface of the data verification service between two executions.
virtual void setResultFileName(const String &file_name)=0
Name of the file containing the results.
virtual void writeReferenceFile()=0
Writes the reference file.
@ HashOnly
Compares only the hashes of the values.
virtual void setSubDir(const String &sub_dir)=0
Sets the name of the subdirectory containing the reference values.
virtual String subDir() const =0
Name of the file containing the reference values.
virtual ~IVerifierService()=default
Frees resources.
virtual void doVerifFromReferenceFile(bool parallel_sequential, bool compare_ghost)=0
Performs the verification from the reference file.
virtual void setComputeDifferenceMethod(eVariableComparerComputeDifferenceMethod v)=0
Method to use for calculating the difference between two values.
virtual void setFileName(const String &file_name)=0
Sets the name of the file containing the reference values.
virtual void setCompareMode(eCompareMode v)=0
Desired comparison type.
virtual String fileName() const =0
Name of the file containing the reference values.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
eVariableComparerComputeDifferenceMethod
Method used to calculate the difference between two values v1 and v2.