TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Reordonner.cpp
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#include <Reordonner.h>
17#include <Domaine.h>
18
19Implemente_instanciable_32_64(Reordonner_32_64,"Reordonner",Interprete_geometrique_base_32_64<_T_>);
20// XD resequencing interprete reordonner INHERITS_BRACE The Reordonner interpretor is required sometimes for a VDF mesh
21// XD_CONT which is not produced by the internal mesher. Example where this is used: NL2 Read_file dom fichier.geom NL2
22// XD_CONT Reordonner dom NL2 Observations: This keyword is redundant when the mesh that is read is correctly sequenced
23// XD_CONT in the TRUST sense. This significant mesh operation may take some time... The message returned by TRUST is
24// XD_CONT not explicit when the Reordonner (Resequencing) keyword is required but not included in the data set...
25// XD attr domain_name ref_domaine domain_name REQ Name of domain to resequence.
26
27
28/*! @brief Ecrit le type de l'objet sur un flot de sortie.
29 *
30 * @param (Sortie& s) un flot de sortie
31 * @return (Sortie&) le flot de sortie modifie
32 */
33template <typename _SIZE_>
35{
36 return s << this->que_suis_je() << finl;
37}
38
39
40/*! @brief NE FAIT RIEN
41 *
42 * @param (Entree& is) un flot d'entree
43 * @return (Entree&) le flot d'entree
44 */
45template <typename _SIZE_>
47{
48 return is;
49}
50
51
52/*! @brief Fonction principale de l'interprete Mailler Reordonne les noeuds du domaine specifie par
53 *
54 * la directive.
55 * Reordonner_32_64 dom
56 *
57 * @param (Entree& is) un flot d'entree
58 * @return (Entree&) le flot d'entree modifie
59 * @throws l'objet a reordonner n'est pas du type Domaine
60 */
61template <typename _SIZE_>
63{
64 this->associer_domaine(is);
65 this->domaine().reordonner();
66 return is;
67}
68
69
70template class Reordonner_32_64<int>;
71#if INT_is_64_ == 2
73#endif
74
75
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Interprete_geometrique_base .
friend class Entree
Definition Objet_U.h:76
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
Classe Reordonner Cette classe est un interprete qui sert a reordonner les noeuds d'un domaine.
Definition Reordonner.h:26
Entree & interpreter_(Entree &) override
Fonction principale de l'interprete Mailler Reordonne les noeuds du domaine specifie par.
Classe de base des flux de sortie.
Definition Sortie.h:52