#include #include #include #include static char vcid[] = "$Id: store_moisture_for_debug.c,v 4.2 2000/05/16 21:57:54 vicadmin Exp $"; #if LINK_DEBUG void store_moisture_for_debug(int iveg, int Nveg, double *mu, cell_data_struct ***cell, veg_var_struct ***veg_var, snow_data_struct **snow, soil_con_struct *soil_con) { /**************************************************************** This subroutine was written to save the current water storage terms for use in calculating the model water balance error ****************************************************************/ extern option_struct options; extern debug_struct debug; int Ndist; int i; int band; int dist; int Nbands; if(options.DIST_PRCP) Ndist = 2; else Ndist = 1; Nbands = options.SNOW_BAND; for(band=0;bandAreaFract[band]>0) { for(dist=0;dist