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.
#956 (problem in NEMO1D if bathy file is read) – NEMO

Opened 12 years ago

Closed 11 years ago

#956 closed Bug (fixed)

problem in NEMO1D if bathy file is read

Reported by: rbourdal Owned by: rbourdal
Priority: normal Milestone:
Component: C1D Version: v3.4
Severity: Keywords:
Cc:

Description

In 1D case, if a bathymetry file is read, the bathymetry of the first and the last lines (and columns) are not forced to 0. By consequence, the mask is not set to 0 and half sums are not correct.

A proposition of correction:
Add after the read of bathy_level.nc:

IF( lk_c1d ) THEN ! 1D configuration

mbathy(1 , : ) = 0 ! first line and
mbathy( jpi, : ) = 0 ! first culomn
mbathy( : ,1 ) = 0 ! forced to 0
mbathy( : , jpj) = 0

END IF

And add after the read of bathy_meter.nc:

IF( lk_c1d ) THEN ! 1D configuration

bathy(1 , : ) = 0._wp ! first line and
bathy( jpi, : ) = 0._wp ! first culomn
bathy( : ,1 ) = 0._wp ! forced to 0
bathy( : , jpj) = 0._wp

END IF

Commit History (0)

(No commits)

Change History (2)

comment:1 Changed 11 years ago by clevy

  • Owner changed from NEMO team to rbourdal

comment:2 Changed 11 years ago by rbourdal

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

Ticket close in the revision 3720.
For more information see Ticket 955 (closed at the same time)

Note: See TracTickets for help on using tickets.