AGRIF
Adaptive Grid Refinement In Fortran
agrif_user_interpolation Module Reference

Module Agrif_User_Interpolation. More...

Functions/Subroutines

subroutine agrif_set_bc (tabvarsindic, bcinfsup, Interpolationshouldbemade)
 This subroutine is used to specify the variable we want to interpolate and the boundary location of the current grid we want to interpolate (boundary interpolation). More...
 
subroutine agrif_set_interp (tabvarsindic, interp, interp1, interp2, interp3, interp4)
 This procedure specify the type of interpolation in case of interpolation within the domain. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable. More...
 
subroutine agrif_set_bcinterp (tabvarsindic, interp, interp1, interp2, interp3, interp4, interp11, interp12, interp21, interp22)
 This subroutine is used to indicate the type of interpolation in case of boundary interpolation. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable. More...
 
subroutine agrif_init_variable (tabvarsindic, procname)
 This subroutine is used for interpolation over the whole domain (within the domain and boundaries). It specifies the variable we want to interpolate and define through an input procedure (procname) what we do either on parent or child grid. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable. More...
 
subroutine agrif_bc_variable (tabvarsindic, procname, calledweight)
 This subroutine is used for boundary interpolation. It specifies the variable we want to interpolate and define through an input procedure (procname) what we do either on parent or child grid. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable. More...
 
subroutine agrif_interp_variable (tabvarsindic, procname)
 This subroutine is used for interpolation within the domain. It specifies the variable we want to interpolate and define through an input procedure (procname) what we do either on parent or child grid. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable. More...
 

Detailed Description

Module Agrif_User_Interpolation.

This module contains procedures used by AGRIF users to do an interpolation either within the domain or at boundary or on the whole domain.

Function/Subroutine Documentation

subroutine agrif_user_interpolation::agrif_set_bc ( integer, intent(in)  tabvarsindic,
integer, dimension(2), intent(in)  bcinfsup,
logical, intent(in), optional  Interpolationshouldbemade 
)

This subroutine is used to specify the variable we want to interpolate and the boundary location of the current grid we want to interpolate (boundary interpolation).

Parameters
[in]tabvarsindicindex of the variable in tabvars
[in]bcinfsuplocation
[in]interpolationshouldbemadeinterpolation should be made
subroutine agrif_user_interpolation::agrif_set_interp ( integer, intent(in)  tabvarsindic,
integer, intent(in), optional  interp,
integer, intent(in), optional  interp1,
integer, intent(in), optional  interp2,
integer, intent(in), optional  interp3,
integer, intent(in), optional  interp4 
)

This procedure specify the type of interpolation in case of interpolation within the domain. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable.

Parameters
[in]tabvarsindicindex of the variable in tabvars
[in]interp4The type of interpolation
subroutine agrif_user_interpolation::agrif_set_bcinterp ( integer, intent(in)  tabvarsindic,
integer, intent(in), optional  interp,
integer, intent(in), optional  interp1,
integer, intent(in), optional  interp2,
integer, intent(in), optional  interp3,
integer, intent(in), optional  interp4,
integer, intent(in), optional  interp11,
integer, intent(in), optional  interp12,
integer, intent(in), optional  interp21,
integer, intent(in), optional  interp22 
)

This subroutine is used to indicate the type of interpolation in case of boundary interpolation. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable.

Interp1 indicates the type of interpolation in the first dimension Interp21 indicates the first variable of the second dimension

Parameters
[in]tabvarsindicindex of the variable in tabvars
[in]interp4type of interpolation
[in]interp22dimension we want to interpolate
subroutine agrif_user_interpolation::agrif_init_variable ( integer, intent(in)  tabvarsindic,
procedure()  procname 
)

This subroutine is used for interpolation over the whole domain (within the domain and boundaries). It specifies the variable we want to interpolate and define through an input procedure (procname) what we do either on parent or child grid. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable.

Parameters
[in]tabvarsindicindex of the variable in tabvars
procnameData recovery procedure written by users
subroutine agrif_user_interpolation::agrif_bc_variable ( integer, intent(in)  tabvarsindic,
procedure()  procname,
real, intent(in), optional  calledweight 
)

This subroutine is used for boundary interpolation. It specifies the variable we want to interpolate and define through an input procedure (procname) what we do either on parent or child grid. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable.

Parameters
[in]tabvarsindicindex of the variable in tabvars
procnameData recovery procedure written by users
[in]calledweightweight of interpolation
subroutine agrif_user_interpolation::agrif_interp_variable ( integer, intent(in)  tabvarsindic,
procedure()  procname 
)

This subroutine is used for interpolation within the domain. It specifies the variable we want to interpolate and define through an input procedure (procname) what we do either on parent or child grid. The index of the variable we want to interpolate is a profile defined with the subroutine Agrif_Declare_Variable.

Parameters
[in]tabvarsindicindex of the variable in tabvars
procnameData recovery procedure written by users