Code_Saturne
CFD tool
ecs_post_cgns_priv.h
Go to the documentation of this file.
1 #ifndef _ECS_POST_CGNS_PRIV_H_
2 #define _ECS_POST_CGNS_PRIV_H_
3 
4 /*============================================================================
5  * Définition de la structure `_ecs_cgns_t' pour les sorties au format CGNS
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2012 EDF S.A.
12 
13  This program is free software; you can redistribute it and/or modify it under
14  the terms of the GNU General Public License as published by the Free Software
15  Foundation; either version 2 of the License, or (at your option) any later
16  version.
17 
18  This program is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21  details.
22 
23  You should have received a copy of the GNU General Public License along with
24  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25  Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27 
28 /*----------------------------------------------------------------------------*/
29 
30 /*============================================================================
31  * Visibilité
32  *============================================================================*/
33 
34 #include "cs_config.h"
35 
36 #if defined(HAVE_CGNS)
37 
38 /*----------------------------------------------------------------------------
39  * Fichiers `include' librairie standard C
40  *----------------------------------------------------------------------------*/
41 
42 
43 /*----------------------------------------------------------------------------
44  * Fichiers `include' publics du paquetage global "Utilitaire"
45  *----------------------------------------------------------------------------*/
46 
47 #include "ecs_def.h"
48 
49 /*----------------------------------------------------------------------------
50  * Fichiers `include' publics des paquetages visibles
51  *----------------------------------------------------------------------------*/
52 
53 
54 /*----------------------------------------------------------------------------
55  * Fichiers `include' publics du paquetage courant
56  *----------------------------------------------------------------------------*/
57 
58 #include "ecs_post_cgns.h"
59 
60 /*============================================================================
61  * Définition de macros
62  *============================================================================*/
63 
64 #define ECS_CGNS_TAILLE_NOM 32 /* Longueur nom max (la documentation
65  ne précise rien, mais les exemples
66  CGNS et le fichier ADF.h prévoient
67  des chaînes de 32 caractères) */
68 
69 /* Compatibilité avec diverses versions de CGNS */
70 
71 #if !defined(CG_OK)
72 #define CG_OK ALL_OK
73 #endif
74 
75 /*============================================================================
76  * Définitions de types
77  *============================================================================*/
78 
79 
80 /* Structure d'information sur les maillages pour le post traitement */
81 
82 typedef struct {
83 
84  char *nom_maillage; /* Nom du maillage CGNS */
85 
86  char *nom_fic; /* Nom du fichier CGNS */
87  int num_fic; /* Identificateur de fichier CGNS */
88 
89  /* Informations sur état du cas en post traitement */
90 
91  int dim_espace; /* Dimension de l'espace associé */
92  int dim_entite; /* Dimension entités maillage */
93 
94  bool fic_ouvert; /* Fichier ouvert ou non ? */
95 
97 
98 
99 /* Structure définissant un cas de sortie CGNS */
100 
102 
103  /* Informations principales (post traitement) */
104 
105  char *nom_cas; /* Nom du cas */
106 
107  ecs_int_t nbr_bases; /* Nombre de ``bases'' */
108  ecs_post_cgns_base_t **tab_bases; /* Descripteurs des ``bases'' */
109 
110 };
111 
112 #endif /* HAVE_CGNS */
113 
114 /*----------------------------------------------------------------------------*/
115 
116 #endif /* _ECS_POST_CGNS_PRIV_H_ */
117 
int ecs_int_t
Definition: ecs_def.h:131
char * nom_maillage
Definition: ecs_post_cgns_priv.h:84
char * nom_cas
Definition: ecs_post_cgns_priv.h:105
Definition: ecs_post_cgns_priv.h:82
bool fic_ouvert
Definition: ecs_post_cgns_priv.h:94
int dim_espace
Definition: ecs_post_cgns_priv.h:91
char * nom_fic
Definition: ecs_post_cgns_priv.h:86
int num_fic
Definition: ecs_post_cgns_priv.h:87
ecs_int_t nbr_bases
Definition: ecs_post_cgns_priv.h:107
Definition: ecs_post_cgns_priv.h:101
ecs_post_cgns_base_t ** tab_bases
Definition: ecs_post_cgns_priv.h:108
int dim_entite
Definition: ecs_post_cgns_priv.h:92