Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cats
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDC
cats
Commits
99e67b6b
Commit
99e67b6b
authored
2 years ago
by
Andreas Gattringer
Browse files
Options
Downloads
Patches
Plain Diff
butterflies: more information in first year
parent
44114cfd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/butterflies/butterflies_actions.c
+19
-1
19 additions, 1 deletion
src/modules/butterflies/butterflies_actions.c
with
19 additions
and
1 deletion
src/modules/butterflies/butterflies_actions.c
+
19
−
1
View file @
99e67b6b
...
...
@@ -42,6 +42,7 @@ enum action_status bf_action_stats_reset(struct cats_grid *grid, struct cats_con
cats_dt_rates
egg_fraction_source
=
module_conf
->
egg_fraction_source
;
cats_dt_rates
eggs_per_female
=
calculate_rate_for_matrix
(
&
module_conf
->
eggs_per_female
,
&
l_param
,
print_rate
);
cats_dt_rates
reproduction_rate
=
calculate_rate_for_matrix
(
&
module_conf
->
reproduction_rate
,
&
l_param
,
print_rate
);
cats_dt_rates
K
=
calculate_rate_for_matrix
(
&
conf
->
param
[
grid
->
id
].
carrying_capacity
,
&
l_param
,
print_rate
)
*
conf
->
param
->
max_adult_cc_fraction
;
cats_dt_rates
local_eggs
=
(
stationary
+
mobile
*
egg_fraction_source
)
*
eggs_per_female
;
// female -> female
// to achieve the target reproduction rate, the number of eggs per female laid in the cell
...
...
@@ -56,9 +57,26 @@ enum action_status bf_action_stats_reset(struct cats_grid *grid, struct cats_con
log_message
(
LOG_INFO
,
"SUMMARY: stationary females at OT: %Lf"
,
stationary
);
log_message
(
LOG_INFO
,
"SUMMARY: eggs to adult rate at OT: %Lf"
,
eggs_to_adults_rate
);
log_message
(
LOG_INFO
,
"SUMMARY: egg fraction source at OT: %Lf"
,
egg_fraction_source
);
log_message
(
LOG_INFO
,
"SUMMARY: carrying capacity at OT: %
d
"
,
l_param
.
K
);
log_message
(
LOG_INFO
,
"SUMMARY: carrying capacity at OT: %
Lf
"
,
K
);
log_message
(
LOG_INFO
,
"SUMMARY: effective female to female rate at OT: %Lf
\n
"
,
result
);
l_param
.
suitability
=
1
.
0
;
eggs_per_female
=
calculate_rate_for_matrix
(
&
module_conf
->
eggs_per_female
,
&
l_param
,
print_rate
);
reproduction_rate
=
calculate_rate_for_matrix
(
&
module_conf
->
reproduction_rate
,
&
l_param
,
print_rate
);
K
=
calculate_rate_for_matrix
(
&
conf
->
param
[
grid
->
id
].
carrying_capacity
,
&
l_param
,
print_rate
)
*
conf
->
param
->
max_adult_cc_fraction
;
local_eggs
=
(
stationary
+
mobile
*
egg_fraction_source
)
*
eggs_per_female
;
eggs_to_adults_rate
=
bf_egg_to_adult_survival_rate
(
reproduction_rate
,
local_eggs
,
female_fraction
);
result
=
local_eggs
*
eggs_to_adults_rate
*
female_fraction
;
log_message
(
LOG_INFO
,
"SUMMARY: reproduction rate at suitability 1: %Lf"
,
reproduction_rate
);
log_message
(
LOG_INFO
,
"SUMMARY: eggs per female at suitability 1: %Lf"
,
eggs_per_female
);
log_message
(
LOG_INFO
,
"SUMMARY: local eggs at suitability 1: %Lf"
,
local_eggs
);
log_message
(
LOG_INFO
,
"SUMMARY: stationary females at suitability 1: %Lf"
,
stationary
);
log_message
(
LOG_INFO
,
"SUMMARY: eggs to adult rate at suitability 1: %Lf"
,
eggs_to_adults_rate
);
log_message
(
LOG_INFO
,
"SUMMARY: egg fraction source at suitability 1: %Lf"
,
egg_fraction_source
);
log_message
(
LOG_INFO
,
"SUMMARY: carrying capacity at suitability 1: %Lf"
,
K
);
log_message
(
LOG_INFO
,
"SUMMARY: effective female to female rate at suitability 1: %Lf
\n
"
,
result
);
}
return
action_grid_stats_reset
(
grid
,
conf
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment