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

dynamic landunits: handle methane with changing lake area #43

Open
billsacks opened this issue Dec 16, 2017 · 5 comments
Open

dynamic landunits: handle methane with changing lake area #43

billsacks opened this issue Dec 16, 2017 · 5 comments
Labels
bug something is working incorrectly science Enhancement to or bug impacting science

Comments

@billsacks
Copy link
Member

Bill Sacks < [email protected] > - 2016-02-16 13:38:10 -0700
Bugzilla Id: 2283
Bugzilla CC: [email protected], [email protected], [email protected],

The methane code (ch4Mod.F90) implicitly assumes that finundated is 1 for lakes. Thus, if lake area increases, the right thing to do is probably to immediately inundate any land it took over, with code similar to what happens right now when inundated area increases.

Decreases in lake area should be handled appropriately now, but increases in lake area are not. Currently, there is no way for lakes to increase in area, but this will need to be revisited once they can.

@billsacks billsacks added this to the future milestone Dec 16, 2017
@billsacks billsacks added enhancement new capability or improved behavior of existing capability priority: low Background task that doesn't need to be done right away. labels Dec 16, 2017
@billsacks billsacks added type: enhance - science and removed enhancement new capability or improved behavior of existing capability labels Feb 9, 2018
@billsacks billsacks removed this from the future milestone Nov 5, 2018
@billsacks billsacks added enhancement new capability or improved behavior of existing capability and removed type: enhance - science labels May 24, 2019
@billsacks
Copy link
Member Author

When trying to run a dynamic lakes BGC case (specifically, ERS_Lm25.1x1_smallvilleIA.IHistClm50BgcCropQianRsGs.cheyenne_gnu.clm-smallville_dynlakes_monthly from 3ab74de), I am getting a gridcell methane conservation issue. I haven't dug into it, but I'm thinking it may be related to this issue.

@billsacks billsacks added bug something is working incorrectly tag: bug - impacts science and removed priority: low Background task that doesn't need to be done right away. enhancement new capability or improved behavior of existing capability labels Sep 25, 2020
@billsacks
Copy link
Member Author

Now that dynamic lakes are nearly on master, I'm changing this from an enhancement to a bug.

billsacks added a commit to billsacks/ctsm that referenced this issue Sep 25, 2020
I was getting a gridcell-level methane balance check error when running
ERS_Lm25.1x1_smallvilleIA.IHistClm50BgcCropQianRsGs.cheyenne_gnu.clm-smallville_dynlakes_monthly.
I'm thinking it was due to ESCOMP#43. So for now, I'm disabling
methane in this testmod. (I thought about changing it to an Sp case, but
(1) currently you're not allowed to run smallville in an Sp case, and
(2) it would be nice to exercise as much of the BGC code as possible in
this test, to exercise the dynamic landunit conservation code for BGC
variables.)
@billsacks
Copy link
Member Author

Discussion in ctsm-software meeting: For now, in order to allow ch4 always on with BGC: Let's turn off the gridcell methane conservation check when dynamic lakes are active, maybe just in the first time step of each year.

Then we'll come back to this later and fix it properly. But since the conservation errors are probably quite small, this isn't high priority.

MiCurry pushed a commit to MiCurry/CTSM that referenced this issue Sep 16, 2021
ekluzek added a commit to ekluzek/CTSM that referenced this issue Sep 23, 2021
…COMP#43, we currently just allow it to be true even through the conservation check for methane fails at the first time step of each year
@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Oct 13, 2022

This issue describes a ch4 balance error with transient lakes.
I see a ch4 balance error in #1868 but:

  • I have yet to confirm that my problem is due to transient lakes and
  • My balance error appears in hybrid/startup cases (e.g. 1901, 1920, 1921) though not in 1850 where the whole simulation started and not in restart/branch cases.

The way the problem manifests in #1868 and if it's the same as #43, we could comment out the gridcell balance check (as suggested above) but for the first timestep of the run.

@billsacks
Copy link
Member Author

@slevisconsulting pointed out that we have this current workaround in place to bypass the gridcell-level methane checks on the first time step of each year when using dynamic lakes:

CTSM/src/biogeochem/ch4Mod.F90

