From ebb56a3a7f1c6a9e312e6410663bb5f33e667f38 Mon Sep 17 00:00:00 2001 From: Brad Duthie Date: Tue, 3 Aug 2021 11:07:24 +0100 Subject: [PATCH] Fix a minor bug mentioned in Issue #76 -- needed to change the 'FALSE' to '0' in manager function for C. @AdrianBach -- would be could to double check that this if-else is necessary? --- DESCRIPTION | 2 +- src/manager.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 19f3a69c..22ae767a 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: GMSE Type: Package Title: Generalised Management Strategy Evaluation Simulator -Version: 0.7.0.0 +Version: 0.7.0.1 Imports: grDevices (>= 4.0.0), graphics (>= 4.0.0), stats(>= 4.0.0), shiny, shinydashboard, shinyjs, shinycssloaders Authors@R: c(person("A. Bradley", "Duthie", email = "brad.duthie@gmail.com", diff --git a/src/manager.c b/src/manager.c index 5e815cca..4b4c05bb 100755 --- a/src/manager.c +++ b/src/manager.c @@ -427,7 +427,7 @@ void check_action_threshold(double ***ACTION, double *paras){ dev *= -1; } - if(mem == FALSE){ + if(mem == 0){ /* If the population deviation has hit the threshold, and time step, */ /* and that prediction is outside the non-updating band */ if(dev >= a_t || t_s < 3){