Skip to content

[scm/dev] Ability to build with ip and sp library#1208

Merged
grantfirl merged 2 commits into
NCAR:scm/devfrom
grantfirl:scm/dev-ip_update
Apr 10, 2026
Merged

[scm/dev] Ability to build with ip and sp library#1208
grantfirl merged 2 commits into
NCAR:scm/devfrom
grantfirl:scm/dev-ip_update

Conversation

@grantfirl
Copy link
Copy Markdown
Collaborator

Identical to #1197, but for scm/dev

Tests Conducted:

SCM RTs

Contributors (optional):

@scrasmussen

…ip so this is needed. Note that in spack-stack 1.9.3 the ip package builds with the OpenMP flag, so CMAKE_Fortran_FLAGS_OPENMP_OFF needs to be set by the host model. The RRTMGP files currently break if compiled with OpenMP flags.
Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

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

Looks identical to me!

@grantfirl
Copy link
Copy Markdown
Collaborator Author

Looks identical to me!

Thanks for reviewing, but I'm probably going to remove the CODEOWNERS file, or just change it to SCM people, from this branch only so that you and others don't get even more requests for reviews. Everything in this branch should have already been reviewed in NCAR/main (and maybe already ufs/dev too, depending on the source of the changes).

@scrasmussen
Copy link
Copy Markdown
Member

scrasmussen commented Apr 1, 2026

@grantfirl We might want to PR in my fork's scm/dev branch of these changes instead of this one? Or, because you have the codeowners changes, use this one but change it to use revert?

I used a revert commit which doesn't change the commit hashes from the main branch. (I think you used cherry-pick which changes the hash) This should make keeping things in-sync easier since the common commits in the main and scm/dev branch will be identical. Then once we have #1187 working in scm/dev we can revert the revert commit and the two branches should match up nicely.

Fyi, I've read about this but haven't much experience using this workflow so I might be wrong!

@grantfirl
Copy link
Copy Markdown
Collaborator Author

grantfirl commented Apr 1, 2026

@grantfirl We might want to PR in my fork's scm/dev branch of these changes instead of this one?

I used a revert commit which doesn't change the commit hashes from the main branch. (I think you used cherry-pick which changes the hash) This should make keeping things in-sync easier since the common commits in the main and scm/dev branch will be identical. Then once we have #1187 working in scm/dev we can revert the revert commit and the two branches should match up nicely.

Fyi, I've read about this but haven't much experience using this workflow so I might be wrong!

@scrasmussen OK, I didn't know about the commit hash differences. Won't this continue to be a problem though? Let's say that we start squashing/merging PRs into NCAR/main. Once we pull that into scm/dev, won't there be different hashes then too?

@grantfirl
Copy link
Copy Markdown
Collaborator Author

@scrasmussen Also, if we go this route (starting from your branch of scm/dev), why do we need a PR? Can't you just push that to the NCAR fork?

@scrasmussen
Copy link
Copy Markdown
Member

@scrasmussen OK, I didn't know about the commit hash differences. Won't this continue to be a problem though? Let's say that we start squashing/merging PRs into NCAR/main. Once we pull that into scm/dev, won't there be different hashes then too?

These are good points and I'm not exactly sure right now. I think squashing/merging PRs into NCAR/main is ok, as long as we then "rebase and merge" those new commits from main into scm/dev. The "rebase and merge" will keep the commit hashes the same.

Not sure how it will work if we start putting new commits on scm/dev and then "rebasing and merging" commits from main->scm/dev or if that is even possible. There might be a bit of growing pains with this new development model

@scrasmussen Also, if we go this route (starting from your branch of scm/dev), why do we need a PR? Can't you just push that to the NCAR fork?

I suppose I could, though going through the PR route creates a better historical record and allows discussion?

@grantfirl
Copy link
Copy Markdown
Collaborator Author

my fork's scm/dev branch

@scrasmussen OK, so let's just do your branch PR then. I don't think it needs any further discussion though. Tracy, you, and I are effectively the only people who really care about scm/dev and we already discussed this. I'll close this once yours is ready.

@hertneky
Copy link
Copy Markdown
Collaborator

hertneky commented Apr 1, 2026

@grantfirl @scrasmussen I think the current plan sounds good. I guess we will see how this new process goes.

@grantfirl grantfirl merged commit 115e116 into NCAR:scm/dev Apr 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants