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.
#160 (nemo trunk : CPP syntax error (ifort compiler) in various modules) – NEMO

Opened 14 years ago

Closed 14 years ago

Last modified 6 years ago

#160 closed Bug (fixed)

nemo trunk : CPP syntax error (ifort compiler) in various modules

Reported by: molines@… Owned by: nemo
Priority: high Milestone:
Component: OCE Version: v2
Severity: Keywords: CPP
Cc:

Description

in the following module, the quoted lines give an error when compiling with ifort
(#error: #if: parse error )

bdydta.F90:#if defined key_bdy || key_bdy_tides
bdy_oce.F90:#if defined key_bdy || key_bdy_tides
bdy_par.F90:#if defined key_bdy || key_bdy_tides
divcur.F90:#if defined key_bdy || key_bdy_tides
divcur.F90:#if defined key_bdy || key_bdy_tides
domvvl.F90:#if defined key_obc && ( key_dynspg_exp || key_dynspg_ts )
domvvl.F90:#if defined key_bdy || key_bdy_tides

In order to fix it the syntax must be

bdydta.F90:#if defined key_bdy || defined key_bdy_tides
bdy_oce.F90:#if defined key_bdy || defined key_bdy_tides
bdy_par.F90:#if defined key_bdy || defined key_bdy_tides
divcur.F90:#if defined key_bdy || defined key_bdy_tides
divcur.F90:#if defined key_bdy || defined key_bdy_tides
domvvl.F90:#if defined key_obc && ( defined key_dynspg_exp || defined key_dynspg_ts )
domvvl.F90:#if defined key_bdy || defined key_bdy_tides

Commit History (3)

ChangesetAuthorTimeChangeLog
6880stephenhaddad2016-08-23T16:58:04+02:00

crum #160fixing compatibility between xios-1.0 and NEMO v3.6 STABLE branch.

6877stephenhaddad2016-08-23T15:31:34+02:00

crum #160: Update to ensure that NEMO treats xios1.0 and xios2.0 the same when sending the bounds.

1058rblod2008-06-04T21:14:34+02:00

Correct preprocessing syntax, see ticket #160

Change History (3)

comment:1 Changed 14 years ago by nemo_user

There is also a syntax error in dynspg.F90, near the end :

#if key_obc

should be
#if defined key_obc

comment:2 Changed 14 years ago by rblod

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

comment:3 Changed 6 years ago by nicolasmartin

  • Keywords CPP added; preprocessing removed
Note: See TracTickets for help on using tickets.