New URL for NEMO forge!

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
#957 (Bug in obcdta : wrong index in allocation) – NEMO

Opened 12 years ago

Closed 11 years ago

#957 closed Bug (fixed)

Bug in obcdta : wrong index in allocation

Reported by: molines Owned by: nemo
Priority: low Milestone:
Component: OCE Version: v3.4
Severity: Keywords:


In routine module obcdta.F90, routine obc_dta_alloc, error in the allocation of north/south arrays ltnmsk etc. : jpj is used for first dimension, and it must be jpi for N and South.

Correct code :

      ALLOCATE( ltemsk(jpj,jpk) , luemsk(jpj,jpk) , lvemsk(jpj,jpk) ,     &
         &      ltwmsk(jpj,jpk) , luwmsk(jpj,jpk) , lvwmsk(jpj,jpk) ,     &
         &      ltnmsk(jpi,jpk) , lunmsk(jpi,jpk) , lvnmsk(jpi,jpk) ,     &
         &      ltsmsk(jpi,jpk) , lusmsk(jpi,jpk) , lvsmsk(jpi,jpk) , STAT=ierr(2) )

Commit History (1)


Fix allocation of msk in obcdta, see ticket #957

Change History (1)

comment:1 Changed 11 years ago by rblod

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.