New URL for NEMO forge!   http://forge.nemo-ocean.eu

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.
#1287 (ze3f not initialized after allocation in vor_een ( dynvor.F90)) – NEMO

Opened 10 years ago

Closed 10 years ago

#1287 closed Bug (fixed)

ze3f not initialized after allocation in vor_een ( dynvor.F90)

Reported by: cbricaud Owned by: nemo
Priority: normal Milestone:
Component: OCE Version: v3.6
Severity: Keywords:
Cc:

Description

ze3f is allocated in vor_een
but not initialized

and ze3f is filled only when ze3 /= 0._wp :

" IF( ze3 /= 0._wp ) ze3f(ji,jj,jk) = zmsk / ze3"

Depending how compiler initilize array after allocation, ze3f can contain bad values, as Nan.

Produce some crash in solver for ORCA025 on ECMWF AIX7 at Mercator.

I propose to initialize it after allocation.

Commit History (0)

(No commits)

Change History (1)

comment:1 Changed 10 years ago by cbricaud

  • Resolution set to fixed
  • Status changed from new to closed

bug fixed at rev 4601

@@ -600,6 +600,7 @@

IF( lk_mpp ) CALL mpp_sum ( ierr )
IF( ierr /= 0 ) CALL ctl_stop( 'STOP', 'dyn:vor_een : unable to allocate arrays' )

ENDIF

+ ze3f(:,:,:) = 0.d0

#endif

ENDIF

Note: See TracTickets for help on using tickets.