Skip to content

Commit 8d46f50

Browse files
authored
Merge branch 'develop' into feature/mathomp4/2845-esmf-env-var
2 parents 3e2645a + 194323c commit 8d46f50

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Added macro _RETURN(_SUCCESS) to fetch_data
1213
- Allow update offsets of ±timestep in ExtData2G
1314
- Minor revision (and generalization) of grid-def for GSI purposes
1415
- Add ability to use an `ESMF_CONFIG_FILE` environment variable to specify name of file to pass in pre-`ESMF_Initialize` options to ESMF (see [ESMF Docs](https://earthsystemmodeling.org/docs/release/latest/ESMF_refdoc/node4.html#SECTION04024000000000000000) for allowed flags.
@@ -43,6 +44,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4344
- Use v7.27.0 Baselibs
4445
- Use GCC 14 for GNU tests
4546
- Add pFUnit-less build test
47+
- Improve some writes to be more informative
48+
- In `base/MAPL_CFIO.F90`, added `Iam` to a print statement so that when a read fails we know which routine failed
49+
- In `gridcomps/ExtData2G/ExtDataConfig.F90`, print out the name of the duplicate collection that causes model to fail
4650

4751
### Fixed
4852

base/MAPL_CFIO.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2840,8 +2840,8 @@ subroutine MAPL_CFIOReadBundle ( FILETMPL, TIME, BUNDLE, NOREAD, RC, &
28402840
call fill_grads_template ( filename, filetmpl, &
28412841
experiment_id=EXPID, nymd=nymd, nhms=nhms, rc=status )
28422842
_VERIFY(STATUS)
2843-
!call WRITE_PARALLEL("CFIO: Reading " // trim(filename))
2844-
if (mapl_am_i_root()) write(*,*)"CFIO: Reading ",trim(filename)," at ",nymd," ",nhms
2843+
2844+
if (mapl_am_i_root()) write(*,'(a, ": Reading ", a, " at ", i8, " ", i6)') Iam, trim(filename), nymd, nhms
28452845

28462846

28472847
cfioIsCreated = .false.

gridcomps/ExtData2G/ExtDataConfig.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ recursive subroutine new_ExtDataConfig_from_yaml(ext_config,config_file,current_
107107
do while (ESMF_HConfigIterLoop(hconfigIter,hconfigIterBegin,hconfigIterEnd))
108108
hconfig_key = ESMF_HConfigAsStringMapKey(hconfigIter,_RC)
109109
temp_ds => ext_config%file_stream_map%at(hconfig_key)
110-
_ASSERT(.not.associated(temp_ds),"defined duplicate named collection")
110+
_ASSERT(.not.associated(temp_ds),"defined duplicate named collection " // trim(hconfig_key))
111111
single_collection = ESMF_HConfigCreateAtMapVal(hconfigIter,_RC)
112112
ds = ExtDataFileStream(single_collection,current_time,_RC)
113113
call ext_config%file_stream_map%insert(trim(hconfig_key),ds)

pfio/AbstractDataReference.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ subroutine fetch_data(this,offset_address,global_shape,offset_start, rc)
319319
case default
320320
_FAIL("dimension not supported yet")
321321
end select
322-
322+
_RETURN(_SUCCESS)
323323
end subroutine fetch_data
324324

325325
integer function get_length_base(this) result(length)

pfio/ServerThread.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ subroutine get_DataFromMem( this, multi_data_read, rc)
11541154

11551155
offset_address = c_loc(i_ptr(offset+1))
11561156

1157-
call mem_data_reference%fetch_data(offset_address,q%global_count,q%start-q%global_start+1)
1157+
call mem_data_reference%fetch_data(offset_address,q%global_count,q%start-q%global_start+1, _RC)
11581158

11591159
call this%insert_RequestHandle(q%request_id, &
11601160
& connection%put(q%request_id, mem_data_reference))

0 commit comments

Comments
 (0)