TheBoussinesqModel  3.2.1
 All Data Structures Files Functions Variables Typedefs Macros Pages
read_command_line.h
Go to the documentation of this file.
1 
2 /* KeyPalette MANAGES THE I/O FILES OF A MODEL
3 KeyPalette Version 0.9375 KMackenzie
4 
5 file read_command_line.h
6 
7 Copyright, 2009 Emanuele Cordano and Riccardo Rigon
8 
9 This file is part of KeyPalette.
10  KeyPalette is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  KeyPalette is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23 
24 
25 char *read_option_string(int argc,char *argv[], char *option_f,char *no_option_argument,short print);
26 
27 double read_option_double(int argc,char *argv[], char *option_f,char *no_option_argument,double default_value,short print);
28 
29 int read_flag(int argc,char *argv[],char *flag,short print);
30 
31 /* debugging options */
32 #define PRINT_FLAG "-print"
33 #define PRINT_ACTIVATED read_flag(argc,argv,PRINT_FLAG,0)