TrioCFD 1.9.9_beta
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 Writes the object type to an output stream.
29 *
30 * @param (Sortie& s) an output stream
31 * @return (Sortie&) the modified output stream
32 */
33template <typename _SIZE_>
35{
36 return s << this->que_suis_je() << finl;
37}
38
39
40/*! @brief DOES NOTHING
41 *
42 * @param (Entree& is) an input stream
43 * @return (Entree&) the input stream
44 */
45template <typename _SIZE_>
47{
48 return is;
49}
50
51
52/*! @brief Main function of the Mailler interpreter. Reorders the nodes of the domain specified by
53 *
54 * the directive.
55 * Reordonner_32_64 dom
56 *
57 * @param (Entree& is) an input stream
58 * @return (Entree&) the modified input stream
59 * @throws the object to reorder is not of 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
Class Interprete_geometrique_base.
friend class Entree
Definition Objet_U.h:71
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
Class Reordonner This class is an interpreter used to reorder the nodes of a domain.
Definition Reordonner.h:26
Entree & interpreter_(Entree &) override
Main function of the Mailler interpreter. Reorders the nodes of the domain specified by.
Base class for output streams.
Definition Sortie.h:52