source:
NEMO/branches/2020/dev_r13747_ENHANCE-04_dford_OBSOP_BGC/doc/tools/nlsts_releases.sh
@
14028
Last change on this file since 14028 was 11004, checked in by nicolasmartin, 5 years ago | |
---|---|
|
|
File size: 809 bytes |
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | ## Estimate changes in namelists between two releases |
4 | ##################################################### |
5 | |
6 | ## Prerequisites: f90nml to parse Fortran namelists (http://f90nml.readthedocs.org) |
7 | ## Launch under ./doc, edit the path to previous namelists accordingly |
8 | |
9 | for nlst in ../../releases/release-3.6/DOC/Namelists/*; do |
10 | |
11 | if [ -f namelists/$( basename $nlst ) ]; then |
12 | printf "%s: " $( basename $nlst ) |
13 | f90nml namelists/$( basename $nlst ) | awk '/=/ { print $0 }' | sort > nlst_new.txt |
14 | f90nml $nlst | awk '/=/ { print $0 }' | sort > nlst_old.txt |
15 | |
16 | if [[ $( diff -q nlst_*.txt ) ]]; then |
17 | diff -y --suppress-common-lines nlst_*.txt | wc -l |
18 | else |
19 | echo 0 |
20 | fi |
21 | |
22 | fi |
23 | |
24 | done | sort -k2rn |
25 | |
26 | \rm nlst_*.txt |
Note: See TracBrowser
for help on using the repository browser.