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-2021 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; 55 int n_num_maillage; 56 int *num_maillage; 57 ecs_pre_format_t fmt_maillage; 58 bool grp_cel_section; 59 bool grp_cel_zone; 60 bool grp_fac_section; 61 bool grp_fac_zone; 62 63 bool correct_orient; 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 87 ecs_cmd_t *ecs_cmd__detruit(ecs_cmd_t *cmd); 88 89 /*----------------------------------------------------------------------------*/ 90 91 #endif /* _ECS_CMD_H_ */ 92