Skip to content

Commit 0982697

Browse files
committed
Set mpi-io metadata read for file for read_access scalability
1 parent 60fc29a commit 0982697

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

components/lfric-xios/source/lfric_xios_file_mod.f90

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,11 @@ subroutine register_with_context(self)
427427
call xios_add_child(self%handle, file_fields, self%field_group_id)
428428
end if
429429

430-
! Set up read_access attribute for fields in file
431-
if (self%mode_is_read()) then
432-
call xios_set_attr(file_fields, read_access=.true.)
433-
end if
430+
! Set mpi-io metadata read for file & read_access attribute for fields in file
431+
if (self%mode_is_read()) then
432+
call xios_set_attr(self%handle, read_metadata_par=.true.)
433+
call xios_set_attr(file_fields, read_access=.true.)
434+
end if
434435

435436
! Set up fields in file
436437
if (allocated(self%fields)) then

0 commit comments

Comments
 (0)