Skip to content

Possible bug in coupled sea surface slope/tilt field #68

@anton-seaice

Description

@anton-seaice

I compiled mom5 with :

mom5:
      require:
        - '@git.2025.05.000=access-esm1.6'
        - 'build_type="Debug"'

Running access-esm1.6 pre industrial configs give this error during initialisation:

forrtl: severe (408): fort: (33): Shape mismatch: The extent of dimension 2 of array SSLOPE is 21 and the corresponding extent of array <RHS expression> is 23

Image              PC                Routine            Line        Source
mom5_access_cm     0000000000917476  ocean_sbc_mod_mp_        2963  ocean_sbc.F90
mom5_access_cm     0000000000551336  ocean_model_mod_m        2091  ocean_model.F90
mom5_access_cm     0000000000440921  MAIN__                    450  ocean_solo.F90
mom5_access_cm     0000000000411C8D  Unknown               Unknown  Unknown
libc-2.28.so       000014FD54FEC7E5  __libc_start_main     Unknown  Unknown
mom5_access_cm     0000000000411BAE  Unknown               Unknown  Unknown

(There are lots of similar messages, implying it happens on every task).

The failure is in:

#if defined(ACCESS_CM) || defined(ACCESS_OM)
  sslope(:,:,:) = GRAD_BAROTROPIC_P(Thickness%sea_lev(:,:), isc - isd, isc - isd)
  if (isc - isd /= 1) then
    call mpp_error (FATAL, '==>Error from ocean_sbc_mod (sum_ocean_sfc): grad barotropic halos')
  endif 
#endif

sslope is of this size:

  allocate ( sslope(isc:iec, jsc:jec, 2) )

implying some sort of indexing error in the arrays

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions