41 module horiz_interp_bicubic_mod
46 use constants_mod,
only: pi
47 use platform_mod,
only: r4_kind, r8_kind
68 module procedure horiz_interp_bicubic_new_1d_r8
69 module procedure horiz_interp_bicubic_new_1d_s_r8
70 module procedure horiz_interp_bicubic_new_1d_r4
71 module procedure horiz_interp_bicubic_new_1d_s_r4
79 module procedure horiz_interp_bicubic_r4
80 module procedure horiz_interp_bicubic_r8
84 #include<file_version.h>
92 module procedure fill_xy_r4
93 module procedure fill_xy_r8
100 module procedure bcuint_r4
101 module procedure bcuint_r8
108 module procedure bcucof_r4
109 module procedure bcucof_r8
114 module procedure indl_r4
115 module procedure indl_r8
120 module procedure indu_r4
121 module procedure indu_r8
135 tpi = real(2.0_r8_kind*pi, r8_kind)
146 if(interp%horizInterpReals8_type%is_allocated)
then
147 if(
allocated(interp%horizInterpReals8_type%rat_x))
deallocate ( interp%horizInterpReals8_type%rat_x )
148 if(
allocated(interp%horizInterpReals8_type%rat_y))
deallocate ( interp%horizInterpReals8_type%rat_y )
149 if(
allocated(interp%horizInterpReals8_type%lon_in))
deallocate ( interp%horizInterpReals8_type%lon_in )
150 if(
allocated(interp%horizInterpReals8_type%lat_in))
deallocate ( interp%horizInterpReals8_type%lat_in )
151 if(
allocated(interp%horizInterpReals8_type%wti))
deallocate ( interp%horizInterpReals8_type%wti )
152 else if(interp%horizInterpReals4_type%is_allocated)
then
153 if(
allocated(interp%horizInterpReals4_type%rat_x))
deallocate ( interp%horizInterpReals4_type%rat_x )
154 if(
allocated(interp%horizInterpReals4_type%rat_y))
deallocate ( interp%horizInterpReals4_type%rat_y )
155 if(
allocated(interp%horizInterpReals4_type%lon_in))
deallocate ( interp%horizInterpReals4_type%lon_in )
156 if(
allocated(interp%horizInterpReals4_type%lat_in))
deallocate ( interp%horizInterpReals4_type%lat_in )
157 if(
allocated(interp%horizInterpReals4_type%wti))
deallocate ( interp%horizInterpReals4_type%wti )
159 if(
allocated(interp%i_lon) )
deallocate( interp%i_lon )
160 if(
allocated(interp%j_lat) )
deallocate( interp%j_lat )
162 interp%horizInterpReals8_type%is_allocated = .false.
163 interp%horizInterpReals4_type%is_allocated = .false.
167 #include "horiz_interp_bicubic_r4.fh"
168 #include "horiz_interp_bicubic_r8.fh"
170 end module horiz_interp_bicubic_mod
subroutine, public write_version_number(version, tag, unit)
Prints to the log file (or a specified unit) the version id string and tag name.
real(r8_kind) tpi
is 2*PI.
subroutine, public horiz_interp_bicubic_del(Interp)
integer verbose_bicubic
sets the default verbosity level.
logical module_is_initialized
Include variable "version" to be written to log file.
subroutine, public horiz_interp_bicubic_init
Generic interface used internally in bcuint to compute bicubic coefficients when interpolating data f...
Generic interface used internally when interpolating data from source grid to target grid....
Generic interface to horiz_interp_bicubic_* to interpolate data using the weights stored in Interp....
Generic interface used internally in finding neighbors.
Generic interface used internally in finding neighbors.
integer, parameter, public bicubic
is an internally used parameter to mark bicubic interpolation
Datatype holding interpolation weights, mapping indices, and metadata for horizontal interpolation....
integer function stdout()
This function returns the current standard fortran unit numbers for output.
integer function mpp_pe()
Returns processor ID.
Generic interface to horiz_interp_bicubic_new_* to compute interpolation weights and,...