aosprey / mckpp-f90

Multi-Column configuration of the K Profile Parameterisation mixed-layer ocean model (F90 version)
GNU General Public License v3.0
2 stars 0 forks source link

Rationalise netcdf read code #32

Closed aosprey closed 1 year ago

aosprey commented 1 year ago

When reading netcdf data, we often use a temporary variable and then copy into 3d_fields. This allows us to collapse dimensions, and convert data types (e.g. float to int). However the netdf interface can do this so, with the correct options, we can read data directly into 3d fields. This should be more efficient, and simplifies the code.

Do this, and merge into MPI branch, before proceeding with parallelisation of reads.