@@ -254,6 +254,7 @@ const double NETCDF_BLANK_VALUE =-9999.0;
254254const double RAV_BLANK_DATA =-1.2345 ; // /< double corresponding to blank/void data item (also used in input files)
255255const double DIRICHLET_TEMP =-9999.0 ; // /< dirichlet concentration flag corresponding to air temperature
256256const int FROM_STATION_VAR =-55 ; // /< special flag indicating that NetCDF indices should be looked up from station attribute table
257+ const double BY_SUBBASIN_FLAG =64 ; // /< special flag indicating flush percentage should be retrieved from subbasin parameter
257258
258259// Decision constants
259260const double HUGE_RESIST =1e20 ; // /< [d/mm] essentially infinite resistance
@@ -865,7 +866,7 @@ enum assimtype
865866//
866867enum sv_type
867868{
868- // Water Storage
869+ // Water Storage Compartments
869870 SURFACE_WATER, // /< [mm] Streams & rivers: see surface_struct (REQUIRED)
870871 ATMOSPHERE, // /< [mm] atmosphere : recieves water only!! (REQUIRED)
871872 ATMOS_PRECIP, // /< [mm] atmosphere : provides water only!! (REQUIRED)
@@ -877,11 +878,11 @@ enum sv_type
877878 TRUNK, // /< [mm] water stored in trunks of trees
878879 ROOT, // /< [mm] water stored in roots
879880 GROUNDWATER, // /< [mm] Deep groundwater
880- DEPRESSION, // /< [mm] depression/surface storage
881+ DEPRESSION, // /< [mm] depression/surface/wetland storage
881882 SNOW, // /< [mm] frozen snow depth (mm SWE : snow water equivalent)
882883 NEW_SNOW, // /< [mm] new snowfall waiting to be handled by snow balance (as SWE)
883884 SNOW_LIQ, // /< [mm] liquid water content of snowpack
884- TOTAL_SWE, // /< [mm] equivalent to SNOW[0]+SNOW[1]+...+SNOW_LIQ[0]..
885+ TOTAL_SWE, // /< [mm] equivalent to SNOW[0]+SNOW[1]+...+SNOW_LIQ[0].. (diagnostic variable)
885886 WETLAND, // /< [mm] deep wetland depression storage
886887 GLACIER, // /< [mm] Glacier melt/reservoir storage
887888 GLACIER_ICE, // /< [mm] Glacier ice - typically assumed to be infinite reservoir.
@@ -893,14 +894,14 @@ enum sv_type
893894 // Distribution tracking variables
894895 MIN_DEP_DEFICIT, // /< [mm or -1..0] Minimum depression deficit (describes deficit distribution), =-percent full if negative
895896
896- // Memory variables
897+ // Memory/diagnostic variables
897898 CUM_INFIL, // /< [mm] Cumulative infiltration to topsoil
898899 GA_MOISTURE_INIT, // /< [mm] Initial topsoil moisture content for Green Ampt infiltration
899900 CUM_SNOWMELT, // /< [mm] Cumulative snowmelt as SWE
900901 AET, // /< [mm] PET used up in given time step (diagnostic variable)
901902 RUNOFF, // /< [mm] net release of water to surface water in given times step (diagnostic variable)
902903
903- // Temperature/Energy storage [C] or [MJ/m^2]
904+ // Temperature/Energy storage [C] or [MJ/m^2]
904905 ENERGY_LOSSES, // /< [MJ/m2] general energy losses
905906
906907 SURFACE_WATER_TEMP, // /< [C] Temperature of surface water
@@ -909,7 +910,7 @@ enum sv_type
909910 SOIL_TEMP, // /< [C] Temperature of soil
910911 CANOPY_TEMP, // /< [C] Temperature fo canopy
911912
912- // Snow/Glacier variables
913+ // Snow/Glacier variables
913914 SNOW_DEPTH, // /< [mm] Snow depth - surrogate for density
914915 PERMAFROST_DEPTH, // /< [mm] depth of permafrost
915916 THAW_DEPTH, // /< [mm] depth of thaw
@@ -924,22 +925,22 @@ enum sv_type
924925
925926 SNOW_ALBEDO, // /< [-] Snow Surface albedo
926927
927- // Crop variables
928+ // Crop variables
928929 CROP_HEAT_UNITS, // /< [-] cumulative crop heat units
929930
930- // Transport variables
931+ // Transport variables
931932 CONSTITUENT, // /< chemical species [mg/m2], enthalpy [MJ/m2], or tracer [-]
932933 CONSTITUENT_SRC, // /< chemical species [mg/m2], enthalpy [MJ/m2], or tracer [-] cumulative source
933934 CONSTITUENT_SW, // /< chemical species [mg/m2], enthalpy [MJ/m2], or tracer [-] dumped to surface water
934935 CONSTITUENT_SINK, // /< chemical species [mg/m2], enthalpy [MJ/m2], or tracer [-] cumulative sink (e.g., decay)
935936
936- // Energy variables
937+ // Energy variables
937938 LATENT_HEAT, // /< [MJ/m2] cumulative energy lost to evaporative phase change
938939
939- // Lateral exchange
940+ // Lateral exchange
940941 LATERAL_EXCHANGE, // /< [mm] water storage in transit from HRU awaiting lateral transfer to other HRUs
941942
942- // Special - internal flags
943+ // Special - internal flags
943944 STREAMFLOW, // /< only used for referencing in data assimilation
944945 RESERVOIR_STAGE, // /< only used for referencing in data assimilation
945946 UNRECOGNIZED_SVTYPE, // /< Unrecognized type of state variable
0 commit comments