Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Summa Actors
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Numerical_Simulations_Lab
Actors
Summa Actors
Commits
41b70c5a
Commit
41b70c5a
authored
1 year ago
by
KyleKlenk
Browse files
Options
Downloads
Patches
Plain Diff
Added number of failed GRUs to be printed to the screen
parent
8bb459da
No related branches found
No related tags found
1 merge request
!5
add in compiler def ACTORS_ACTIVE to turn on some stuff so can move...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/source/actors/job_actor/job_actor.cpp
+7
-1
7 additions, 1 deletion
build/source/actors/job_actor/job_actor.cpp
build/source/actors/summa_actor/summa_actor.cpp
+2
-1
2 additions, 1 deletion
build/source/actors/summa_actor/summa_actor.cpp
with
9 additions
and
2 deletions
build/source/actors/job_actor/job_actor.cpp
+
7
−
1
View file @
41b70c5a
...
...
@@ -113,7 +113,7 @@ behavior job_actor(stateful_actor<job_state>* self,
gru
,
self
->
state
.
dt_init_start_factor
,
self
->
state
.
hru_actor_settings
.
rel_tol
,
self
->
state
.
hru_actor_settings
.
abs_tol
,
self
->
state
.
hru_actor_settings
.
abs_tol
,
self
->
state
.
max_run_attempts
));
}
},
// end init_gru
...
...
@@ -185,6 +185,12 @@ behavior job_actor(stateful_actor<job_state>* self,
std
::
vector
<
serializable_netcdf_gru_actor_info
>
netcdf_gru_info
=
getGruNetcdfInfo
(
self
->
state
.
max_run_attempts
,
self
->
state
.
gru_container
.
gru_list
);
self
->
state
.
num_gru_failed
=
std
::
count_if
(
netcdf_gru_info
.
begin
(),
netcdf_gru_info
.
end
(),
[](
auto
&
gru_info
)
{
return
!
gru_info
.
successful
;
});
self
->
request
(
self
->
state
.
file_access_actor
,
infinite
,
...
...
This diff is collapsed.
Click to expand it.
build/source/actors/summa_actor/summa_actor.cpp
+
2
−
1
View file @
41b70c5a
...
...
@@ -69,12 +69,13 @@ behavior summa_actor(stateful_actor<summa_actor_state>* self, int startGRU, int
timing_info
.
job_write_duration
.
end
(),
0.0
);
aout
(
self
)
<<
"
\n
________________SUMMA
_ACTOR TIMING
INFO________________
\n
"
aout
(
self
)
<<
"
\n
________________SUMMA INFO________________
\n
"
<<
"Total Duration = "
<<
self
->
state
.
summa_actor_timing
.
getDuration
(
"total_duration"
).
value_or
(
-
1.0
)
<<
" Seconds
\n
"
<<
"Total Duration = "
<<
self
->
state
.
summa_actor_timing
.
getDuration
(
"total_duration"
).
value_or
(
-
1.0
)
/
60
<<
" Minutes
\n
"
<<
"Total Duration = "
<<
(
self
->
state
.
summa_actor_timing
.
getDuration
(
"total_duration"
).
value_or
(
-
1.0
)
/
60
)
/
60
<<
" Hours
\n
"
<<
"Total Read Duration = "
<<
total_read_duration
<<
"Seconds
\n
"
<<
"Total Write Duration = "
<<
total_write_duration
<<
"Seconds
\n
"
<<
"Num Failed = "
<<
self
->
state
.
numFailed
<<
"
\n
"
<<
"___________________Program Finished__________________
\n
"
;
...
...
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