Check the compatibility between the RunOptions and the InputsModel obects
Here the necessary data: GR4J_crash.RData
And the code tested on the last dev
version:
> library(airGR)
> load("GR4J_crash.RData")
> ls()
[1] "InputsModel" "Param" "RunOptions"
> Param
[1] 169.017118 -2.375568 20.697233 1.417417
> RunModel_GR4J(InputsModel, RunOptions, Param)
Error in RunModel_GR4J(InputsModel, RunOptions, Param) :
NA/NaN/Inf in foreign function call (arg 2)
The error occurs in the Fortran call. I don't know how to debug that...