Skip to content

Commit

Permalink
Add the controller argument to the C run function
Browse files Browse the repository at this point in the history
  • Loading branch information
stewid committed Oct 5, 2018
1 parent 936bf6a commit a8f36d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions R/SimInf_controller.R
Expand Up @@ -131,6 +131,7 @@ setMethod("run",
## Create the expression to parse
expr <- paste0(".Call(",
expr_controller, ", ",
"model, ",
expr_model, ", ",
"model@model, ",
"threads, ",
Expand Down
1 change: 1 addition & 0 deletions src/controllers/SimInf_NULL_controller.c
Expand Up @@ -19,6 +19,7 @@
#include "SimInf.h"

SEXP SimInf_NULL_controller_run(
SEXP controller,
SEXP run_fn,
SEXP model,
SEXP threads,
Expand Down
4 changes: 2 additions & 2 deletions src/init.c
Expand Up @@ -32,7 +32,7 @@ SEXP SISe3_run(SEXP, SEXP, SEXP);
SEXP SISe3_sp_run(SEXP, SEXP, SEXP);
SEXP SISe_sp_run(SEXP, SEXP, SEXP);
SEXP SimInf_ldata_sp(SEXP, SEXP, SEXP, SEXP);
SEXP SimInf_NULL_controller_run(SEXP, SEXP, SEXP, SEXP);
SEXP SimInf_NULL_controller_run(SEXP, SEXP, SEXP, SEXP, SEXP);

/**
* Is OpenMP available
Expand Down Expand Up @@ -60,7 +60,7 @@ static const R_CallMethodDef callMethods[] =
CALLDEF(SISe_sp_run, 3),
CALLDEF(SimInf_have_openmp, 0),
CALLDEF(SimInf_ldata_sp, 3),
CALLDEF(SimInf_NULL_controller_run, 4),
CALLDEF(SimInf_NULL_controller_run, 5),
{NULL, NULL, 0}
};

Expand Down

0 comments on commit a8f36d9

Please sign in to comment.