TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Option_CGNS.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Option_CGNS_included
17#define Option_CGNS_included
18
19#include <Interprete.h>
20
21class Motcle;
22
23/**
24 * @brief Global CGNS post-processing options.
25 *
26 * This interpreter configures the file layout used by `Ecrire_CGNS`.
27 * The options intentionally describe families of workflows rather than low-level CGNS calls.
28 *
29 * Main families:
30 * - single file: one CGNS file stores all written times and fields,
31 * - linked files: one mesh file, one solution file per post time, and one
32 * final link file used as the visualization entry point,
33 * - communicator-group output: the same two strategies, but replicated on
34 * user-defined MPI communicator groups.
35 *
36 * Compatibility rules:
37 * - `PARALLEL_OVER_ZONE` and `SINGLE_FILE_PER_COMM_GROUP` belong to the single-file family,
38 * - `USE_LINKS` and `LINKED_FILES_PER_COMM_GROUP` belong to the linked-file family,
39 * - mixing both families is rejected explicitly.
40 */
42{
43 Declare_instanciable(Option_CGNS);
44public:
45 Entree& interpreter(Entree&) override;
46
47 /* Single file options : NOT BY DEFAULT */
50
51 /* Multiple linked files options : NOT BY DEFAULT */
53
54 /* Keep old cgns files if resetTime is used ... */
56};
57
58#endif /* Option_CGNS_included */
Classe de base des objets "interprete".
Definition Interprete.h:38
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:76
Global CGNS post-processing options.
Definition Option_CGNS.h:42
static bool KEEP_FILES_BEFORE_RESET_TIME
Definition Option_CGNS.h:55
Entree & interpreter(Entree &) override
static bool LINKED_FILES_PER_COMM_GROUP
Definition Option_CGNS.h:52
static bool PARALLEL_OVER_ZONE
Definition Option_CGNS.h:48
static int CLOSE_EVERY_N
Definition Option_CGNS.h:49
static bool SINGLE_FILE_PER_COMM_GROUP
Definition Option_CGNS.h:48
static bool USE_LINKS
Definition Option_CGNS.h:52
static int FLUSH_EVERY_N
Definition Option_CGNS.h:49