Opened 12 years ago

Closed 12 years ago

Last modified 4 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: release-2
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 12 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 12 years ago by rblod

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

comment:3 Changed 4 years ago by nicolasmartin

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