TheBoussinesqModel  3.2.1
 All Data Structures Files Functions Variables Typedefs Macros Pages
t_utilities.h
Go to the documentation of this file.
1 #define FL 512
2 
35 long search_array(FILE *,char *, char *);
36 
70 long search_named_array(FILE *,char* );
71 
106 long simplefind(FILE *,const char *);
107 
127 short file_copy(FILE *,FILE *);
128 
157 long ssimplefindkeyword(char *,long,const char *);
158 
159 
160 /*--------------------------------------------------------------------------------------*/
161 
186 void meter( long index, long rows, short frequence,const char* message, const char* separator);
187 
213 short join_strings_into(char *string, char *first,char *second);
214 
215 
216 short join_3strings_into(char *string, char *first,char *second,char* third);
217 
246 void stop_execution(void);
247 
248 /*--------------------------------------------------------------------------*/
249 
250 void time2date(float time, long *giulian, long *year, long *month, long *day, long *hour, long *min, float *sec);
251 
252 /* given a inputs
253  1:the time in second
254  2:date (giulian day, year, month, day, hour, min, sec)
255  return as outputs the date updated for the time given
256  4:date (giulian day, year, month, day, hour, min, sec)
257  bug: time have to be less than 1 year */
258 
259 /*--------------------------------------------------------------------------*/
260 
261 void giulian2day(long giulian, long year, long *month, long *day);
262 
263 /* given a inputs
264  giulian day, year
265  return as outputs the date
266  month, day */
267 
268 
269 /*--------------------------------------------------------------------------*/
270 
271 void day2giulian(long year, long month, long day, long *giulian);
272 
273 /* given a inputs
274  day, year, month
275  return as outputs the julian day */
276