Changeset 2101


Ignore:
Timestamp:
Jul 24, 2014, 6:26:10 PM (10 years ago)
Author:
lguez
Message:

Exclude "out.def" of the comparison of ".def" files with
diffdef. "out.def" is neither an input file neither a file written by
IOIPSL like the files "used_*.def". So "out.def" contains some
duplicate lines with "used_guide.def", and the script diffdef would
signal that as an error.

Location:
LMDZ5/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/calbeta_clim.F90

    r2098 r2101  
    2323  real lat_sahel,beta(klon)
    2424  real lat_nord,lat_sud
     25
     26  include "iniprint.h"
    2527  !==============================================
    2628
     
    3335  time_radian=(time+15.)*2.*pi / year_len
    3436
    35   print*,'BETA time_radian',time_radian,time
     37  if (prt_level >= 1) print *, 'time_radian time', time_radian, time
    3638
    3739  lat(:)=180.*lat_radian(:)/pi !lat(:)=lat_radian(:)
  • LMDZ5/trunk/tools/diffdef.sh

    r2098 r2101  
    22# Author: Lionel GUEZ
    33
    4 # This script compares files "*.def" other than "traceur.def" in two
    5 # directories. The script uses GNU versions of the utilities cut, sort
    6 # and uniq.
     4# This script compares files "*.def" other than "traceur.def" and
     5# "out.def" in two directories. The script uses GNU versions of the
     6# utilities cut, sort and uniq.
    77
    88# See guide:
     
    3333  rm -f all.def
    3434  echo "def files in $my_directory:"
    35   ls !(traceur).def
     35  ls !(traceur|out).def
    3636
    3737  # Concatenate and format the def files:
    38   cat !(traceur).def | tr -d " " | grep -v -E '(^#|^!|INCLUDEDEF|^$)' \
    39       | tr '[:lower:]' '[:upper:]' | sed 's/=N$/=FALSE/' | sed 's/=Y$/=TRUE/' \
    40       | sort >all.def
     38  cat !(traceur|out).def | tr -d " " | grep -v -E '(^#|^!|INCLUDEDEF|^$)' \
     39      | tr '[:lower:]' '[:upper:]' | sed 's/=[NF]$/=FALSE/' \
     40      | sed 's/=[YT]$/=TRUE/' | sort >all.def
    4141
    4242  # Check that no variable is repeated:
Note: See TracChangeset for help on using the changeset viewer.