Oasis3 4.0.2
qlgaus.f
Go to the documentation of this file.
00001       FUNCTION qlgaus (pu, pvar)
00002 C****
00003 C               ******************************
00004 C               * OASIS FUNCTION  -  LEVEL 3 *
00005 C               * --------------     ------- *
00006 C               ******************************
00007 C
00008 C**** *qlgaus* - Gaussian weight function
00009 C
00010 C
00011 C     Purpose: 
00012 C     -------
00013 C     To calculate exp [-.5 * u / pvar]
00014 C
00015 C
00016 C**   Interface:
00017 C     ---------
00018 C       *zz=*   *qlgaus(pu, pvar)*
00019 C
00020 C     Input:
00021 C     -----   
00022 C                pu   : the distance squared
00023 C                pvar :  the gaussian variance
00024 C
00025 C     Output:
00026 C     ------
00027 C     None
00028 C
00029 C     Workspace:
00030 C     ---------
00031 C     None
00032 C
00033 C     External:
00034 C     --------
00035 C     None
00036 C
00037 C     References:
00038 C     ----------
00039 C     O. Thual, Simple ocean-atmosphere interpolation. 
00040 C               Part A: The method, EPICOA 0629 (1992)
00041 C               Part B: Software implementation, EPICOA 0630 (1992)
00042 C     See also OASIS manual (1995)
00043 C
00044 C     History:
00045 C     -------
00046 C       Version   Programmer     Date      Description
00047 C       -------   ----------     ----      ----------- 
00048 C       1.1       O. Thual       93/04/15  created 
00049 C       2.0       L. Terray      95/10/01  modified: new structure
00050 C
00051 C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
00052 C
00053 C* ---------------------------- Include files ---------------------------
00054 C
00055       USE mod_kinds_oasis
00056       USE mod_unit
00057 C
00058       REAL (kind=ip_realwp_p) :: qlgaus
00059 C
00060 C* ---------------------------- Poema verses ----------------------------
00061 C
00062 C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
00063 C
00064 C*    1. Calculation
00065 C        -----------
00066 C
00067       qlgaus = exp(-.5*pu/pvar)
00068 C
00069 C* End of FUNCTION
00070 C
00071       RETURN 
00072       END
 All Data Structures Namespaces Files Functions Variables Defines