Skip to content

fix netCDF support in Siesta easyblock#1967

Merged
smoors merged 1 commit intoeasybuilders:developfrom
migueldiascosta:20200219165852_new_pr_yGuKcOycVT
Feb 20, 2020
Merged

fix netCDF support in Siesta easyblock#1967
smoors merged 1 commit intoeasybuilders:developfrom
migueldiascosta:20200219165852_new_pr_yGuKcOycVT

Conversation

@migueldiascosta
Copy link
Copy Markdown
Member

@migueldiascosta migueldiascosta commented Feb 19, 2020

(created using eb --new-pr)

fixes #1965

@smoors
Copy link
Copy Markdown
Contributor

smoors commented Feb 19, 2020

@migueldiascosta could you generate a test report for easybuilders/easybuild-easyconfigs#9858 with this fix applied?

@migueldiascosta
Copy link
Copy Markdown
Member Author

Copy link
Copy Markdown
Contributor

@smoors smoors left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@smoors smoors merged commit 369d6da into easybuilders:develop Feb 20, 2020
@smoors smoors added the bug fix label Feb 20, 2020
@smoors smoors added this to the next release (4.1.2?) milestone Feb 20, 2020
@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 20, 2020

Hmm, did this break Siesta-4.1-b4-foss-2018b.eb?

I'm getting this now:

netcdf_ncdf.f90:59:6:

   use netcdf
      1
Fatal Error: Can't open module file netcdf.mod for reading at (1): No such file or directory
compilation terminated.

@migueldiascosta
Copy link
Copy Markdown
Member Author

bummer... will look into it

@migueldiascosta
Copy link
Copy Markdown
Member Author

the include flag for netcdf is not being picked up when building siesta's ncdf module, this fixes it

--- siesta.py.orig	2020-02-21 12:58:08.255020893 +0800
+++ siesta.py	2020-02-21 14:32:21.233017759 +0800
@@ -181,6 +181,7 @@
                     (r"^(COMP_LIBS\s*=.*)$", r"\1 libncdf.a libfdict.a"),
                 ])
                 netcdf_lib_and_inc = "NETCDF_LIBS = -lnetcdff\nNETCDF_INCLUDE = -I%s/include" % netcdff_loc
+                netcdf_lib_and_inc += "\nINCFLAGS = $(NETCDF_INCLUDE)"
                 regex_newlines.append((r"^(COMP_LIBS\s*=.*)$", r"\1\n%s" % netcdf_lib_and_inc))
 
             xmlf90 = get_software_root('xmlf90')

but I don't know why it is only needed with foss and not with intel...

migueldiascosta added a commit to migueldiascosta/easybuild-easyblocks that referenced this pull request Feb 21, 2020
@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 21, 2020

@migueldiascosta Could be a difference between gfortran & ifort w.r.t. which environment variables (like $CPATH) they pick up on...

Can you open a pull request for that fix?

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 21, 2020

Ah, already there in #1971, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Siesta easyblock lacks NetCDF-4 support

3 participants