cedadev / extra-sci-packages

A set of RPM packages to supplement Jaspy to provide an scientific analysis environment for CentOS7
1 stars 0 forks source link

add cdftools #18

Open alaniwi opened 2 years ago

alaniwi commented 2 years ago

https://github.com/meom-group/CDFTOOLS

user request, HS ticket 53785

alaniwi commented 1 year ago

Compiler errors when attempting to follow build steps using system gfortran (in an interactive test prior to considering building an RPM):

gfortran  -c modcdfnames.F90 -O  -I/usr/include -L/usr/lib -lnetcdff -lnetcdf -D key_netcdf4 -Dkey_CMIP6   -fno-second-underscore -ffree-line-length-256 
modcdfnames_CMIP6.h90:169.25:
    Included at modcdfnames.F90:15:

      & (/'uo','vo','wo','zos',('        ', ji=jp_sqdvarmax-5,jp_sqdvarmax) /)
                         1
Error: Different CHARACTER lengths (2/3) in array constructor at (1)
modcdfnames_CMIP6.h90:175.16:
    Included at modcdfnames.F90:15:

      & (/'zos','thetao',('        ', ji=3,jp_cubvarmax) /)
                1
Error: Different CHARACTER lengths (3/6) in array constructor at (1)
modcdfnames.F90:248.44:

    NAMELIST/namcubvar/ nn_cubvar, cn_cubvar
                                            1
Error: Symbol 'cn_cubvar' at (1) has no IMPLICIT type
modcdfnames.F90:225.33:

    NAMELIST/nambroken/ cn_dept3d, cn_depu3d, cn_depw3d
                                 1
Error: Symbol 'cn_dept3d' at (1) has no IMPLICIT type
modcdfnames.F90:245.44:

    NAMELIST/namsqdvar/ nn_sqdvar, cn_sqdvar
                                            1
Error: Symbol 'cn_sqdvar' at (1) has no IMPLICIT type
make: *** [modcdfnames.o] Error 1

Searching for "CDFTOOLS" in HelpScout shows interest from some users -- and it seems that they have compiled this for themselves, with either the GNU compilers in Jaspy or with the Intel compilers (neither of which are suitable for jasmin-sci - it would have to use the system GNU compilers).

Not going to include in the next jasmin-sci release. Keeping this ticket open for the moment, as a prompt to ask the question some time about some possible system-wide installation on /apps/jasmin.