Skip to content

fix math in calculation of startdate #4790

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

Merged
merged 2 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CIME/SystemTests/system_tests_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,10 @@ def _set_restart_interval(
smon = int(smon)
sday = int(sday)
else:
syr = int(startdate) / 10000
smon = int(startdate) - syr * 10000 / 100
sday = int(startdate) - syr * 10000 - smon * 100
startdate = int(startdate)
syr = int(startdate / 10000)
smon = int((startdate - syr * 10000) / 100)
sday = startdate - syr * 10000 - smon * 100

addyr = syr // 10000
syr = syr % 10000
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if [[ "${SKIP_MODEL_SETUP}" == "false" ]]; then
elif [[ "${CIME_MODEL}" == "cesm" ]]; then
echo "Setting up CESM"

[[ ! -e "${SRC_PATH}/CESM" ]] && git clone -b ${CESM_BRANCH:-master} ${GIT_FLAGS} ${E3SM_REPO:-https://github.com/ESCOMP/CESM} "${SRC_PATH}/CESM"
[[ ! -e "${SRC_PATH}/CESM" ]] && git clone -b ${CESM_BRANCH:-cesm3.0-alphabranch} ${GIT_FLAGS} ${E3SM_REPO:-https://github.com/ESCOMP/CESM} "${SRC_PATH}/CESM"

pushd "${SRC_PATH}/CESM"

Expand Down
Loading