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.
#938 (annoying perl warning when building configurations) – NEMO

Opened 12 years ago

Closed 12 years ago

#938 closed Defect (fixed)

annoying perl warning when building configurations

Reported by: vichi Owned by: nemo
Priority: low Milestone: Unscheduled
Component: tools Version: v3.4
Severity: Keywords: FCM
Cc:

Description

For those who continuously get many warnings like this

"Use of uninitialized value within @all_fields in lc"

when building the configuration, it can be solved by changing the following line in

NEMOGCM/EXTERNAL/fcm/lib/Fcm/CfgLine.pm

@@ -204,7 +204,7 @@ for my $name (qw/label slabel/) {
     my @all_fields = $self->$method;
 
     for my $i (0 .. $#fields) {
-      next if lc ($fields[$i]) eq lc ($all_fields[$i]);
+      next if lc ($fields[$i]) eq lc ($all_fields[$i] || '');
       $return = 0;
       last;
     }

please inform FCM developers in case.

Commit History (1)

ChangesetAuthorTimeChangeLog
3673vichi2012-11-27T13:59:21+01:00

Removed annoying warning during configuration build (Ticket #938)

Changed one line in FCM to remove all warnings when building a configuration.

Change History (1)

comment:1 Changed 12 years ago by vichi

  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from annoying perl warning when buolding configurations to annoying perl warning when building configurations

Fixed in revision 3673

Note: See TracTickets for help on using tickets.