Radaer api ukca side - part two initialisation - #45
Radaer api ukca side - part two initialisation#45Alan J Hewitt (alanjhewitt) wants to merge 15 commits into
Conversation
|
Your CLA signature was found on the base branch, but you appear to have modified the CONTRIBUTORS.md file in this PR. Please do not edit the CONTRIBUTORS.md file. If you have already signed the CLA, revert changes to the file and your signature will be picked up. |
|
Hi Mohit, this development is now ready for SciTech review. Alan |
| ! Purpose: | ||
| ! To save structure ukca_radaer_lfric | ||
| ! | ||
| ! --------------------------------------------------------------------- |
There was a problem hiding this comment.
Could ukca_radaer_lfric be declared in the 'struct_mod' itself, avoiding the need for this module? The ukca_radaer_lfric_struct_mod will need to be accessed by calling/ downstream routines in any case.
If module is to be retained: check copyright statement (should be LICENCE file) and add ownership details
| INTEGER(KIND=jpim), PARAMETER :: zhook_in = 0 | ||
| INTEGER(KIND=jpim), PARAMETER :: zhook_out = 1 | ||
| REAL(KIND=jprb) :: zhook_handle | ||
| CHARACTER(LEN=*), PARAMETER :: RoutineName='UKCA_RADAER_LFRIC_INIT' |
| ! Code description: | ||
| ! Language: FORTRAN 90 | ||
| ! This code is written to UMDP3 programming standards. | ||
| ! |
There was a problem hiding this comment.
Check copyright statement (should be LICENCE file).
|
|
||
| IF (lhook) CALL dr_hook(ModuleName//':'//RoutineName,zhook_out,zhook_handle) | ||
| END SUBROUTINE allocate_radaer_lfric_struct | ||
|
|
There was a problem hiding this comment.
Does the structure/ instance stay in memory throughout, or is there a need for a 'deallocate' routine?
PR Summary
This change allows users to change the GLOMAP setting (i_mode_setup) that is passed to RADAER.
Sci/Tech Reviewer: Mohit Dalvi (@mcdalvi)
Code Reviewer: Pierre Siddall (@Pierre-siddall)
This development increases the flexibility of RADAER so that when called from LFRic_apps parent with setting GLOMAP_MODE_UKCA RADAER will run with the setting of i_mode_setup.
When called from LFRic_apps parent with setting GLOMAP_MODE_CLIMATOLOGY RADAER will run with the fixed setting of SUBCOCSSDU_7mode. This preserves the existing functionality but replaces hard coded settings in radaer_kernel_mod.
When called from LFRic_apps parent with setting GLOMAP_MODE_DUST_AND_CLIM UKCA will run with fixed setting DUonly_2modes and RADAER will run with the fixed setting of SUBCOCSSDU_7mode. This preserves the existing functionality but replaces hard coded settings in radaer_kernel_mod.
Lists used by radaer_kernel_mod are SAVED and stored in UKCA modules
n_ukca_mode and n_ukca_cpnt used by radaer_kernel_mod are SAVED and stored in UKCA modules.
Code Quality Checklist
(Some checks are automatically carried out via the CI pipeline)
Testing
I have run UKCA box model test with suite u-dr481
trac.log
Security Considerations
Performance Impact
performance measurements have been conducted
AI Assistance and Attribution
Documentation
Sci/Tech Review
Please alert the code reviewer via a tag when you have approved the SR
Code Review