Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
| doucla | Douglas Clark | UKCEH | 2026-07-03 |
| james-bruten-mo | James Bruten | Met Office | 2026-07-09 |
| maggiehendry | Maggie Hendry | Met Office | 2026-08-21 |
| DanCopsey | Dan Copsey | Met Office | 2026-08-24 |
| Pierre-siddall | Pierre Siddall | Met Office | 2026-08-26 |
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ SUBROUTINE process_rivers_data( l_use_direction, rivers, rivers_data )
!----------------------------------------------------------------------------
IF ( l_shift_x .OR. l_reverse_y ) THEN
CALL remap_ancil_control( nx_rivers, ny_rivers, rivers_dx, l_shift_x, &
l_reverse_y, rivers )
l_reverse_y, rivers, l_use_land_fraction )
END IF

!----------------------------------------------------------------------------
Expand Down Expand Up @@ -938,7 +938,7 @@ END SUBROUTINE process_rivers_coords
!##############################################################################

SUBROUTINE remap_ancil_control( nx_rivers, ny_rivers, rivers_dx, l_shift_x, &
l_reverse_y, rivers )
l_reverse_y, rivers, l_use_land_fraction )

!------------------------------------------------------------------------------
! Description:
Expand Down Expand Up @@ -967,9 +967,11 @@ SUBROUTINE remap_ancil_control( nx_rivers, ny_rivers, rivers_dx, l_shift_x, &
l_shift_x, &
! Flag indicating that a cyclic shift is applied in the x direction to
! river ancillaries. This can be TRUE only if the coordinate is longitude.
l_reverse_y
l_reverse_y, &
! Flag indicating if the order in the y direction of ancillary fields is
! to be reversed so that the coordinate is monotonically increasing.
l_use_land_fraction
! Flag indicating that we are using land fractions

!------------------------------------------------------------------------------
! Array arguments with INTENT(IN)
Expand Down Expand Up @@ -998,6 +1000,14 @@ SUBROUTINE remap_ancil_control( nx_rivers, ny_rivers, rivers_dx, l_shift_x, &
var(ivar), rivers )
END DO

!------------------------------------------------------------------------------
! Deal with the land fraction field
!------------------------------------------------------------------------------
IF ( l_use_land_fraction ) THEN
CALL remap_ancil( nx_rivers, ny_rivers, rivers_dx, l_shift_x, l_reverse_y, &
'land_fraction_2d', rivers )
END IF

!------------------------------------------------------------------------------
! Having used the river coordinates to remap all the required fields, we now
! change the coordinates themselves. This stage must be done after all other
Expand Down