Skip to content

Commit

Permalink
rm whitespace and fix missed compile errors in time_interp
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored and rem1776 committed Jun 3, 2024
1 parent 5f83a86 commit 5d04cfd
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions horiz_interp/include/horiz_interp_conserve.inc
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ subroutine HORIZ_INTERP_CONSERVE_NEW_1DX1D_ ( Interp, lon_in, lat_in, lon_out, l
!-----------------------------------------------------------------------

Interp% HI_KIND_TYPE_ % is_allocated = .true.
Interp% interp_method = CONSERVE

end subroutine HORIZ_INTERP_CONSERVE_NEW_1DX1D_

Expand Down Expand Up @@ -387,7 +388,7 @@ subroutine HORIZ_INTERP_CONSERVE_NEW_1DX1D_ ( Interp, lon_in, lat_in, lon_out, l
deallocate(i_src, j_src, i_dst, j_dst, xgrid_area, dst_area )

Interp% HI_KIND_TYPE_ % is_allocated = .true.
Interp% interp_method = CONSERVE
Interp% interp_method = CONSERVE

end subroutine HORIZ_INTERP_CONSERVE_NEW_1DX2D_

Expand Down Expand Up @@ -499,7 +500,7 @@ subroutine HORIZ_INTERP_CONSERVE_NEW_1DX1D_ ( Interp, lon_in, lat_in, lon_out, l
deallocate(i_src, j_src, i_dst, j_dst, xgrid_area, dst_area)

Interp% HI_KIND_TYPE_ % is_allocated = .true.
Interp% interp_method = CONSERVE
Interp% interp_method = CONSERVE

end subroutine HORIZ_INTERP_CONSERVE_NEW_2DX1D_

Expand Down Expand Up @@ -609,7 +610,7 @@ subroutine HORIZ_INTERP_CONSERVE_NEW_1DX1D_ ( Interp, lon_in, lat_in, lon_out, l
deallocate(i_src, j_src, i_dst, j_dst, xgrid_area, dst_area )

Interp% HI_KIND_TYPE_ % is_allocated = .true.
Interp% interp_method = CONSERVE
Interp% interp_method = CONSERVE

end subroutine HORIZ_INTERP_CONSERVE_NEW_2DX2D_

Expand Down
2 changes: 1 addition & 1 deletion horiz_interp/include/horiz_interp_spherical.inc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
Interp%nlon_src = map_src_xsize; Interp%nlat_src = map_src_ysize
Interp%nlon_dst = map_dst_xsize; Interp%nlat_dst = map_dst_ysize
Interp% HI_KIND_TYPE_ % is_allocated = .true.
Interp% interp_method = SPHERICA
Interp% interp_method = SPHERICA
return
Expand Down
4 changes: 2 additions & 2 deletions test_fms/horiz_interp/test_horiz_interp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ subroutine test_assignment()
call horiz_interp_del(Interp_new1)
call horiz_interp_del(Interp_new2)
call horiz_interp_del(Interp_cp)
! test deletion after direct calls
! test deletion after direct calls
call horiz_interp_conserve_new(Interp_new1, lon_in_1d, lat_in_1d, lon_out_1d, lat_out_1d)
call horiz_interp_del(Interp_new1)
call horiz_interp_conserve_new(Interp_new1, lon_in_1d, lat_in_1d, lon_out_2d, lat_out_2d)
Expand Down Expand Up @@ -1102,7 +1102,7 @@ subroutine test_assignment()
call horiz_interp_del(Interp_new1)
call horiz_interp_del(Interp_new2)
call horiz_interp_del(Interp_cp)
! test deletion after direct calls
! test deletion after direct calls
! this set up is usually done within horiz_interp_new
nlon_in = size(lon_in_1d(:))-1; nlat_in = size(lat_in_1d(:))-1
nlon_out = size(lon_out_1d(:))-1; nlat_out = size(lat_out_1d(:))-1
Expand Down
4 changes: 2 additions & 2 deletions time_interp/include/time_interp_external2.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
real(FMS_TI_KIND_), dimension(:,:), intent(inout) :: data_in
integer, intent(in), optional :: interp
logical, intent(in), optional :: verbose
type(horiz_interp_type),intent(in), optional :: horz_interp
type(horiz_interp_type),intent(inout), optional :: horz_interp
logical, dimension(:,:), intent(out), optional :: mask_out !< set to true where output data is valid
integer, intent(in), optional :: is_in, ie_in, js_in, je_in
integer, intent(in), optional :: window_id
Expand Down Expand Up @@ -61,7 +61,7 @@
real(FMS_TI_KIND_), dimension(:,:,:), intent(inout) :: time_data !< global or local data array
integer, intent(in), optional :: interp
logical, intent(in), optional :: verbose !< flag for debugging
type(horiz_interp_type), intent(in), optional :: horz_interp
type(horiz_interp_type), intent(inout), optional :: horz_interp
logical, dimension(:,:,:), intent(out), optional :: mask_out !< set to true where output data is valid
integer, intent(in), optional :: is_in, ie_in, js_in, je_in
integer, intent(in), optional :: window_id
Expand Down
4 changes: 2 additions & 2 deletions time_interp/include/time_interp_external2_bridge.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
real(FMS_TI_KIND_), dimension(:,:), intent(inout) :: data_in !< global or local data array
integer, intent(in), optional :: interp !< hardcoded to linear
logical, intent(in), optional :: verbose !< flag for debugging
type(horiz_interp_type),intent(in), optional :: horz_interp !< horizontal interpolation type
type(horiz_interp_type),intent(inout), optional :: horz_interp !< horizontal interpolation type
logical, dimension(:,:), intent(out), optional :: mask_out !< set to true where output data is valid
integer, intent(in), optional :: is_in, ie_in, js_in, je_in !< horizontal indices for load_record
integer, intent(in), optional :: window_id !< harcoded to 1 in load_record
Expand Down Expand Up @@ -60,7 +60,7 @@
real(FMS_TI_KIND_), dimension(:,:,:), intent(inout) :: time_data !< global or local data array
integer, intent(in), optional :: interp !< hardcoded to linear
logical, intent(in), optional :: verbose !< flag for debugging
type(horiz_interp_type), intent(in), optional :: horz_interp !< horizontal interpolation type
type(horiz_interp_type), intent(inout), optional :: horz_interp !< horizontal interpolation type
logical, dimension(:,:,:), intent(out), optional :: mask_out !< set to true where output data is valid
integer, intent(in), optional :: is_in, ie_in !< x horizontal indices for load_record
integer, intent(in), optional :: js_in, je_in !< y horizontal indices for load_record
Expand Down
2 changes: 1 addition & 1 deletion time_interp/time_interp_external2.F90
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ end subroutine set_time_modulo
subroutine load_record(field, rec, interp, is_in, ie_in, js_in, je_in, window_id_in)
type(ext_fieldtype), intent(inout) :: field
integer , intent(in) :: rec ! record number
type(horiz_interp_type), intent(in), optional :: interp
type(horiz_interp_type), intent(inout), optional :: interp
integer, intent(in), optional :: is_in, ie_in, js_in, je_in
integer, intent(in), optional :: window_id_in

Expand Down

0 comments on commit 5d04cfd

Please sign in to comment.