question about stencils #218
alanjhewitt
started this conversation in
LFRic
Replies: 1 comment 1 reply
-
|
It's not clear whether you need a stencil here. The Jules calculation seems to use only element 1 of the stencil (that's the second index of the tile_stencil array). Element 1 of the stencil is the central point of the stencil, so it is the same as While stencils are not yet supported for domain kernels (hence the need for psykal-lite code), normal maps are supported. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
there is something called "tile_stencil" in jule_exp_kernel_mod.F90 that is used in the calculation of frac_surft. it is not present in the ukca equivalent kernel when calculating frac_surft.
i could do with some help getting tile_stencil into the ukca kernel. for some reason, the jules kernel does not have an associated algorithm layer
From Jules jules_exp_kernel_mod.F90
do l = 1, land_field
coast%fland(l) = flandg(ainfo%land_index(l),1)
do n = 1, n_land_tile
! Jules requires fractions with respect to the land area
ainfo%frac_surft(l, n) = real(tile_fraction(tile_stencil(1,1,ainfo%land_index(l))+n-1), r_um) &
/ coast%fland(l)
end do
end do
From UKCA aerosol_ukca_kernel_mod.F90
There is also some stencil code in the following modules (the first of which calls the jules kernel):
science/um_physics_interface/source/psy/psykal_lite_phys_mod.F90
science/gungho/source/psy/psykal_lite_mod.F90
Beta Was this translation helpful? Give feedback.
All reactions