@@ -38,6 +38,8 @@ module MOM_io_file
3838
3939use MOM_error_handler, only : MOM_error, FATAL
4040use MOM_error_handler, only : is_root_PE
41+ use MOM_error_handler, only : callTree_enter
42+ use MOM_error_handler, only : callTree_leave
4143
4244implicit 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()' )
948954end 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()' )
13341344end subroutine open_file_nc
13351345
13361346
0 commit comments