Skip to content

Commit 308b9b1

Browse files
authored
Merge branch 'main' into format-pr-template
2 parents 108fc0c + f3e5664 commit 308b9b1

27 files changed

Lines changed: 1036 additions & 385 deletions

File tree

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PR Summary
22

3-
Sci/Tech Reviewer: <!-- SR id, filled when known (e.g. @octocat) -->
3+
Sci/Tech Reviewer: <!-- SR id, filled by author when ready for review (e.g. @octocat) -->
44
Code Reviewer: <!-- CR id, filled by SSD/CCD (e.g. @octocat) -->
55

66
<!-- To be completed by the developer -->
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Track Review Project
2+
3+
on:
4+
workflow_run:
5+
workflows: [Trigger Review Project]
6+
types:
7+
- completed
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
pull-requests: write
13+
14+
jobs:
15+
track_review_project:
16+
uses: MetOffice/growss/.github/workflows/track-review-project.yaml@main
17+
secrets: inherit
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Trigger Review Project
2+
3+
on:
4+
pull_request_target:
5+
types: ["opened", "synchronize", "reopened", "edited", "review_requested", "review_request_removed"]
6+
pull_request_review:
7+
pull_request_review_comment:
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
pull-requests: write
13+
14+
jobs:
15+
trigger_project_workflow:
16+
uses: MetOffice/growss/.github/workflows/trigger-project-workflow.yaml@main
17+
secrets: inherit

CONTRIBUTORS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
| --------------- | ---------------- | ----------- | ---------- |
44
| andrewcoughtrie | Andrew Coughtrie | Met Office | 2025.12.12 |
55
| james-bruten-mo | James Bruten | Met Office | 2025-12-09 |
6+
| jedbakerMO | Jed Baker | Met Office | 2025-12-29 |
67
| jennyhickson | Jenny Hickson | Met Office | 2025-12-10 |
78
| mo-marqh | Mark Hedley | Met Office | 2025-12-11 |
89
| mike-hobson | Mike Hobson | Met Office | 2025-12-17 |
910
| MatthewHambley | Matthew Hambley | Met Office | 2025-12-15 |
1011
| yaswant | Yaswant Pradhan | Met Office | 2025-12-16 |
12+
| stevemullerworth | Steve Mullerworth | Met Office | 2026-01-08 |
1113
| harry-shepherd | Harry Shepherd | Met Office | 2026-01-08 |
1214
| EdHone | Ed Hone | Met Office | 2026-01-09 |
13-
15+
| tom-j-h | Tom Hill | Met Office | 2026-01-19 |

applications/io_demo/source/algorithm/io_demo_constants_mod.x90

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ module io_demo_constants_mod
2222
use fs_continuity_mod, only: W2
2323
use function_space_collection_mod, only: function_space_collection
2424
use function_space_mod, only: function_space_type
25-
use io_config_mod, only: subroutine_timers
2625
use log_mod, only: log_event, LOG_LEVEL_TRACE, &
2726
LOG_LEVEL_ERROR
2827
use mesh_mod, only: mesh_type
29-
use timer_mod, only: timer
28+
use timing_mod, only: start_timing, stop_timing, &
29+
tik, LPROF
3030

3131
! Kernels
3232
use sci_calc_dA_at_w2_kernel_mod, only: calc_dA_at_w2_kernel_type
@@ -61,8 +61,9 @@ contains
6161
type(mesh_type), pointer, intent(in) :: mesh
6262
type(field_type), target, intent(in) :: chi(:)
6363
type(field_type), target, intent(in) :: panel_id
64+
integer(tik) :: id
6465

65-
if ( subroutine_timers ) call timer('io_demo_constants_alg')
66+
if ( LPROF ) call start_timing( id, 'io_demo_constants_alg' )
6667
call log_event( "io_demo: creating runtime constants", LOG_LEVEL_TRACE )
6768

6869
!============================= dx_at_w2 setup =============================!
@@ -72,7 +73,7 @@ contains
7273
call log_event( "io_demo: runtime constants created", LOG_LEVEL_TRACE )
7374

7475

75-
if ( subroutine_timers ) call timer('io_demo_constants_alg')
76+
if ( LPROF ) call stop_timing( id, 'io_demo_constants_alg' )
7677
call log_event( "io_demo: created FEM constants", LOG_LEVEL_TRACE )
7778

7879
end subroutine create_io_demo_constants

applications/io_demo/source/driver/multifile_io/multifile_io_mod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module multifile_io_mod
2222
use inventory_by_mesh_mod, only: inventory_by_mesh_type
2323
use io_context_collection_mod, only: io_context_collection_type
2424
use io_context_mod, only: io_context_type, callback_clock_arg
25-
use io_config_mod, only: use_xios_io, subroutine_timers
25+
use io_config_mod, only: use_xios_io
2626
use log_mod, only: log_event, log_level_error, &
2727
log_level_trace, log_level_info, &
2828
log_scratch_space

applications/io_demo/source/io_demo.f90

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,21 @@ program io_demo
2121
log_level_trace, &
2222
log_scratch_space
2323
use random_number_generator_mod, only : random_number_generator_type
24-
use io_demo_mod, only : io_demo_required_namelists
25-
use io_demo_driver_mod, only : initialise, step, finalise
24+
use io_demo_mod, only : io_demo_required_namelists
25+
use io_demo_driver_mod, only : initialise, step, finalise
26+
use timing_mod, only : init_timing, final_timing
27+
use io_config_mod, only : timer_output_path
28+
use namelist_mod, only : namelist_type
2629

