New CISM time management aborts for leap years
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- fortran
- Lĩnh vực
- backend
Hướng nghiên cứu
Bắt đầu tại dòng 650 của glad_main.F90 và lần theo kiểm tra quản lý thời gian của CISM, kiểm tra này báo cáo “Valid_inputs cannot be .false.” trong các năm nhuận của lịch Gregory. Xem xét các log FCSD từ 2011–2016 và các phương án thay thế được liệt kê liên quan đến việc xử lý thời gian của CISM, lịch Gregory và CLM với glc_mec và SGLC; hoàn thành nghĩa là thiết lập được một phương pháp được hỗ trợ để tránh abort.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bill Sacks < sacks > - 2017-09-05 12:41:58 -0600
Bugzilla Id: 2507
Bugzilla CC: fyke, lipscomb, mvertens,
A few months ago, Mariana and I put in new CISM time management, where the coupler averages to a year before sending values to CISM. We put in place the following error check to ensure that CISM gets inputs at the time it expects them - because if the coupler and CISM are out of sync, CISM may be running with very wrong forcing values (e.g., always running with 0 values):
else if (time - av_start_time + params%time_step == params%tstep_mbal) then
if (.not. valid_inputs) then
write(message,*) &
'Valid_inputs cannot be .false. if trying to do a mass balance time step'
call write_log(message,GM_FATAL,__FILE__,__LINE__)
end if
However, Louisa Emmons ran into a problem trying to run with a Gregorian calendar:
I am trying to run compset FCSD from 2011-2016, and seem to have gotten stuck because 2012 is a leap year. I guess I could just switch to a 365-day calendar.
My case run directory is:
/glade/scratch/emmons/cesm2alph07_FCSD_09x1_TS1mamsoa/run
which used source code in:
/glade/p/work/fvitt/cesm/cesm2_0_alpha07c/
These are the log error messages:
glc.log:
WARNING: GLINT will not handle leap years correctly!!!
...
- FATAL ERROR : (glad_main.F90:650) Valid_inputs cannot be .false. if trying
to do a mass balance time step
cesm.log:
189: * FATAL ERROR : (glad_main.F90:650) Valid_inputs cannot be .false. if trying
189: to do a mass balance time step
189: Exiting with fatal error: this_rank = 189
0: PARALLEL STOP in glimmer_log.F90 at line 180
Indeed, I don't think we tested this with a Gregorian calendar. CISM has never run correctly with a Gregorian calendar, but we've tried to make sure that it doesn't abort.
We need to determine how to get back to a situation where at least it doesn't abort.
Solutions I can see are:
- Fix the problem robustly to allow gregorian runs with cism, by changing cism's time management
This would likely be a lot of work, and isn't favored by CISM folks, because they have no need for it.
- Bypass the above error checks if running with a Gregorian calendar
This might work, but I think we'll get more and more out of sync over time, which might cause some other problems.
- Some kludgey change to CISM's time handling to sort of do the right thing when running with a Gregorian calendar
This would be non-trivial because of the complexity of CISM's time handling - though would likely be easier than a full, robust reimplementation of time management in CISM.
e.g., we could temporarily modify tstep_mbal and related variables in leap years. It may not do exactly the right thing, but we could probably get it to do approximately the right thing - e.g., still running the CISM dynamics at the end of each year, whether or not it's a leap year.
- Get CLM working with glc_mec with SGLC. Then don't allow CISM with a Gregorian calendar, but provide this alternative so you can run a reasonable glc_mec configuration with a Gregorian calendar.
This is probably my preference (because we want this SGLC support for other reasons, too), as long as there aren't too many people who want to be able to run with a Gregorian calendar.
- Ngôn ngữ chính
- Fortran
- Star
- 4
- Fork
- 18
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ESCOMP/CISM-wrapper
-
Coupler Updates for Missing AblationCó thể đã có người làm @Katetc đã nhận 4 ngày trước. Đang mở
ESCOMP/CISM-wrapper#151 · 1 bình luận · 1 người được giao ·
-
ERI_Ly10.f10_f10_mg37.I1850Clm50SpG.derecho_intel.cism-isostasy_period4 Fail in cism_wrap_3.0.0Có thể đã có người làm @Katetc đã nhận 24 ngày trước. Đang mở
ESCOMP/CISM-wrapper#148 · 1 người được giao ·
-
Update Externals and Tests for CESM3Có thể làm lại được @Katetc đã nhận 68 ngày trước và không có pull request nào đang mở. Đang mở
ESCOMP/CISM-wrapper#145 · 2 bình luận · 1 người được giao ·
-
Consistency of Isotopes in Surface Mass Balance from CLMCó thể làm lại được @Katetc đã nhận 241 ngày trước và không có pull request nào đang mở. Đang mở
ESCOMP/CISM-wrapper#136 · 2 bình luận · 1 người được giao ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ESCOMP/CISM-wrapper#135 · 1 bình luận ·
Tất cả issue của ESCOMP/CISM-wrapper
Issue tương tự
-
comp/cli comp/plugins P2 type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NousResearch/hermes-agent#141917 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Go device SDK: Whisper transcriber keeps buffering and transcribing audio appended after Stop()Có thể đã có người làm @apoorvdarshan đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
BasedHardware/omi#22770 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug v3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-format
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Niko1221/Strata#3368 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày