void climate_setState(DateTime theDate) // // Input: theDate = simulation date // Output: none // Purpose: sets climate variables for current date. // { if ( Fclimate.mode == USE_FILE ) updateFileValues(theDate); if ( Temp.dataSource != NO_TEMP ) setTemp(theDate); setEvap(theDate); setWind(theDate); }
void climate_setState(DateTime theDate) // // Input: theDate = simulation date // Output: none // Purpose: sets climate variables for current date. // { if ( Fclimate.mode == USE_FILE ) updateFileValues(theDate); if ( Temp.dataSource != NO_TEMP ) setTemp(theDate); setEvap(theDate); setWind(theDate); Adjust.rainFactor = Adjust.rain[datetime_monthOfYear(theDate)-1]; //(5.1.007) Adjust.hydconFactor = Adjust.hydcon[datetime_monthOfYear(theDate)-1]; //(5.1.008) setNextEvapDate(theDate); //(5.1.008) }