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
63212176
Commit
63212176
authored
1 year ago
by
Andreas Gattringer
Browse files
Options
Downloads
Patches
Plain Diff
butterflies: remove unused stat
parent
b5ab39e8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/butterflies/butterflies_stats.c
+3
-3
3 additions, 3 deletions
src/modules/butterflies/butterflies_stats.c
src/modules/butterflies/butterflies_stats.h
+0
-1
0 additions, 1 deletion
src/modules/butterflies/butterflies_stats.h
with
3 additions
and
4 deletions
src/modules/butterflies/butterflies_stats.c
+
3
−
3
View file @
63212176
...
...
@@ -12,6 +12,7 @@
#include
"temporal/phase_names.h"
#include
"temporal/years.h"
const
char
*
bf_get_stats_field_name
(
enum
butterfly_stats
which
)
{
switch
(
which
)
{
...
...
@@ -25,8 +26,6 @@ const char *bf_get_stats_field_name(enum butterfly_stats which)
return
"unpopulated_unfit"
;
case
BF_STAT_EXCLUDED
:
return
"excluded"
;
case
BF_STAT_GENERATION_ACTIVE
:
return
"generation_active"
;
case
BF_POPULATED_AT_DISPERSAL
:
return
"populated_at_dispersal"
;
...
...
@@ -51,6 +50,7 @@ const char *bf_get_stats_field_name(enum butterfly_stats which)
exit_cats
(
EXIT_FAILURE
);
}
struct
string_array
*
bf_assemble_stats
(
struct
cats_configuration
*
conf
,
struct
cats_grid
*
grid
,
bool
header
)
{
struct
conf_data_butterflies
*
module_conf
=
CATS_MODULE_DATA
;
...
...
@@ -125,6 +125,7 @@ void bf_stats_write(struct cats_configuration *conf, struct cats_grid *grid)
free_string_array
(
&
data
);
}
void
bf_area_stats_gather
(
struct
cats_grid
*
grid
,
struct
cats_thread_info
*
ts
)
{
struct
conf_data_butterflies
*
module_conf
=
CATS_MODULE_DATA
;
...
...
@@ -138,7 +139,6 @@ void bf_area_stats_gather(struct cats_grid *grid, struct cats_thread_info *ts)
const
int64_t
id_unpop_unfit
=
module_conf
->
stat_ids
[
BF_STAT_UNPOPULATED_UNFIT
];
const
int32_t
grid_id
=
grid
->
id
;
//const cats_dt_rates zt = grid->param.ZT;
const
cats_dt_rates
ot
=
grid
->
param
.
OT
;
struct
statistics
*
stats
=
&
ts
->
stats
[
grid_id
];
...
...
This diff is collapsed.
Click to expand it.
src/modules/butterflies/butterflies_stats.h
+
0
−
1
View file @
63212176
...
...
@@ -13,7 +13,6 @@ enum butterfly_stats {
BF_STAT_UNPOPULATED_FIT
,
BF_STAT_UNPOPULATED_UNFIT
,
BF_STAT_EXCLUDED
,
BF_STAT_GENERATION_ACTIVE
,
BF_OUTPUT_STAT_MAX
,
BF_POPULATED_AT_DISPERSAL
,
BF_RANDOM_WALK_COUNT
,
...
...
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