Skip to content

Change wind names in lfricinputs to match names used in lfric_atm#565

Merged
Harry Shepherd (harry-shepherd) merged 5 commits into
MetOffice:mainfrom
stevemullerworth:winds_change
Jul 16, 2026
Merged

Change wind names in lfricinputs to match names used in lfric_atm#565
Harry Shepherd (harry-shepherd) merged 5 commits into
MetOffice:mainfrom
stevemullerworth:winds_change

Conversation

@stevemullerworth

@stevemullerworth Steve Mullerworth (stevemullerworth) commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

PR Summary

Sci/Tech Reviewer: Lottie Turner (@mo-lottieturner)
Code Reviewer: Harry Shepherd (@harry-shepherd)

In lfric_atm, the cell-centred horizontal winds are named u_in_w3 and v_in_w3. The vertical wind is w_in_wth as it is on Wtheta. But lfricinputs still assumes older names: ew_wind, ns_wind and upward_wind.

This PR changes the names to match those now used in lfric_atm, as it will be lfric_atm data that the tools work on.

Some of the LFRic dumps used by lfric2um have been changed to include the new name, and are currently held here:

$DATADIR/pr565/standard_jobs/lfricinputs/inputs/v3.2/

The lfric2um_startdump_aquaplanet_N48L38_C48L38.nc and nwp-gal9_N320L70_C224L70.nc are copies of the output from the matching um2lfric run in the suite. The lfric2um_startdump_um-lam_C48L70.nc is generated by using ncrename to rename the three wind variables.

Because two of the lfric2um input files were new dumps, the rose-ana tasks of the tasks that use these files do not pass. The tests were rerun with the jobs pointing at files generated from the original dumps by using ncrename. This time the lfric2um rose-ana tests pass, demonstrating that the prior failures are due to the differences in the input dump. The alternate files are held in a modified_orig directory next to the above v3.2 directory.

$DATADIR/pr565/standard_jobs/lfricinputs/inputs/modified_orig/

The files in one or other of the directories above will need to be moved to a central location such as $BIG_DATA prior to the final commit, and rose-stem/site/common/lfricinputs/tasks_lfric2um.cylc will need to be updated to point to the new locations.

As expected, the um2lfric and sciintelapi rose-ana tests fail due to the change in names in the output files: A KGO update will be required.

Code Quality Checklist

  • I have performed a self-review of my own code
  • My code follows the project's style guidelines
  • Comments have been included that aid understanding and enhance the readability of the code
  • My changes generate no new warnings
  • All automated checks in the CI pipeline have completed successfully

Testing

  • I have tested this change locally, using the LFRic Apps rose-stem suite
  • If any tests fail (rose-stem or CI) the reason is understood and acceptable (e.g. kgo changes)
  • I have added tests to cover new functionality as appropriate (e.g. system tests, unit tests, etc.)
  • Any new tests have been assigned an appropriate amount of compute resource and have been allocated to an appropriate testing group (i.e. the developer tests are for jobs which use a small amount of compute resource and complete in a matter of minutes)

trac.log

Test Suite Results - lfric_apps - pr565_for_review/run1

Suite Information

Item Value
Suite Name pr565_for_review/run1
Suite User steve.mullerworth
Workflow Start 2026-06-26T12:29:30
Groups Run all
Dependency Reference Main Like
casim MetOffice/casim@2026.03.2 True
jules MetOffice/jules@1ea67b4 True
lfric_apps stevemullerworth/lfric_apps@winds_change False
lfric_core stevemullerworth/lfric_core@winds_change False
moci MetOffice/moci@2026.03.2 True
SimSys_Scripts MetOffice/SimSys_Scripts@3e2998b True
socrates MetOffice/socrates@2026.03.2 True
socrates-spectral MetOffice/socrates-spectral@2026.03.2 True
ukca MetOffice/ukca@1cdb9c2 True

Task Information

