Skip to content

Commit

Permalink
undo time_interp changes, and change bicubic CPP name to be more accu…
Browse files Browse the repository at this point in the history
…rate
  • Loading branch information
rem1776 authored and rem1776 committed Jun 3, 2024
1 parent 5d04cfd commit 2d94c14
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions horiz_interp/include/horiz_interp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
mask_in, mask_out, missing_value, missing_permit, &
err_msg, new_missing_handle )
!-----------------------------------------------------------------------
type (horiz_interp_type), intent(inout) :: Interp
type (horiz_interp_type), intent(in) :: Interp
real(FMS_HI_KIND_), intent(in), dimension(:,:) :: data_in
real(FMS_HI_KIND_), intent(out), dimension(:,:) :: data_out
integer, intent(in), optional :: verbose
Expand Down Expand Up @@ -477,7 +477,7 @@
! uses 3d arrays for data and mask
! this allows for multiple interpolations with one call
!-----------------------------------------------------------------------
type (horiz_interp_type), intent(inout) :: Interp
type (horiz_interp_type), intent(in) :: Interp
real(FMS_HI_KIND_), intent(in), dimension(:,:,:) :: data_in
real(FMS_HI_KIND_), intent(out), dimension(:,:,:) :: data_out
integer, intent(in), optional :: verbose
Expand Down
8 changes: 3 additions & 5 deletions horiz_interp/include/horiz_interp_bicubic.inc
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@
end subroutine HORIZ_INTERP_BICUBIC_NEW_1D_
!> @brief Perform bicubic horizontal interpolation
subroutine HORIZ_INTERP_BICUBIC_NEW_( Interp, data_in, data_out, verbose, mask_in, mask_out, missing_value, &
subroutine HORIZ_INTERP_BICUBIC_( Interp, data_in, data_out, verbose, mask_in, mask_out, missing_value, &
& missing_permit)
type (horiz_interp_type), intent(inout) :: Interp
type (horiz_interp_type), intent(in) :: Interp
real(FMS_HI_KIND_), intent(in), dimension(:,:) :: data_in
real(FMS_HI_KIND_), intent(out), dimension(:,:) :: data_out
integer, intent(in), optional :: verbose
Expand Down Expand Up @@ -430,10 +430,8 @@
!! dff_y(i,j) = val2
enddo
enddo
Interp% HI_KIND_TYPE_ % is_allocated = .true.
Interp%interp_method = BICUBIC
return
end subroutine HORIZ_INTERP_BICUBIC_NEW_
end subroutine HORIZ_INTERP_BICUBIC_
!---------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions horiz_interp/include/horiz_interp_bicubic_r4.fh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#undef HORIZ_INTERP_BICUBIC_NEW_1D_
#define HORIZ_INTERP_BICUBIC_NEW_1D_ horiz_interp_bicubic_new_1d_r4

#undef HORIZ_INTERP_BICUBIC_NEW_
#define HORIZ_INTERP_BICUBIC_NEW_ horiz_interp_bicubic_r4
#undef HORIZ_INTERP_BICUBIC_
#define HORIZ_INTERP_BICUBIC_ horiz_interp_bicubic_r4

#undef BCUINT_
#define BCUINT_ bcuint_r4
Expand Down
4 changes: 2 additions & 2 deletions horiz_interp/include/horiz_interp_bicubic_r8.fh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#undef HORIZ_INTERP_BICUBIC_NEW_1D_
#define HORIZ_INTERP_BICUBIC_NEW_1D_ horiz_interp_bicubic_new_1d_r8

#undef HORIZ_INTERP_BICUBIC_NEW_
#define HORIZ_INTERP_BICUBIC_NEW_ horiz_interp_bicubic_r8
#undef HORIZ_INTERP_BICUBIC_
#define HORIZ_INTERP_BICUBIC_ horiz_interp_bicubic_r8

#undef BCUINT_
#define BCUINT_ bcuint_r8
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(inout), optional :: horz_interp
type(horiz_interp_type),intent(in), 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(inout), optional :: horz_interp
type(horiz_interp_type), intent(in), 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(inout), optional :: horz_interp !< horizontal interpolation type
type(horiz_interp_type),intent(in), 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(inout), optional :: horz_interp !< horizontal interpolation type
type(horiz_interp_type), intent(in), 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(inout), optional :: interp
type(horiz_interp_type), intent(in), 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 2d94c14

Please sign in to comment.