Lines 2330 to 2332 in 616905b

if ( is_beg_curr_year() .and. get_do_transient_lakes() )then
ch4_first_time_grc(begg:endg) = .true.
end if

together with some code that bypasses the ch4 balance checks if this flag is true.

As @slevisconsulting pointed out in #1868 (reply in thread) it's likely that there is a problem in time step 0 of a hybrid case that may need a similar workaround to the one above.

slevis-lmwg added a commit to slevis-lmwg/ctsm that referenced this issue Feb 18, 2023
The former resolves ESCOMP#42; the latter resolves ESCOMP#43.
Cheyenne test-suite PASS. Generating new baselines since tests that
were failing are now passing.

Next I will run the izumi test-suite and prepare to merge/tag.
slevis-lmwg pushed a commit to slevis-lmwg/ctsm that referenced this issue Aug 1, 2023
Change shebang lines, abort if direction file not set, add a compset
samsrabin pushed a commit to samsrabin/CTSM that referenced this issue Apr 19, 2024
swensosc pushed a commit to swensosc/ctsm that referenced this issue Jun 5, 2024
ekluzek added a commit to ekluzek/CTSM that referenced this issue Jun 7, 2024
4ff1e98de Merge tag 'v0.7.7' into tmp-release
87640ad Bump to 0.7.7
c124dc5 Merge pull request ESCOMP#43 from ESMCI/fix/root_dir
3ff935b update tests
0593149 one more improvement
d95f5d6 fix status issue
c304487 update complex test

git-subtree-dir: .lib/git-fleximod
git-subtree-split: 4ff1e98de895eb146de451e6d676ecc78d224662
jedwards4b added a commit to jedwards4b/ctsm that referenced this issue Jul 5, 2024
ekluzek added a commit to ekluzek/CTSM that referenced this issue Jul 11, 2024
a60032499 Merge tag 'v0.8.2' into tmp-release
75a0337 Bump to 0.8.2
7136066 Merge pull request ESCOMP#54 from ESMCI/fix/tag-not-found
a90de4f update to fetch tag first
a6e43fc Bump to 0.8.1
229ba03 Merge pull request ESCOMP#53 from ESMCI/fix/ssh_access
e9cd2be better fix for issue with ssh access
c624b61 Bump to 0.8.0
6ccf617 Merge pull request ESCOMP#51 from ESMCI/fix/recursive
53fce57 no need to make submodule objects persist
dae1c82 now working with issue ESCOMP#50
ded91fd all tests passing, issue ESCOMP#50 fixed
62a338b all pytests now passing
143abac tests a-d all pass
2b021fd add documentation to submodule.py
72211d2 add the new submodule class
82dd7a4 test_b_update now working
a7d8b4e all pytests passing
5322019 Bump to 0.7.9
1f07cb6 Merge pull request ESCOMP#49 from ESMCI/fix/fxDONOTUSEurl
31ce71b use poetry update to update poetry.lock file
46043f0 add code of conduct (issue ESCOMP#35)
0c3d683 dependabot changes and issue ESCOMP#48
25ccc15de Merge tag 'v0.7.8' into tmp-release
8eae7e3 Bump to 0.7.8
34daa06 Merge pull request ESCOMP#46 from ESMCI/add_optional_keyword
af12c80 fix spelling
7ea36dc remove manage_externals error
2ede182 add optional to status output
4ff1e98de Merge tag 'v0.7.7' into tmp-release
87640ad Bump to 0.7.7
c124dc5 Merge pull request ESCOMP#43 from ESMCI/fix/root_dir
3ff935b update tests
0593149 one more improvement
d95f5d6 fix status issue
c304487 update complex test
a34070b Bump to 0.7.6
9e5d5f7 Merge pull request ESCOMP#40 from ESMCI/fix/change_url
00b7b38 some fixes when modifying url

git-subtree-dir: .lib/git-fleximod
git-subtree-split: a600324993623cba8e663fcbfdb6a0f6832dd802
@samsrabin samsrabin added the science Enhancement to or bug impacting science label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is working incorrectly science Enhancement to or bug impacting science
Projects
None yet
Development

No branches or pull requests

3 participants