Skip to content

Commit

Permalink
replace prop_female hardcoded at 0.5 with rng
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristineStawitz-NOAA committed Feb 14, 2024
1 parent 7b32501 commit 18f96a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/gtest/test_population_B_and_SB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace
std::vector<double> test_SB(nyears + 1, 0);
std::vector<double> test_B(nyears + 1, 0);

test_SB[year] += population.numbers_at_age[i_age_year] * 0.5 * population.proportion_mature_at_age[i_age_year] *
test_SB[year] += population.numbers_at_age[i_age_year] * population.proportion_female[age] * population.proportion_mature_at_age[i_age_year] *
population.growth->evaluate(population.ages[age]);
test_B[year] += population.numbers_at_age[i_age_year] *
population.growth->evaluate(population.ages[age]);
Expand All @@ -40,7 +40,7 @@ namespace

std::vector<double> test_SSB(nyears + 1, 0);

test_SSB[nyears] += population.numbers_at_age[i_age_year] * 0.5 *
test_SSB[nyears] += population.numbers_at_age[i_age_year] * population.proportion_female[age] *
population.proportion_mature_at_age[i_age_year] *
population.growth->evaluate(population.ages[age]);

Expand Down

0 comments on commit 18f96a8

Please sign in to comment.