-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cice5: improve handling of targets and dependencies for ESM1.6 #179
Conversation
Hi @aidanheerdegen & @anton-seaice , Hopefully this PR provides a cleaner foundation for @anton-seaice 's PR #173 . |
Testing
|
Thanks Harshula So you plan for another PR to add the access-esm1.6 stuff to spack-build.sh & the access-esm1.6 version to this recipe? parallelio and libaccessom2 are dependencies only for the accessom2 build, but this PR is still linking/including them for all builds. |
Hi @anton-seaice , Once this PR is merged to main, you should then rebase your branch/PR on top of the latest main. Then your changes will be on top of these changes. This PR only supports building ACCESS-OM2. It contains a template of how to support other coupled models. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these linker/include lines should be updated
spack-packages/packages/cice5/package.py
Lines 109 to 117 in 756cb58
istr = join_path((spec["oasis3-mct"].headers).cpp_flags, "psmile.MPI1") | |
ideps = ["parallelio", "oasis3-mct", "libaccessom2", "netcdf-fortran"] | |
incs = " ".join([istr] + [(spec[d].headers).cpp_flags for d in ideps]) | |
lstr = self.make_linker_args(spec, "parallelio", "-lpiof -lpioc") | |
# NOTE: The order of the libraries matter during the linking step! | |
# NOTE: datetime-fortran is a dependency of libaccessom2. | |
ldeps = ["oasis3-mct", "libaccessom2", "netcdf-c", "netcdf-fortran", "datetime-fortran"] | |
libs = " ".join([lstr] + [self.get_linker_args(spec, d) for d in ldeps]) |
to be consistent with the with when("@:access-esm0,access-esm2:"):
added in the class definition for having parallelio and libaccessom2 as dependencies
d873fb4
to
b383086
Compare
Hi @anton-seaice , Have a look at the latest commit. Thoughts? |
I think maybe you mixed up libaccessom2 / netcdf-c |
b383086
to
5afdb77
Compare
Thanks. I should have just kept it simple. |
5afdb77
to
cdd87af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.