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

Additional changes to StokesMOST #97

Merged
merged 4 commits into from
Oct 12, 2024

Conversation

mnlevy1981
Copy link
Contributor

These changes come from W. Large, though he and @gustavo-marques asked me to make one scalar value user-settable (which is da50e0b)

Bill's source mods were based on a slightly older version of CVMix, so I
created a temporary branch from where I believe he started his work and copied
his changes in. Then I merged master in, resulting in this version of
cvmix_kpp.F90
I created a new CVt2 component to the kpp parameter type, it is set to 2.6 by
default during initialization but users can change it by calling

cvmix_put_kpp('CVt2', new_val)

after calling cvmix_init_kpp()
Noticed an if statement was removed (so code inside block always ran), but the
existing code was not unindented
gfortran now compiles with same flags CESM uses when DEBUG=TRUE, except I added
-Werror to elevate warnings to errors and then also turned on
-Wno-maybe-uninitialized to avoid failing tests because the compiler thinks
there's a chance we are accessing uninitialized memory (the one failure caught
by this in CI was initializing an allocatable array element-by-element inside a
loop: this was a false-positive, as the loop covered all indices)
@gustavo-marques
Copy link
Contributor

Thanks, @mnlevy1981!
This PR gives identical results to Bill's original changes.

@mnlevy1981 mnlevy1981 merged commit 5e3d0ce into CVMix:master Oct 12, 2024
1 check 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.

2 participants