AGRIF
Adaptive Grid Refinement In Fortran
agrif_user_variables Module Reference

Module Agrif_User_Variables. More...

Functions/Subroutines

subroutine agrif_declare_variable (posvar, firstpoint, raf, lb, ub, varid, torestore)
 This subroutine is used to declare a profile (new variable) which will be used for interpolation/update. More...
 

Detailed Description

Module Agrif_User_Variables.

This module contains a procedure which will help to define a new variable which will be used for interpolation/update.

Function/Subroutine Documentation

subroutine agrif_user_variables::agrif_declare_variable ( integer, dimension(:), intent(in)  posvar,
integer, dimension(:), intent(in)  firstpoint,
character(1), dimension(:), intent(in)  raf,
integer, dimension(:), intent(in)  lb,
integer, dimension(:), intent(in)  ub,
integer, intent(out)  varid,
logical, intent(in), optional  torestore 
)

This subroutine is used to declare a profile (new variable) which will be used for interpolation/update.

Parameters
[in]posvarposition of the variable on the cell (1 for the border of the edge, 2 for the center)
[in]firstpointindex of the first point in the real domain
[in]rafArray indicating the type of dimension (space or not) for each of them
[in]lbLower bounds of the array
[in]ubUpper bounds of the array
[out]varidId number of the newly created variable
[in]torestoreIndicates if the array restore is used