Code_Saturne
CFD tool
ecs_cmd.h
Go to the documentation of this file.
1 #ifndef _ECS_CMD_H_
2 #define _ECS_CMD_H_
3 
4 /*============================================================================
5  * Prototypes des fonctions de base
6  * associées à la structure `ecs_cmd_t' décrivant
7  * les options de la ligne de commande
8  *============================================================================*/
9 
10 /*
11  This file is part of Code_Saturne, a general-purpose CFD tool.
12 
13  Copyright (C) 1998-2012 EDF S.A.
14 
15  This program is free software; you can redistribute it and/or modify it under
16  the terms of the GNU General Public License as published by the Free Software
17  Foundation; either version 2 of the License, or (at your option) any later
18  version.
19 
20  This program is distributed in the hope that it will be useful, but WITHOUT
21  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
22  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
23  details.
24 
25  You should have received a copy of the GNU General Public License along with
26  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
27  Street, Fifth Floor, Boston, MA 02110-1301, USA.
28 */
29 
30 /*----------------------------------------------------------------------------*/
31 
32 #include "cs_config.h"
33 
34 /*----------------------------------------------------------------------------
35  * Standard C library headers
36  *----------------------------------------------------------------------------*/
37 
38 /*----------------------------------------------------------------------------
39  * Local headers
40  *----------------------------------------------------------------------------*/
41 
42 #include "ecs_def.h"
43 #include "ecs_pre.h"
44 
45 /*============================================================================
46  * Type definitions
47  *============================================================================*/
48 
49 typedef struct {
50 
51  char *fic_maillage;
52  char *nom_cas;
53  char *nom_out;
54  int nbr_dump;
62 
64 
65  char post_err[8];
66  char post_vol[8];
67 
68 } ecs_cmd_t;
69 
70 /*============================================================================
71  * Public function prototypes
72  *============================================================================*/
73 
74 /*----------------------------------------------------------------------------
75  * Fonction qui lit la ligne de commande
76  *----------------------------------------------------------------------------*/
77 
78 ecs_cmd_t *
79 ecs_cmd__lit_arg(int argc,
80  char *argv[]);
81 
82 /*----------------------------------------------------------------------------
83  * Fonction liberant une structure `ecs_cmd_t' donnee en argument.
84  * Elle renvoie un pointeur NULL
85  *----------------------------------------------------------------------------*/
86 
88 
89 /*----------------------------------------------------------------------------*/
90 
91 #endif /* _ECS_CMD_H_ */
bool grp_cel_zone
Definition: ecs_cmd.h:59
bool grp_fac_zone
Definition: ecs_cmd.h:61
Definition: ecs_cmd.h:49
bool grp_cel_section
Definition: ecs_cmd.h:58
ecs_cmd_t * ecs_cmd__detruit(ecs_cmd_t *cmd)
Definition: ecs_cmd.c:1211
int * num_maillage
Definition: ecs_cmd.h:56
int n_num_maillage
Definition: ecs_cmd.h:55
ecs_pre_format_t fmt_maillage
Definition: ecs_cmd.h:57
ecs_pre_format_t
Definition: ecs_pre.h:78
char * fic_maillage
Definition: ecs_cmd.h:51
char * nom_out
Definition: ecs_cmd.h:53
bool grp_fac_section
Definition: ecs_cmd.h:60
char * nom_cas
Definition: ecs_cmd.h:52
int nbr_dump
Definition: ecs_cmd.h:54
bool correct_orient
Definition: ecs_cmd.h:63
ecs_cmd_t * ecs_cmd__lit_arg(int argc, char *argv[])
Definition: ecs_cmd.c:880