00001
00012 #ifndef BUDGSTATS_H
00013 #define BUDGSTATS_H
00014
00015 #include "globals.h"
00016
00017 FILE *basInFile;
00018 FILE *budget_Wacr1, *budget_Wacr2, *budget_Wacr3, *budget_Wacr4, *budget_Wacr5;
00019 FILE *budget_Wcm1, *budget_Wcm2, *budget_Wcm3, *budget_Wcm4, *budget_Wcm5;
00020 FILE *budget_P1, *budget_P2, *budget_P3, *budget_P4, *budget_P5;
00021 FILE *budget_Par1, *budget_Par2, *budget_Par3, *budget_Par4, *budget_Par5;
00022 FILE *budget_Plive1, *budget_Plive2, *budget_Plive3, *budget_Plive4, *budget_Plive5;
00023 FILE *budget_Pdead1, *budget_Pdead2, *budget_Pdead3, *budget_Pdead4, *budget_Pdead5;
00024 FILE *budget_Pwat1, *budget_Pwat2, *budget_Pwat3, *budget_Pwat4, *budget_Pwat5;
00025 FILE *budget_S1, *budget_S2, *budget_S3, *budget_S4, *budget_S5;
00026 FILE *BIRavg1, *BIRavg2, *BIRavg3, *BIRavg4, *BIRavg5;
00027
00028 #define conv_m3TOthousacrft 8.1070e-7
00030 basnDef **basn_list;
00031 basnDef *basins;
00032 int numBasn;
00034 char modelFileName[300];
00036 void stats(int step);
00037 void BIRstats_sum(void);
00038 void BIRbudg_sum(void);
00039
00040 void BIRstats_sumFinal(void);
00041 void BIRbudg_sumFinal(void);
00042
00043 void BIRstats_print(int ibas);
00044 void BIRbudg_print(int ibas);
00045
00046 void BIRstats_date(void);
00047 void BIRbudg_date(void);
00048
00049 void BIRstats_reset(void);
00050 void BIRbudg_reset(void);
00051
00052 void BIRinit(void);
00053 void BIRoutfiles(void);
00054 void CellAvg(void);
00055 void Cell_reset_avg(void);
00056 void Cell_reset_hydper(void);
00057 void alloc_mem_stats(void);
00058
00059
00060
00061 extern float DAYJUL;
00062
00063
00064 extern char *ModelPath, *ProjName;
00065 extern char *OutputPath;
00066 extern char modelName[20], modelVers[10];
00067
00068 extern char *Scip(char *s, char SYM );
00069 extern void init_pvar(VOIDP Map, UCHAR* mask, unsigned char Mtype,float iv);
00070 extern VOIDP nalloc(unsigned mem_size, const char var_name[]);
00071 extern float FMOD( float x, float y);
00072
00073
00074 extern char SimAlt[20], SimModif[20];
00075 extern int ESPmodeON;
00076 extern float budg_Intvl, BIRavg_Intvl, avg_Intvl;
00077 extern int avgPrint;
00078
00079
00080 #endif