CDFTOOLS-4.0.0-intel-2025b.eb 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. # Using the intel toolchain (Intel Compilers + Intel MPI + Intel MKL)
  8. toolchain = {'name': 'intel', 'version': '2025b'}
  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.3'),
  14. ('netCDF-Fortran', '4.6.2'),
  15. ]
  16. # Move into the source directory
  17. start_dir = 'src'
  18. # CDFTOOLS requires a make.macro file in the src directory.
  19. # We create one that points to the EasyBuild-managed NetCDF paths.
  20. #prebuildopts = 'NC_CONFIG="$EBROOTNETCDF/bin/nc-config" && '
  21. prebuildopts = 'NF_CONFIG="$EBROOTNETCDFMINFORTRAN/bin/nf-config" && '
  22. prebuildopts += 'echo "F90 = $($NF_CONFIG --fc) $($NF_CONFIG --fflags) $($NF_CONFIG --flibs)" > make.macro && '
  23. prebuildopts += 'echo "FFLAGS = -O3 -fno-alias" >> make.macro && '
  24. prebuildopts += 'echo "LIBS =" >> make.macro && '
  25. prebuildopts += 'echo "NC4 = -Dkey_netcdf4" >> make.macro && '
  26. # Build command execution
  27. buildopts = ""
  28. # Files to copy after build
  29. files_to_copy = [
  30. (['../bin/*'], 'bin'),
  31. (['*.mod'], 'include'),
  32. ]
  33. sanity_check_paths = {
  34. 'files': ['bin/cdfmoc', 'bin/cdfpsi', 'bin/cdfmaxmoc'],
  35. 'dirs': ['bin', 'include'],
  36. }
  37. moduleclass = 'phys'