Ecological Landscape Modeling: Models Pages

budgstats.h

Go to the documentation of this file.
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 FILE *BIRhydro; /* v2.8 new output of hydrologic perf measures in BIR */
00028 
00029 #define conv_m3TOthousacrft 8.1070e-7  
00031 basnDef **basn_list; 
00032 basnDef *basins; 
00033 int numBasn; 
00035 char modelFileName[300]; 
00037 void stats(int step);
00038 void BIRstats_sum(void);
00039 void BIRbudg_sum(void);
00040 
00041 void BIRstats_hydro_sumFinal(void); /* v2.8 new, TODO needs better organization */
00042 void BIRstats_hydro_print(ibas); /* v2.8 new, TODO needs better organization */
00043 void BIRstats_hydro_date(void); /* v2.8 new, TODO needs better organization */
00044 void BIRstats_hydro_reset(void); /* v2.8 new, TODO needs better organization */
00045 
00046 void BIRstats_sumFinal(void);
00047 void BIRbudg_sumFinal(void);
00048 
00049 void BIRstats_print(int ibas);
00050 void BIRbudg_print(int ibas);
00051 
00052 void BIRstats_date(void);
00053 void BIRbudg_date(void);
00054 
00055 void BIRstats_reset(void);
00056 void BIRbudg_reset(void);
00057 
00058 void BIRinit(void);
00059 void BIRoutfiles(void);
00060 void CellAvg(void);
00061 void Cell_reset_avg(void);
00062 void Cell_reset_hydper(void);
00063 void alloc_mem_stats(void);
00064 
00065 /* externs */
00066 /* from unitmod.h */
00067 extern float DAYJUL;
00068 
00069 /* from driver_utilities.h */
00070 extern char *ModelPath, *ProjName;
00071 extern char *OutputPath;
00072 extern char modelName[20], modelVers[10];
00073 
00074 extern char *Scip(char *s, char SYM );
00075 extern void init_pvar(VOIDP Map, UCHAR* mask, unsigned char Mtype,float iv);
00076 extern VOIDP nalloc(unsigned mem_size, const char var_name[]);
00077 extern float FMOD( float x, float y);
00078 
00079 /* from generic_driver.h */
00080 extern char SimAlt[20], SimModif[20];
00081 extern int ESPmodeON;
00082 extern float budg_Intvl, BIRavg_Intvl, BIRhyd_avg_Intvl, avg_Intvl;
00083 extern int avgPrint; 
00084 
00085 
00086 #endif   /* BUDGSTATS_H */

Generated on Sat Jan 7 14:04:15 2012 for ELM source code by  doxygen 1.5.6