#include #include #include static char vcid[] = "$Id: write_layer.c,v 5.2 2003/07/31 17:42:13 cherkaue Exp $"; void write_layer(layer_data_struct *layer, int veg, int Nlayer, #if SPATIAL_FROST double *frost_fract, #endif double *depth) /********************************************************************** write_soilvar Keith Cherkauer July 17, 1997 This routine writes soil variables to stdout. It creates a table of soil moisture values which shows how much liquid water and ice are contained in the thawed, frozen and unfrozen sublayers of each soil layer. It also gives the total soil moisture for each layer. xx-xx-01 Modified to handle spatial soil frost. KAC **********************************************************************/ { extern option_struct options; int index; double layer_moist; double sum_moist; #if SPATIAL_FROST int frost_area; double avg_ice; #endif printf("Layer Data for Vegetation Type #%i\n",veg); printf("Layer:\t"); for(index=0;index Total Moisture = %f\n\n",sum_moist); }