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
80f454f0
Commit
80f454f0
authored
1 year ago
by
Andreas Gattringer
Browse files
Options
Downloads
Patches
Plain Diff
butterflies: output only in output years
parent
1af31c80
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/butterflies/butterflies_actions.c
+5
-0
5 additions, 0 deletions
src/modules/butterflies/butterflies_actions.c
with
5 additions
and
0 deletions
src/modules/butterflies/butterflies_actions.c
+
5
−
0
View file @
80f454f0
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
#include
"butterflies_filenames.h"
#include
"butterflies_filenames.h"
#include
"inline.h"
#include
"inline.h"
#include
"lambda/leslie_matrix.h"
#include
"lambda/leslie_matrix.h"
#include
"temporal/years.h"
enum
action_status
bf_action_stats_reset
(
struct
cats_grid
*
grid
,
struct
cats_configuration
*
conf
)
enum
action_status
bf_action_stats_reset
(
struct
cats_grid
*
grid
,
struct
cats_configuration
*
conf
)
...
@@ -153,6 +154,7 @@ enum action_status bf_action_maturation(struct cats_grid *grid, struct cats_conf
...
@@ -153,6 +154,7 @@ enum action_status bf_action_maturation(struct cats_grid *grid, struct cats_conf
enum
action_status
bf_action_save_grid
(
struct
cats_grid
*
grid
,
struct
cats_configuration
*
conf
)
enum
action_status
bf_action_save_grid
(
struct
cats_grid
*
grid
,
struct
cats_configuration
*
conf
)
{
{
if
(
!
is_output_year
(
&
conf
->
time
))
return
ACTION_NOT_RUN
;
int32_t
id
=
grid
->
id
;
int32_t
id
=
grid
->
id
;
char
*
filename
=
bf_population_filename
(
conf
,
grid
);
char
*
filename
=
bf_population_filename
(
conf
,
grid
);
struct
grid_wrapper
data
=
gridwrapper
(
grid
->
population
,
grid
->
dimension
);
struct
grid_wrapper
data
=
gridwrapper
(
grid
->
population
,
grid
->
dimension
);
...
@@ -163,7 +165,9 @@ enum action_status bf_action_save_grid(struct cats_grid *grid, struct cats_confi
...
@@ -163,7 +165,9 @@ enum action_status bf_action_save_grid(struct cats_grid *grid, struct cats_confi
enum
action_status
bf_action_save_overlay
(
struct
cats_grid
*
grid
,
struct
cats_configuration
*
conf
)
enum
action_status
bf_action_save_overlay
(
struct
cats_grid
*
grid
,
struct
cats_configuration
*
conf
)
{
{
if
(
!
is_output_year
(
&
conf
->
time
))
return
ACTION_NOT_RUN
;
int32_t
id
=
grid
->
id
;
int32_t
id
=
grid
->
id
;
char
*
filename
=
bf_population_overlay_filename
(
conf
,
grid
);
char
*
filename
=
bf_population_overlay_filename
(
conf
,
grid
);
int
module_id
=
CATS_MODULE_ID
;
int
module_id
=
CATS_MODULE_ID
;
...
@@ -179,6 +183,7 @@ enum action_status bf_action_save_overlay(struct cats_grid *grid, struct cats_co
...
@@ -179,6 +183,7 @@ enum action_status bf_action_save_overlay(struct cats_grid *grid, struct cats_co
enum
action_status
bf_action_save_eggs_grid
(
struct
cats_grid
*
grid
,
struct
cats_configuration
*
conf
)
enum
action_status
bf_action_save_eggs_grid
(
struct
cats_grid
*
grid
,
struct
cats_configuration
*
conf
)
{
{
if
(
!
is_output_year
(
&
conf
->
time
))
return
ACTION_NOT_RUN
;
int32_t
id
=
grid
->
id
;
int32_t
id
=
grid
->
id
;
int
module_id
=
CATS_MODULE_ID
;
int
module_id
=
CATS_MODULE_ID
;
struct
grid_data_butterflies
*
module_data
=
grid
->
grid_modules
[
module_id
].
module_data
;
struct
grid_data_butterflies
*
module_data
=
grid
->
grid_modules
[
module_id
].
module_data
;
...
...
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