Skip to content

Correct the use iau_offset and add new functions to output restart files#176

Open
MingjingTong-NOAA wants to merge 2 commits intoNOAA-GFDL:mainfrom
MingjingTong-NOAA:shield_da_merge
Open

Correct the use iau_offset and add new functions to output restart files#176
MingjingTong-NOAA wants to merge 2 commits intoNOAA-GFDL:mainfrom
MingjingTong-NOAA:shield_da_merge

Conversation

@MingjingTong-NOAA
Copy link
Copy Markdown

This PR is part of the changes made to enable DA cycling functions. In particular, the use of iau_offset variable has been corrected and new functions to control the output of restart files has been added, which allows the output of the restart file at the first time step through the control parameter restart_first_time_step and a new parameter restart_start is used to specify the starting time to output the restart file.

A forecast test was run to compare with the main branch and the results are bit-wise identical.

step restart files and the function to control the starting time to
output restart files.
@MingjingTong-NOAA MingjingTong-NOAA marked this pull request as draft March 5, 2026 22:37
@MingjingTong-NOAA MingjingTong-NOAA marked this pull request as ready for review March 5, 2026 22:49
@MingjingTong-NOAA
Copy link
Copy Markdown
Author

@JosephMouallem and @laurenchilutti, I couldn't assign the reviewers of this PR from the github page. This PR is one of the four PRs for shield DA related changes. Other three PRs are listed below

NOAA-GFDL/SHiELD_physics#81
NOAA-GFDL/atmos_drivers#70
NOAA-GFDL/SHiELD_build#79

The above failing check can be resolved by including the changes in NOAA-GFDL/atmos_drivers#70

The test case and scripts can be found in this google doc: https://docs.google.com/document/d/1gWwZoDWtxfpDuKmH99oeBUzgGe_pmdGZb8N1P8fxy_0/edit?tab=t.0

Thank you for reviewing the code.

Comment thread full/full_coupler_mod.F90 Outdated
endif

call fms_mpp_clock_begin(coupler_clocks%atmos_model_init)
Atm%iau_offset = iau_offset
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is causing the CI testing to fail on this PR with the compilation error: "Error: 'iau_offset' at (1) is not a member of the 'atmos_data_type' structure"

@laurenchilutti
Copy link
Copy Markdown
Member

It is important for this PR to be reviewed for compatibility with other GFDL models. The PRs in FMS Coupler are now going to be reviewed by the fmscoupler task force. The email for this group is: oar.gfdl.fmscoupler-task-force@noaa.gov. We should schedule a meeting to present these changes and seek their input.

@JosephMouallem
Copy link
Copy Markdown
Contributor

@MingjingTong-NOAA: While all models now run with the full coupler, unlike SHiELD, the other models use a different atmosphere driver atmos_drivers/coupled/atmos_model.F90.

The failed check occurs because the tests here run under this configuration atmos_drivers/coupled/atmos_model.F90 rather than atmos_drivers/SHiELD/atmos_model.F90. Since iau_offset is not present in the atmos_data_type in atmos_drivers/coupled/atmos_model.F90, the compilation fails.

@lharris4
Copy link
Copy Markdown

Is it possible to put these modifications into atmos_drivers/SHiELD/atmos_model.F90, so they remain specific to SHiELD?

@MingjingTong-NOAA
Copy link
Copy Markdown
Author

Hi All,

Thank you so much for reviewing the PRs. I'll address all your comments in the coming couple of days.

@MingjingTong-NOAA
Copy link
Copy Markdown
Author

I've moved the iau_offset related changes into atmos_drivers/SHiELD/atmos_model.F90

@JosephMouallem
Copy link
Copy Markdown
Contributor

As per our last discussion, the changes here will be moved to the atmosphere driver level, so no changes will be made here, thanks.

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.

5 participants