TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Debog.h
1/****************************************************************************
2* Copyright (c) 2024, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Debog_included
17#define Debog_included
18
19#include <TRUSTTabs_forward.h>
20
21class Champ_Inc_base;
22class Matrice_Base;
23class MD_Vector;
24class Nom;
25
26class Debog
27{
28public:
29 static int active();
30 static void verifier(const char *const msg, double);
31 static void verifier(const char *const msg, int);
32 static void verifier(const char *const msg, const DoubleVect&);
33 static void verifier(const char *const msg, const IntVect&);
34 static void verifier_bord(const char *const msg, const DoubleVect& arr, int num_deb);
35 static void verifier(const char *const msg, const Champ_Inc_base&);
36 static void verifier_indices_items(const char *const msg, const MD_Vector&, const IntVect&);
37 static void set_nom_pb_actuel(const Nom& nom);
38
39 static void verifier_getref(const char *const msg, double val, double& refval);
40 static void verifier_getref(const char *const msg, int val, int& refval);
41 static void verifier_getref(const char *const msg, const DoubleVect& val, DoubleVect& refval);
42 static void verifier_getref(const char *const msg, const IntVect& val, IntVect& refval);
43
44 static void verifier_Mat_elems(const char *const msg, const Matrice_Base& la_matrice);
45 static void verifier_matrice(const char *const msg, const Matrice_Base&, const MD_Vector& md_lignes, const MD_Vector& md_colonnes);
46};
47
48#endif /* Debog_included */
Class Champ_Inc_base.
Definition Debog.h:27
static void verifier_bord(const char *const msg, const DoubleVect &arr, int num_deb)
Definition Debog.cpp:33
static void set_nom_pb_actuel(const Nom &nom)
Definition Debog.cpp:44
static void verifier_indices_items(const char *const msg, const MD_Vector &, const IntVect &)
Tests the content of the vector v assuming it contains item indices associated with the descriptor md...
Definition Debog.cpp:58
static void verifier_getref(const char *const msg, double val, double &refval)
like verifier(), but, in "read&compare" mode, put the reference value found in the file in the ref va...
Definition Debog.cpp:74
static int active()
Returns 1 if we are in Debog mode, 0 otherwise.
Definition Debog.cpp:66
static void verifier_matrice(const char *const msg, const Matrice_Base &, const MD_Vector &md_lignes, const MD_Vector &md_colonnes)
static void verifier_Mat_elems(const char *const msg, const Matrice_Base &la_matrice)
Definition Debog.cpp:123
static void verifier(const char *const msg, double)
Definition Debog.cpp:21
: This class is an OWN_PTR but the pointed object is shared among multiple
Definition MD_Vector.h:48
Matrice_Base class - Base class of the matrix hierarchy.
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31