2730
implicit none
2831

2932
! The technical and scientific state
30-
type(modeldb_type) :: modeldb
31-
character(*), parameter :: program_name = "io_demo"
32-
character(:), allocatable :: filename
33-
integer, parameter :: default_seed = 123456789
33+
type(modeldb_type) :: modeldb
34+
character(*), parameter :: program_name = "io_demo"
35+
character(:), allocatable :: filename
36+
type(namelist_type), pointer :: io_nml
37+
logical :: lsubroutine_timers
38+
integer, parameter :: default_seed = 123456789
3439
type(random_number_generator_type), pointer :: rng
3540

3641
call parse_command_line( filename )
@@ -49,6 +54,10 @@ program io_demo
4954
deallocate( filename )
5055

5156
call init_logger( modeldb%mpi%get_comm(), program_name )
57+
io_nml => modeldb%configuration%get_namelist('io')
58+
call io_nml%get_value('subroutine_timers', lsubroutine_timers)
59+
call init_timing( modeldb%mpi%get_comm(), lsubroutine_timers, program_name, timer_output_path )
60+
nullify( io_nml )
5261
call init_collections()
5362
call init_time(modeldb)
5463

@@ -70,6 +79,7 @@ program io_demo
7079
call finalise( program_name, modeldb )
7180
call final_time(modeldb)
7281
call final_collections()
82+
call final_timing( program_name )
7383
call final_logger( program_name )
7484
call final_config()
7585
call final_comm( modeldb )

applications/simple_diffusion/source/algorithm/simple_diffusion_constants_mod.x90

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ module simple_diffusion_constants_mod
2222
use fs_continuity_mod, only: W2
2323
use function_space_collection_mod, only: function_space_collection
2424
use function_space_mod, only: function_space_type
25-
use io_config_mod, only: subroutine_timers
2625
use log_mod, only: log_event, LOG_LEVEL_TRACE, &
2726
LOG_LEVEL_ERROR
2827
use mesh_mod, only: mesh_type
29-
use timer_mod, only: timer
28+
use timing_mod, only: start_timing, stop_timing, &
29+
tik, LPROF
3030

3131
! Kernels
3232
use sci_calc_da_at_w2_kernel_mod, only: calc_dA_at_w2_kernel_type
@@ -61,8 +61,9 @@ contains
6161
type(mesh_type), pointer, intent(in) :: mesh
6262
type(field_type), target, intent(in) :: chi(:)
6363
type(field_type), target, intent(in) :: panel_id
64+
integer(tik) :: id
6465

65-
if ( subroutine_timers ) call timer('simple_diffusion_constants_alg')
66+
if ( LPROF ) call start_timing( id, 'simple_diffusion_constants_alg' )
6667
call log_event( "simple_diffusion: creating runtime constants", LOG_LEVEL_TRACE )
6768

6869
!============================= dx_at_w2 setup =============================!
@@ -72,7 +73,7 @@ contains
7273
call log_event( "simple_diffusion: runtime constants created", LOG_LEVEL_TRACE )
7374

7475

75-
if ( subroutine_timers ) call timer('simple_diffusion_constants_alg')
76+
if ( LPROF ) call stop_timing( id, 'simple_diffusion_constants_alg' )
7677
call log_event( "simple_diffusion: created FEM constants", LOG_LEVEL_TRACE )
7778

7879
end subroutine create_simple_diffusion_constants

applications/skeleton/source/algorithm/skeleton_constants_mod.x90

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ module skeleton_constants_mod
2222
use function_space_collection_mod, only: function_space_collection
2323
use function_space_mod, only: function_space_type
2424
use inventory_by_mesh_mod, only: inventory_by_mesh_type
25-
use io_config_mod, only: subroutine_timers
2625
use log_mod, only: log_event, LOG_LEVEL_INFO, &
2726
LOG_LEVEL_ERROR
2827
use mesh_mod, only: mesh_type
2928
use operator_mod, only: operator_type
3029
use quadrature_xyoz_mod, only: quadrature_xyoz_type
3130
use quadrature_rule_gaussian_mod, only: quadrature_rule_gaussian_type
32-
use timer_mod, only: timer
31+
use timing_mod, only: start_timing, stop_timing, &
32+
tik, LPROF
3333

3434
! Configuration
3535
use finite_element_config_mod, only: element_order_h, &
@@ -109,8 +109,9 @@ contains
109109
type(function_space_type), pointer :: w2v_fs => null()
110110
type(function_space_type), pointer :: w3_fs => null()
111111
type(function_space_type), pointer :: wtheta_fs => null()
112+
integer(tik) :: id
112113

113-
if ( subroutine_timers ) call timer('skeleton_constants_alg')
114+
if ( LPROF ) call start_timing( id, 'skeleton_constants_alg' )
114115
call log_event( "Skeleton: creating runtime constants", LOG_LEVEL_INFO )
115116

116117
!======================== Create quadrature object ========================!
@@ -178,7 +179,7 @@ contains
178179
mm_w0, mm_w1, mm_w2, mm_w2b, mm_w3, mm_wtheta, grad, curl, div, &
179180
broken_div )
180181

181-
if ( subroutine_timers ) call timer('skeleton_constants_alg')
182+
if ( LPROF ) call stop_timing( id, 'skeleton_constants_alg' )
182183
call log_event( "Skeleton: created FEM constants", LOG_LEVEL_INFO )
183184

184185
end subroutine create_skeleton_constants

components/driver/source/driver_timer_mod.f90

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)