Skip to content

Commit

Permalink
Merge pull request #21 from ocelhay/dev
Browse files Browse the repository at this point in the history
v14.4.3
  • Loading branch information
bogaotory authored Aug 3, 2020
2 parents 58be082 + cf3bba0 commit 26b9081
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion comoOdeCpp/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: comoOdeCpp
Type: Package
Title: Cpp version of CoMo Consortium's COVID-19 transmission model
Version: 14.4.2
Version: 14.4.3
Date: 2020-06-10
Author: Ricardo Aguas, Sompob Saralamba, Bo Gao
Maintainer: Bo Gao <bo.gao@ndm.ox.ac.uk>
Expand Down
19 changes: 13 additions & 6 deletions comoOdeCpp/src/comoOde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,27 @@ List covidOdeCpp(double t, const arma::vec& y, const List& parameters,
////////////////////////////////////////////////////
// Parameters

static double p = 0.0;
// Ones selected for fitting
double p = parameters["p"];
double reporth = parameters["reporth"];
double amp = parameters["amp"];

//

// static double p = 0.0;
static double rho = 0.0;
static double omega = 0.0;
static double gamma = 0.0;
static double nui = 0.0;
static double report = 0.0;
static double reportc = 0.0;
static double reporth = 0.0;
// static double reporth = 0.0;
static double beds_available = 0.0;
static double icu_beds_available = 0.0;
static double ventilators_available = 0.0;
static double nus = 0.0;
static double rhos = 0.0;
static double amp = 0.0;
// static double amp = 0.0;
static double phi = 0.0;
// static double ihr_scaling = 0.0;
static double give = 0.0;
Expand Down Expand Up @@ -186,20 +193,20 @@ List covidOdeCpp(double t, const arma::vec& y, const List& parameters,
static double isolation_days = 0.0;

if (!is_initialised_parameters) {
p = parameters["p"];
// p = parameters["p"];
rho = parameters["rho"];
omega = parameters["omega"];
gamma = parameters["gamma"];
nui = parameters["nui"];
report = parameters["report"];
reportc = parameters["reportc"];
reporth = parameters["reporth"];
// reporth = parameters["reporth"];
beds_available = parameters["beds_available"];
icu_beds_available = parameters["icu_beds_available"];
ventilators_available = parameters["ventilators_available"];
nus = parameters["nus"];
rhos = parameters["rhos"];
amp = parameters["amp"];
// amp = parameters["amp"];
phi = parameters["phi"];
// ihr_scaling = parameters["ihr_scaling"];
give = parameters["give"];
Expand Down

0 comments on commit 26b9081

Please sign in to comment.