Closed wenzeslaus closed 3 years ago
I have a couple of ideas that we can discuss around this today! The list should work. What about grouping together all of the booleans related to the deterministic to satisfy the R to C++ interface.
Where appropriate, would it make sense to remove the boolean arguments in favor of assuming true or false based on whether a file is passed in (e.g. temp and temperature_coefficient_file)?
Adding more arguments to the C++
pops_model
function causestoo many arguments in foreign function call
. Currently the function has 62 parameters. Adding 4 (e.g., for the overpopulation movements in #83) causes the error as the limit of 65 is hit. This is according to the documentation (the foreign function here is ourpops_model
):The best fix seems to be embrace the concept of config more. For #83, I'm working on a solution along these lines which will be a good prototype for the overall fix. Although it fixes this problem, I'm not sure yet if it works 100%.