Skip to content

Commit e073434

Browse files
James CraigJames Craig
authored andcommitted
v486b - throw warning if gauges don't have required LW Incoming
1 parent 42fa44e commit e073434

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Diagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ double CDiagnostic::CalculateDiagnostic(CTimeSeriesABC *pTSMod,
10451045

10461046
if (_type==DIAG_KLING_GUPTA_DEVIATION){Beta=1.0;} //remove penalty for difference in means
10471047

1048-
if (_type==DIAG_KGE_PRIME){Alpha/=Beta;}// Uses C.O.V. instead of std dev. from Kling et al. (2012) Runoff conditions in the upper Danube basin under an ensemble of climate change scenarios, Journal of Hydrology
1048+
if (_type==DIAG_KGE_PRIME){if (Beta!=0.0){Alpha/=Beta;}}// Uses C.O.V. instead of std dev. from Kling et al. (2012) Runoff conditions in the upper Danube basin under an ensemble of climate change scenarios, Journal of Hydrology
10491049

10501050
if ((N>0) && ((ObsAvg!=0.0) || (Beta==1.0)) && (ObsStd!=0.0) && (ModStd!=0.0))
10511051
{

src/Gauge.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ void CGauge::Initialize(const optStruct &Options,
225225
WarnAboutForcing(Options.SW_radiation ==SW_RAD_DATA, F_SW_RADIA);
226226
WarnAboutForcing(Options.SW_radia_net ==NETSWRAD_DATA, F_SW_RADIA_NET);
227227
WarnAboutForcing(Options.LW_radiation ==LW_RAD_DATA, F_LW_RADIA_NET);
228+
WarnAboutForcing(Options.LW_incoming ==LW_INC_DATA, F_LW_INCOMING);
228229
WarnAboutForcing(Options.cloud_cover ==CLOUDCOV_DATA, F_CLOUD_COVER);
229230
WarnAboutForcing(Options.ow_evaporation==PET_DATA, F_OW_PET);
230231
WarnAboutForcing(Options.evaporation ==PET_DATA, F_PET);

0 commit comments

Comments
 (0)