❌ failed tasks - 46
Task State
rose_ana_lfricinputs_lfric2um-aquaplanet-C48L38_N48L38_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_lfric2um-aquaplanet-C48L38_N48L38_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_lfric2um-aquaplanet-C48L38_N48L38_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_lfric2um-aquaplanet-C48L38_N48L38_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_scintelapi-basic-C48L38_C48L38_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_scintelapi-basic-C48L38_C48L38_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_scintelapi-basic-C48L38_C48L38_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_scintelapi-basic-C48L38_C48L38_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet-N48L38_C48L38_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet-N48L38_C48L38_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet-N48L38_C48L38_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet-N48L38_C48L38_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet_lam_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet_lam_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet_lam_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet_lam_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet_lbc_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet_lbc_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet_lbc_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-aquaplanet_lbc_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-basicgal-N96L70_C12L70_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-basicgal-N96L70_C12L70_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-basicgal-N96L70_C12L70_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-basicgal-N96L70_C12L70_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-falklands_lam_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-falklands_lam_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-falklands_lam_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-falklands_lam_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-nwp_gal9-N320L70_C12L70_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-nwp_gal9-N320L70_C12L70_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-nwp_gal9-N320L70_C12L70_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-nwp_gal9-N320L70_C12L70_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-nwp_gal9-N320L70_C48L70_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-nwp_gal9-N320L70_C48L70_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-nwp_gal9-N320L70_C48L70_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-nwp_gal9-N320L70_C48L70_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-protogal-N320L70_C12L70_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-protogal-N320L70_C12L70_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-protogal-N320L70_C12L70_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-protogal-N320L70_C12L70_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-protogal_chem-N48L70_C12L70_azspice_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-protogal_chem-N48L70_C12L70_azspice_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-protogal_chem-N48L70_C48L70_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-protogal_chem-N48L70_C48L70_ex1a_gnu_full-debug-64bit failed
rose_ana_lfricinputs_um2lfric-var_seuk_lam_ex1a_gnu_fast-debug-64bit failed
rose_ana_lfricinputs_um2lfric-var_seuk_lam_ex1a_gnu_full-debug-64bit failed
✅ succeeded tasks - 1534

trac.log with ncrename-modified files

Result can be found here, as trac.log generation will not work:

https://cylchub/services/cylc-review/cycles/steve.mullerworth/?suite=pr565_for_review%2Frun2

Security Considerations

  • I have reviewed my changes for potential security issues
  • Sensitive data is properly handled (if applicable)
  • Authentication and authorisation are properly implemented (if applicable)

Performance Impact

  • Performance of the code has been considered and, if applicable, suitable performance measurements have been conducted

AI Assistance and Attribution

  • Some of the content of this change has been produced with the assistance of Generative AI tool name (e.g., Met Office Github Copilot Enterprise, Github Copilot Personal, ChatGPT GPT-4, etc) and I have followed the Simulation Systems AI policy (including attribution labels)

Documentation

  • Where appropriate I have updated documentation related to this change and confirmed that it builds correctly

PSyclone Approval

  • If you have edited any PSyclone-related code (e.g. PSyKAl-lite, Kernel interface, optimisation scripts, LFRic data structure code) then please contact the TCD Team

Sci/Tech Review

  • I understand this area of code and the changes being added
  • The proposed changes correspond to the pull request description
  • Documentation is sufficient (do documentation papers need updating)
  • Sufficient testing has been completed

(Please alert the code reviewer via a tag when you have approved the SR)

Code Review

  • All dependencies have been resolved
  • Related Issues have been properly linked and addressed
  • CLA compliance has been confirmed
  • Code quality standards have been met
  • Tests are adequate and have passed
  • Documentation is complete and accurate
  • Security considerations have been addressed
  • Performance impact is acceptable

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I haven't looked at PRs that introduce changes to input files before; will these $DATADIR/pr565 paths be reverted to standard paths before merging the branch?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes. Following normal practice, once the change is ready for commit to main, the new files will be centrally installed in our local $DATADIR. They will be installed in additional to the old files so as not to break tests of older versions. These additional files would be needed by any partners who run the full test suite.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me; I don't think we currently run any of the affected tests at ESNZ, but we'll update input files should the need arise.

@harry-shepherd
Harry Shepherd (harry-shepherd) merged commit 8c5dcbd into MetOffice:main Jul 16, 2026
7 checks 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.

5 participants