MetOffice / MetOffice/lfric_apps

#554: Improve set up of fields on coarse grid in LFRic

Open
#554 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Fortran
Stars
31
Forks
118
Avg merge
2d 4h
Merged PRs (30d)
8

Description

### Are there any linked Issues or Pull Requests?

_No response_

### Brief description

Currently, LFRic atmosphere contains a few fields (aerosols, nudging after #474) defined on a coarse mesh i.e. different mesh to 'dynamics'.
The setup and reation of these fields however, requires adding/ using bespoke arguments to field creation functions, eg. in *create_physics_prognostics*
```
call processor%apply(make_spec('ait_sol_om', main%aerosol, Wtheta, **coarse=coarse_rad_aerosol, &
coarse_mesh_name=mesh_name**, adv_coll=if_adv(advection_flag, adv%last_con), &
ckp=checkpoint_flag))
```
If there are another set of physics fields that move to a coarse mesh this may add further complexity to the definitions.

There is hence a need to design a robust and flexible way to handle the coarse mesh fields.

### Further details of the issue.

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading create_physics_prognostics and the field creation calls using coarse_rad_aerosol and coarse_mesh_name. Review the coarse-mesh changes associated with issue #474 and trace how coarse fields are currently created. Done means a documented, robust design is implemented for handling additional coarse-mesh physics fields without adding bespoke creation arguments.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran
Domain
hpc
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.