fprimeau / OCIM-BGC

Coupled offline biogeochemistry model for the cycling of P, C, Si, and O2
4 stars 3 forks source link

change ResetPar & fix rO2C #18

Closed MeganRSullivan closed 1 month ago

MeganRSullivan commented 1 month ago

I have made a few changes to my version of the model in Code_withCellModel that are also relevant to other versions of the OCIM-BGC model. These updates...

  1. fix the gradient an Hessian for rO2C in eqOcycle
  2. change the behavior of ResetPar to return from neglogpost without solving the model if fminunc suggests parameters too far from the initial guess.
  3. allow the model to optimize parameters in the carbon cycle without optimizing any parameters in the phosphorus cycle (useful for faster GHtest)

Notation notes: