role-model / roleR

R package implementing the RoLE model
https://role-model.github.io/roleR
GNU General Public License v3.0
1 stars 2 forks source link

spAbundHarmMean initialization (for modelSteps 1) needs a tweak. #95

Closed isaacovercast closed 1 year ago

isaacovercast commented 1 year ago

Right now on line 116 of runRole.R it gets initialized as a vector of zeros:

    model@modelSteps[[1]]@localComm@spAbundHarmMean <-  rep(0,length(model@modelSteps[[1]]@localComm@spAbund) + local_add)

I believe this should actually be initialized using the actual abundance of each species at time 1