Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SimAquaLife
GR3D
Commits
9ee28bfa
Commit
9ee28bfa
authored
Apr 04, 2020
by
Lambert Patrick
Browse files
getSuccessNumber faaster than getSuceesNumber2
I don't kwow why
parent
5c91dbc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/species/ReproduceAndSurviveAfterReproductionWithDiagnose.java
View file @
9ee28bfa
...
...
@@ -177,8 +177,6 @@ public class ReproduceAndSurviveAfterReproductionWithDiagnose extends AquaNismsG
// effective temperature for reproduction (priority to the ANG value)
double
tempEffectRep
;
//CHECK if currentTemp can be removed
double
currentTemp
=
riverBasin
.
getCurrentTemperature
(
group
.
getPilot
());
if
(
Double
.
isNaN
(
group
.
getTempMinRep
())){
tempEffectRep
=
Miscellaneous
.
temperatureEffect
(
riverBasin
.
getCurrentTemperature
(
group
.
getPilot
()),
tempMinRep
,
tempOptRep
,
tempMaxRep
);
}
...
...
@@ -271,8 +269,9 @@ public class ReproduceAndSurviveAfterReproductionWithDiagnose extends AquaNismsG
// survival after reproduction (semelparity or iteroparity) of SI (change the amount of the SI)
double
biomass
=
0
.;
//survivalAmount = aleaGen.getSuccessNumber2(fish.getAmount(), survivalRateAfterReproduction);
survivalAmount
=
Miscellaneous
.
binomialForSuperIndividual
(
group
.
getPilot
(),
fish
.
getAmount
(),
survivalRateAfterReproduction
);
survivalAmount
=
aleaGen
.
getSuccessNumber
(
fish
.
getAmount
(),
survivalRateAfterReproduction
);
//survivalAmount = Miscellaneous.binomialForSuperIndividual(group.getPilot(), fish.getAmount(), survivalRateAfterReproduction);
// update the amount of fish or kill the fish if survival amount = 0
if
(
survivalAmount
>
0
)
{
// SUperindividu est encore vivant mais il perd des effectifs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment