Open hkershaw-brown opened 1 month ago
this is an aside, but there are unused copies_in_window in CM1 model_mod & filter_mod (& filter_dopplerfold) https://github.com/NCAR/DART/blob/75cf8dc9c566221f624ffd4d5eeba9fde5a1757c/models/cm1/model_mod.f90#L59 https://github.com/NCAR/DART/blob/75cf8dc9c566221f624ffd4d5eeba9fde5a1757c/assimilation_code/modules/assimilation/filter_mod.f90#L49
pull these out.
note this is why there is a copy:
! Global memory to stick the mpi window to.
! Need a simply contiguous piece of memory to pass to mpi_win_create
! Openmpi 1.10.0 will not compile with ifort 16 if
! you create a window with a 2d array.
Use case
Currently doing an copy of data from the ensemble handle to the window
Is your feature request related to a problem?
Not incorrect results, but using more memory per core than we need to.
Describe your preferred solution
Create the window with the whole state_ens_handle%copies array. 'simply contiguous' 1 get_state copies_in_window != copies you need to get so the window logic would need to be updated for the whole %copies array
Spec
Describe any alternatives you have considered
None