Skip to content

Commit f5a25da

Browse files
committed
Cover additional checkpointing read_access
1 parent 2e5671f commit f5a25da

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

components/lfric-xios/source/lfric_xios_metafile_mod.F90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,12 @@ subroutine add_field(metafile, dict_field_id, mode, operation, id_as_name, legac
269269
end if
270270
end if
271271
end if
272+
273+
! Enable read_access if field is being added for restarting
274+
if (mode == RESTARTING) then
275+
call xios_set_field_attr(field_id, read_access=.true.)
276+
end if
277+
272278
end do
273279
end subroutine add_field
274280

0 commit comments

Comments
 (0)