Skip to content

Commit

Permalink
bevholtDa removed, cannot solve
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Dec 2, 2023
1 parent 87a74d5 commit 72f09f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: FLBRP
Title: Reference Points for Fisheries Management
Version: 2.5.9.9020
Version: 2.5.9.9021
Authors@R: c(
person("Iago", "Mosqueira", email = "[email protected]", role = "cre"),
person("Laurence T.", "Kell", email = "[email protected]", role = "aut"),
Expand Down
11 changes: 0 additions & 11 deletions src/FLBRP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,6 @@ double FLBRP::Recruits(double FMult, int iUnit, int iIter)
recruits = sr_params(1,1,iUnit,1,1,iIter)*ssb/(ssb+sr_params(2,1,iUnit,1,1,iIter));
break;

// rec = a / (1 + (b / srp) ^ d)
case FLRConst_BevHoltDa:
ssb = spr*sr_params(1,1,iUnit,1,1,iIter)-sr_params(2,1,iUnit,1,1,iIter);
recruits = sr_params(1,1,iUnit,1,1,iIter) / (1.0 + pow(sr_params(2,1,iUnit,1,1,iIter) / ssb, sr_params(3,1,iUnit,1,1,iIter)));
break;

case FLRConst_Ricker:
ssb = log(spr*sr_params(1,1,iUnit,1,1,iIter))/sr_params(2,1,iUnit,1,1,iIter);
recruits = sr_params(1,1,iUnit,1,1,iIter)*ssb*exp(-sr_params(2,1,iUnit,1,1,iIter)*ssb);
Expand Down Expand Up @@ -1880,11 +1874,6 @@ adouble FLBRP::Recruits(adouble FMult, int iUnit, int iIter)
ssb = spr*sr_params(1,1,iUnit,1,1,iIter)-sr_params(2,1,iUnit,1,1,iIter);
recruits = sr_params(1,1,iUnit,1,1,iIter)*ssb/(ssb+sr_params(2,1,iUnit,1,1,iIter));
break;
// rec = a / (1 + (b / srp) ^ d)
case FLRConst_BevHoltDa:
ssb = spr*sr_params(1,1,iUnit,1,1,iIter)-sr_params(2,1,iUnit,1,1,iIter);
recruits = sr_params(1,1,iUnit,1,1,iIter) / (1.0 + pow(sr_params(2,1,iUnit,1,1,iIter) / ssb, sr_params(3,1,iUnit,1,1,iIter)));
break;

case FLRConst_Ricker:
ssb = adtl::log(spr*sr_params(1,1,iUnit,1,1,iIter))/sr_params(2,1,iUnit,1,1,iIter);
Expand Down

0 comments on commit 72f09f1

Please sign in to comment.