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.
#2211 (The linking of BDY code fails in a non-MPP configuration) – NEMO

Opened 5 years ago

Closed 5 years ago

Last modified 2 years ago

#2211 closed Defect (fixed)

The linking of BDY code fails in a non-MPP configuration

Reported by: smueller Owned by: smueller
Priority: low Milestone: 2018 release-4.0
Component: BDY Version: trunk
Severity: minor Keywords: non-MPP v4.0
Cc:

Description

Context

In a non-MPP configuration, the linking of BDY code fails due to undefined references to "ctl_stop_".

Analysis

The modules bdydyn2d, bdydyn3d, bdylib, and bdytra of the BDY component include calls to subroutine ctl_stop without explicit reference to lib_mpp (i.e., without 'use lib_mpp' statement). In the source code that is generated when key_mpp_mpi is defined, access to ctl_stop in these modules is provided indirectly via the lbclnk module; in non-MPP configurations, however, module lbclnk does not provide access to ctl_stop.

Recommendation

The non-MPP variant of the source code for module lbclnk could be extended to provide access to subroutine ctl_stop. This could be achieved with two modifications of the section of file src/OCE/LBC/lbclnk.F90 that is selected when key_mpp_mpi is undefined: i) a replication of the 'use lib_mpp' statement from the source code for the MPP variant of the lbclnk module, and ii) the declaration of ctl_stop as public after the setting of the default accessibility attribute to private.

Commit History (1)

ChangesetAuthorTimeChangeLog
10529smasson2019-01-16T11:40:44+01:00

trunk: bugfix in BDY routines for non-MPP compilation, see #2211

Change History (4)

comment:1 Changed 5 years ago by smueller

  • Owner changed from systeam to smueller
  • Status changed from new to assigned

comment:2 Changed 5 years ago by smasson

In 10529:

Error: Failed to load processor CommitTicketReference
No macro or processor named 'CommitTicketReference' found

comment:3 Changed 5 years ago by smasson

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

comment:4 Changed 2 years ago by nemo

  • Keywords v4.0 added
Note: See TracTickets for help on using tickets.