Skip to content

Commit 889bdec

Browse files
committed
Mac FPE test: Adding IO calltrees
Still investigating the MacOS FPE error on GitHub Actions
1 parent 99aee69 commit 889bdec

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/framework/MOM_io.F90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module MOM_io
1010
use MOM_dyn_horgrid, only : dyn_horgrid_type
1111
use MOM_ensemble_manager, only : get_ensemble_id
1212
use MOM_error_handler, only : MOM_error, NOTE, FATAL, WARNING, is_root_PE
13+
use MOM_error_handler, only : callTree_enter, callTree_leave
1314
use MOM_file_parser, only : log_version, param_file_type
1415
use MOM_grid, only : ocean_grid_type
1516
use MOM_io_infra, only : read_field, read_vector
@@ -302,6 +303,8 @@ subroutine create_MOM_file(IO_handle, filename, vars, novars, fields, &
302303
character(len=8) :: t_grid, t_grid_read
303304
character(len=64) :: ax_name(5) ! The axis names of a variable
304305

306+
call callTree_enter('create_MOM_file(), MOM_io.F90')
307+
305308
use_lath = .false. ; use_lonh = .false.
306309
use_latq = .false. ; use_lonq = .false.
307310
use_time = .false. ; use_periodic = .false.
@@ -584,6 +587,8 @@ subroutine create_MOM_file(IO_handle, filename, vars, novars, fields, &
584587
if (num_extra_dims > 0) then
585588
deallocate(use_extra_axis, more_axes)
586589
endif
590+
591+
call callTree_leave('create_MOM_file()')
587592
end subroutine create_MOM_file
588593

589594

src/framework/MOM_io_file.F90

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ module MOM_io_file
3838

3939
use MOM_error_handler, only : MOM_error, FATAL
4040
use MOM_error_handler, only : is_root_PE
41+
use MOM_error_handler, only : callTree_enter
42+
use MOM_error_handler, only : callTree_leave
4143

4244
implicit none ; private
4345

@@ -928,6 +930,8 @@ subroutine open_file_infra(handle, filename, action, MOM_domain, threading, file
928930
logical :: use_single_file_domain
929931
! True if the domain is replaced with a single-file IO layout.
930932

933+
call callTree_enter('open_file_infra(), MOM_io_file.F90')
934+
931935
use_single_file_domain = .false.
932936
if (present(MOM_domain) .and. present(fileset)) then
933937
if (fileset == SINGLE_FILE) &
@@ -945,6 +949,8 @@ subroutine open_file_infra(handle, filename, action, MOM_domain, threading, file
945949

946950
call handle%axes%init()
947951
call handle%fields%init()
952+
953+
call callTree_leave('open_file_infra()')
948954
end subroutine open_file_infra
949955

950956
!> Close a MOM framework file
@@ -1319,6 +1325,8 @@ subroutine open_file_nc(handle, filename, action, MOM_domain, threading, fileset
13191325
integer, intent(in), optional :: threading
13201326
integer, intent(in), optional :: fileset
13211327

1328+
call callTree_enter('open_file_nc(), MOM_io_file.F90')
1329+
13221330
if (.not. present(MOM_domain) .and. .not. is_root_PE()) return
13231331

13241332
call open_netcdf_file(handle%handle_nc, filename, action)
@@ -1331,6 +1339,8 @@ subroutine open_file_nc(handle, filename, action, MOM_domain, threading, fileset
13311339

13321340
call handle%axes%init()
13331341
call handle%fields%init()
1342+
1343+
call callTree_leave('open_file_nc()')
13341344
end subroutine open_file_nc
13351345

13361346

0 commit comments

Comments
 (0)