1
#ifndef _ECS_POST_CGNS_PRIV_H_
2
#define _ECS_POST_CGNS_PRIV_H_
4
/*============================================================================
5
* Définition de la structure `_ecs_cgns_t' pour les sorties au format CGNS
6
*============================================================================*/
9
This file is part of Code_Saturne, a general-purpose CFD tool.
11
Copyright (C) 1998-2011 EDF S.A.
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
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
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.
28
/*----------------------------------------------------------------------------*/
30
/*============================================================================
32
*============================================================================*/
34
#include "cs_config.h"
36
#if defined(HAVE_CGNS)
38
/*----------------------------------------------------------------------------
39
* Fichiers `include' librairie standard C
40
*----------------------------------------------------------------------------*/
43
/*----------------------------------------------------------------------------
44
* Fichiers `include' publics du paquetage global "Utilitaire"
45
*----------------------------------------------------------------------------*/
49
/*----------------------------------------------------------------------------
50
* Fichiers `include' publics des paquetages visibles
51
*----------------------------------------------------------------------------*/
54
/*----------------------------------------------------------------------------
55
* Fichiers `include' publics du paquetage courant
56
*----------------------------------------------------------------------------*/
58
#include "ecs_post_cgns.h"
60
/*============================================================================
61
* Définition de macros
62
*============================================================================*/
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) */
69
/* Compatibilité avec diverses versions de CGNS */
75
/*============================================================================
76
* Définitions de types
77
*============================================================================*/
80
/* Structure d'information sur les maillages pour le post traitement */
84
char *nom_maillage; /* Nom du maillage CGNS */
86
char *nom_fic; /* Nom du fichier CGNS */
87
int num_fic; /* Identificateur de fichier CGNS */
89
/* Informations sur état du cas en post traitement */
91
int dim_espace; /* Dimension de l'espace associé */
92
int dim_entite; /* Dimension entités maillage */
94
bool fic_ouvert; /* Fichier ouvert ou non ? */
96
} ecs_post_cgns_base_t;
99
/* Structure définissant un cas de sortie CGNS */
101
struct _ecs_post_cgns_t {
103
/* Informations principales (post traitement) */
105
char *nom_cas; /* Nom du cas */
107
ecs_int_t nbr_bases; /* Nombre de ``bases'' */
108
ecs_post_cgns_base_t **tab_bases; /* Descripteurs des ``bases'' */
112
#endif /* HAVE_CGNS */
114
/*----------------------------------------------------------------------------*/
116
#endif /* _ECS_POST_CGNS_PRIV_H_ */