Skip to content

Commit 45dcc0e

Browse files
committed
Increase DtPlotDischarge and log to fix geotopmodel#23
1 parent bff38ca commit 45dcc0e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/geotop/parameters.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,9 +1424,12 @@ static void assign_numeric_parameters(Par *par,
14241424

14251425
par->state_discharge = 0;
14261426
par->Dtplot_discharge *= 3600.;
1427-
if (par->Dtplot_discharge > 1.E-5 && par->Dtplot_discharge <= minDt)
1427+
if (par->Dtplot_discharge > 1.E-5 && par->Dtplot_discharge < par->Dt)
14281428
{
1429-
par->plot_discharge_with_Dt_integration[1] = 1;
1429+
lg->logsf(geotop::logger::WARNING,
1430+
"Dtplot_discharge %.0f seconds will be increased to Dt %.0f",
1431+
par->Dtplot_discharge,par->Dt);
1432+
par->Dtplot_discharge = par->Dt;
14301433
}
14311434
else
14321435
{

0 commit comments

Comments
 (0)