1
/*============================================================================
2
* Definitions des fonctions
3
* associees a la structure `ecs_table_t' decrivant une table
4
* et realisant les sorties pour la communication
5
*============================================================================*/
8
This file is part of Code_Saturne, a general-purpose CFD tool.
10
Copyright (C) 1998-2011 EDF S.A.
12
This program is free software; you can redistribute it and/or modify it under
13
the terms of the GNU General Public License as published by the Free Software
14
Foundation; either version 2 of the License, or (at your option) any later
17
This program is distributed in the hope that it will be useful, but WITHOUT
18
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
22
You should have received a copy of the GNU General Public License along with
23
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
24
Street, Fifth Floor, Boston, MA 02110-1301, USA.
27
/*----------------------------------------------------------------------------*/
29
/*============================================================================
31
*============================================================================*/
33
/*----------------------------------------------------------------------------
34
* Fichiers `include' librairie standard C
35
*----------------------------------------------------------------------------*/
38
#include <string.h> /* strlen() */
41
/*----------------------------------------------------------------------------
42
* Fichiers `include' visibles du paquetage global "Utilitaire"
43
*----------------------------------------------------------------------------*/
49
/*----------------------------------------------------------------------------
50
* Fichiers `include' visibles du paquetage global "Post-Traitement"
51
*----------------------------------------------------------------------------*/
56
/*----------------------------------------------------------------------------
57
* Fichiers `include' visibles des paquetages visibles
58
*----------------------------------------------------------------------------*/
61
/*----------------------------------------------------------------------------
62
* Fichiers `include' visibles du paquetage courant
63
*----------------------------------------------------------------------------*/
65
#include "ecs_table.h"
68
/*----------------------------------------------------------------------------
69
* Fichier `include' du paquetage courant associe au fichier courant
70
*----------------------------------------------------------------------------*/
72
#include "ecs_table_comm.h"
75
/*----------------------------------------------------------------------------
76
* Fichiers `include' prives du paquetage courant
77
*----------------------------------------------------------------------------*/
79
#include "ecs_table_priv.h"
82
/*============================================================================
84
*============================================================================*/
86
/*============================================================================
88
*============================================================================*/
90
/*----------------------------------------------------------------------------
91
* Fonction qui ecrit le tableau des positions d'une table
92
* dans le fichier d'interface pour le Noyau
93
*----------------------------------------------------------------------------*/
96
ecs_table_comm__ecr_pos(ecs_table_t *this_table,
97
const char *comm_nom_rubrique,
102
/*xxxxxxxxxxxxxxxxxxxxxxxxxxx Instructions xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
104
assert(this_table != NULL);
106
ecs_table__regle_en_pos(this_table);
108
ecs_comm_write_section(comm_nom_rubrique,
118
ecs_table__pos_en_regle(this_table);
121
/*----------------------------------------------------------------------------
122
* Fonction qui ecrit le contenu d'une table
123
* dans le fichier d'interface pour le Noyau
124
*----------------------------------------------------------------------------*/
127
ecs_table_comm__ecr(ecs_table_t *this_table,
128
const char *comm_nom_rubrique,
131
size_t n_location_values,
136
/*xxxxxxxxxxxxxxxxxxxxxxxxxxx Instructions xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
138
assert(this_table != NULL);
140
nbr_val = ecs_table__ret_val_nbr(this_table);
144
ecs_comm_write_section(comm_nom_rubrique,
155
/*----------------------------------------------------------------------------*/