Skip to content
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

Add LILAC cap #32

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Add LILAC cap #32

wants to merge 4 commits into from

Conversation

billsacks
Copy link
Member

At some point we need to bring this branch in to MOSART's main branch, so that we can run LILAC with MOSART. However, I'm not quite ready to do so, for a few reasons:

  1. I haven't reviewed these changes

  2. We don't have any tests in place that exercise this new cap

  3. From a very quick look, I noticed that the buildlib changes will need to be revised: we no longer use an environment variable to indicate that we're using LILAC, but instead use an xml variable defined in CTSM's config_component.xml. So we should query that XML variable, but do so in a way that, if the variable isn't found, then we proceed assuming that we're NOT using LILAC (so that this works in a case that includes MOSART without CTSM - e.g., with a data land model).

So for now I'm opening a PR so that we remember to bring this in at some point, but as far as I'm concerned, this can remain open for a while.

cc @mvertens @ekluzek

Mariana Vertenstein and others added 4 commits December 5, 2019 12:53
I needed this on my mac because 'use mpi' doesn't work there (I think
we'd need to '#include <mpif.h>', but it's more robust to just use
shr_mpi_mod).
Updates to NUOPC cap

Main purpose is updates to NUOPC cap. Also a fix for PIO2.

Most changes are from Mariana Vertenstein, brought to master by Bill
Sacks.

These changes are documented in #30

Testing: mosart test suite (cheyenne & izumi), in the context of a CTSM
checkout (ESCOMP/CTSM#939). Baseline comparisons
done against ctsm1.0.dev085.
billsacks added a commit to ESCOMP/CTSM that referenced this pull request Jul 1, 2020
I'm not ready to bring the mosart branch in, and it's not needed yet
because we're not yet running LILAC with MOSART. I have opened a PR for
it to bring in later: ESCOMP/MOSART#32
billsacks added a commit to ESCOMP/CTSM that referenced this pull request Jul 2, 2020
This change is important in the short-term, at least, because I'm not
ready to bring the mosart lilac_cap branch to master, so we're pointing
to a version of mosart that doesn't have the necessary changes - see
ESCOMP/MOSART#32.

Once those MOSART changes are on MOSART's master branch, then we should
change buildlib back to using the MOSART source code rather than stub
rof. We may want to do this conditionally, depending on whether rof
coupling is actually wanted in the given run.

(I at first thought that we could let the cime build build mosart for
us, but then realized that the current mechanism is needed because lilac
depends on the mosart code; also, mosart is not built during the
--sharedlib build phase.)

Note: I have NOT given careful thought to the changes in lilac_mod.F90:
It seems right to put this rof-related code inside a conditional, but I
haven't done a careful analysis to determine if that's correct.
@billsacks
Copy link
Member Author

See ESCOMP/CTSM@a1b038683 . These changes were needed to build / run lilac without mosart. Once we want to support mosart in lilac, we'll need to add some of those deleted lines back in buildlib, possibly conditionally. (I think the rest of the changes in that commit can remain as is, but see the commit log message for details.)

@ekluzek ekluzek marked this pull request as draft November 11, 2022 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants