MOM6
regrid_interp.F90 File Reference

Go to the source code of this file.

Data Types

type  regrid_interp::interp_cs_type
 

Modules

module  regrid_interp
 

Functions/Subroutines

subroutine, public regrid_interp::regridding_set_ppolys (CS, densities, n0, h0, ppoly0_E, ppoly0_S, ppoly0_coefficients, degree)
 Given the set of target values and cell densities, this routine builds an interpolated profile for the densities within each grid cell. It may happen that, given a high-order interpolator, the number of available layers is insufficient (e.g., there are two available layers for a third-order PPM ih4 scheme). In these cases, we resort to the simplest continuous linear scheme (P1M h2). More...
 
subroutine, public regrid_interp::interpolate_grid (n0, h0, x0, ppoly0_E, ppoly0_coefficients, target_values, degree, n1, h1, x1)
 Given target values (e.g., density), build new grid based on polynomial. More...
 
subroutine, public regrid_interp::build_and_interpolate_grid (CS, densities, n0, h0, x0, target_values, n1, h1, x1)
 
real function regrid_interp::get_polynomial_coordinate (N, h, x_g, ppoly_E, ppoly_coefficients, target_value, degree)
 Given a target value, find corresponding coordinate for given polynomial. More...
 
integer function regrid_interp::interpolation_scheme (interp_scheme)
 Numeric value of interpolation_scheme corresponding to scheme name. More...
 
subroutine, public regrid_interp::set_interp_scheme (CS, interp_scheme)
 
subroutine, public regrid_interp::set_interp_extrap (CS, extrapolation)
 

Variables

integer, parameter regrid_interp::interpolation_p1m_h2 = 0
 O(h^2) More...
 
integer, parameter regrid_interp::interpolation_p1m_h4 = 1
 O(h^2) More...
 
integer, parameter regrid_interp::interpolation_p1m_ih4 = 2
 O(h^2) More...
 
integer, parameter regrid_interp::interpolation_plm = 3
 O(h^2) More...
 
integer, parameter regrid_interp::interpolation_ppm_h4 = 4
 O(h^3) More...
 
integer, parameter regrid_interp::interpolation_ppm_ih4 = 5
 O(h^3) More...
 
integer, parameter regrid_interp::interpolation_p3m_ih4ih3 = 6
 O(h^4) More...
 
integer, parameter regrid_interp::interpolation_p3m_ih6ih5 = 7
 O(h^4) More...
 
integer, parameter regrid_interp::interpolation_pqm_ih4ih3 = 8
 O(h^4) More...
 
integer, parameter regrid_interp::interpolation_pqm_ih6ih5 = 9
 O(h^5) More...
 
integer, parameter regrid_interp::degree_1 = 1
 List of interpolant degrees. More...
 
integer, parameter regrid_interp::degree_2 = 2
 
integer, parameter regrid_interp::degree_3 = 3
 
integer, parameter regrid_interp::degree_4 = 4
 
integer, parameter, public regrid_interp::degree_max = 5
 
real, parameter, public regrid_interp::nr_offset = 1e-6
 When the N-R algorithm produces an estimate that lies outside [0,1], the estimate is set to be equal to the boundary location, 0 or 1, plus or minus an offset, respectively, when the derivative is zero at the boundary. More...
 
integer, parameter, public regrid_interp::nr_iterations = 8
 Maximum number of Newton-Raphson iterations. Newton-Raphson iterations are used to build the new grid by finding the coordinates associated with target densities and interpolations of degree larger than 1. More...
 
real, parameter, public regrid_interp::nr_tolerance = 1e-12
 Tolerance for Newton-Raphson iterations (stop when increment falls below this) More...