Would you consider adding the following table to the gfortran documentation:

GCC version    module file version
-----------------------------------
up to 4.3.2    unversioned
4.4            0
4.5.1          4
4.6.3          6
4.7.0pre       8
4.7.1          9
4.8.[1-3]      10
4.9.2          12
5.1.0          14
8.1.0          15 
9              15
10             15
11             15

I find this is very useful for associating libraries and compilers.

I also use this script, modVersion.sh to find module versions

#! /bin/bash

mfiles=$*
fmt="%-60s %s\n"
for m in $mfiles ; do
    if [ $(file $m  | grep -wco gzip) -eq 1 ]; then
        printf "$fmt"  $m "$(zcat $m | strings | head -1)"
    else
        printf "$fmt"  $m "$( strings $m | head -1)"
    fi
    done

example:

modVersion.sh /opt/packages/hdf5-1.8.19/include/hdf5.mod

/opt/packages/hdf5-1.8.19/include/hdf5.mod                   GFORTRAN module version '15' created from HDF5.f90


--

Reply via email to