COSIMA / cice5

Clone of The Los Alamos sea ice model (CICE) with ACCESS drivers. See https://github.com/CICE-Consortium/CICE-svn-trunk/tree/cice-5.1.2
4 stars 13 forks source link

Initialise offset in pack_coupling_array #40

Closed penguian closed 4 years ago

penguian commented 4 years ago

At line 462 of https://github.com/COSIMA/cice5/blob/master/drivers/auscom/cpl_interface.F90 in subroutine pack_coupling_array, the variable offset should be initialised to 0. The current lack of initialisation causes errors such as

Segmentation fault: address not mapped to object

History: In commit https://github.com/COSIMA/cice5/commit/c132689bce7801fe7fe618163d7956c412e3ec1b which resolves issue #21, at line 465 in subroutine pack_coupling_array, the variable offset should have been initialised to 0. Compare with line 436 in subroutine unpack_coupling_array in the same commit.