CDFTOOLS-4.0.0-foss-2024a.eb 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. easyblock = 'MakeCp'
  2. name = 'CDFTOOLS'
  3. version = '4.0.0'
  4. homepage = 'https://github.com/meom-group/CDFTOOLS'
  5. description = """CDFTOOLS is a diagnostic package written in Fortran 90
  6. for the analysis of NEMO model output."""
  7. toolchain = {'name': 'foss', 'version': '2024a'}
  8. toolchainopts = {'usempi': True, 'pic': True}
  9. source_urls = ['https://github.com/meom-group/CDFTOOLS/archive/']
  10. sources = ['v%(version)s.tar.gz']
  11. checksums = ['97c88789452b9945af8c165852f1a1b8a9af2394ca9aa758693e196d78e9d6f4']
  12. dependencies = [
  13. ('netCDF', '4.9.2'),
  14. ('netCDF-Fortran', '4.6.1'), # Standard version compatible with foss/2025b
  15. ]
  16. start_dir = 'src'
  17. # CDFTOOLS requires a make.macro file in the src directory.
  18. # We create one that points to the EasyBuild-managed NetCDF paths.
  19. #prebuildopts = 'NC_CONFIG="$EBROOTNETCDF/bin/nc-config" && '
  20. prebuildopts = 'NF_CONFIG="$EBROOTNETCDFMINFORTRAN/bin/nf-config" && '
  21. prebuildopts += 'echo "F90 = $($NF_CONFIG --fc) $($NF_CONFIG --fflags) $($NF_CONFIG --flibs)" > make.macro && '
  22. prebuildopts += 'echo "FFLAGS = -O3 -fno-second-underscore -ffree-line-length-256" >> make.macro && '
  23. prebuildopts += 'echo "LIBS =" >> make.macro && '
  24. prebuildopts += 'echo "NC4 = -Dkey_netcdf4" >> make.macro && '
  25. # Build command execution
  26. buildopts = ""
  27. # Files to copy after build
  28. files_to_copy = [
  29. (['../bin/*'], 'bin'),
  30. (['*.mod'], 'include'),
  31. ]
  32. sanity_check_paths = {
  33. 'files': ['bin/cdfmoc', 'bin/cdfpsi', 'bin/cdfmaxmoc'],
  34. 'dirs': ['bin'],
  35. }
  36. moduleclass = 'phys'