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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDC
cats
Commits
fc190c48
Commit
fc190c48
authored
1 year ago
by
Andreas Gattringer
Browse files
Options
Downloads
Patches
Plain Diff
butterflies: log message when ending debug run early
parent
b67f8f64
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/butterflies/butterflies_dispersal.c
+3
-0
3 additions, 0 deletions
src/modules/butterflies/butterflies_dispersal.c
with
3 additions
and
0 deletions
src/modules/butterflies/butterflies_dispersal.c
+
3
−
0
View file @
fc190c48
...
...
@@ -42,6 +42,7 @@ static void inline single_random_walk(struct cats_thread_info *ts, struct cats_g
const
struct
conf_data_butterflies
*
module_conf
=
CATS_MODULE_DATA
;
const
bool
debug_rw
=
module_conf
->
debug_rw
;
int32_t
eggs_left
=
eggs
;
const
cats_dt_coord
max_steps
=
module_conf
->
animal_dispersal_max_radius
;
...
...
@@ -71,6 +72,7 @@ static void inline single_random_walk(struct cats_thread_info *ts, struct cats_g
return
;
// we escaped the simulation extent and got lost
}
// is the cell a valid dispersal target location?
if
(
!
(
data
->
info_layer
[
row
][
col
]
&
BF_CELL_VALID_DISPERSAL_TARGET
))
{
if
(
debug_rw
)
{
...
...
@@ -220,6 +222,7 @@ butterflies_cell_dispersal(struct cats_grid *grid, struct cats_thread_info *ts,
if
(
debug_rw
)
{
fflush
(
module_conf
->
debug_rw_file
);
fclose
(
module_conf
->
debug_rw_file
);
log_message
(
LOG_IMPORTANT
,
"Ending simulation early - first cell with random walks complete"
);
exit_cats
(
EXIT_SUCCESS
);
}
}
\ No newline at end of file
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