The TELEMAC-MASCARET system  trunk
anti_dirac.f
Go to the documentation of this file.
1 ! ************************************
2  DOUBLE PRECISION FUNCTION anti_dirac
3 ! ************************************
4 !
5  &( x,eps )
6 !
7 !***********************************************************************
8 ! TELEMAC2D V7P1 29/09/2015
9 !***********************************************************************
10 !
11 !brief GIVES 0 IF (ABS(X)<EPS) AND 1 ELSWHERE
12 !+
13 !
14 !history R.ATA (LNHE)
15 !+ 29/09/2015
16 !+ V7P1
17 !+
18 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 !| X |-->| INPUT VARIABLE
20 !| EPS |-->| TOLERENCE
21 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 !
23  USE bief, ex_anti_dirac => anti_dirac
25 !
26  IMPLICIT NONE
27 !
28 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
29 !
30  DOUBLE PRECISION, INTENT(IN) :: X,EPS
31 !
32 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
33 !
34  IF(abs(x).LT.eps) THEN
35  anti_dirac=0.d0
36  ELSE
37  anti_dirac=1.0d0
38  ENDIF
39 !
40 !-----------------------------------------------------------------------
41 !
42  RETURN
43  END
double precision function anti_dirac(X, EPS)
Definition: anti_dirac.f:7
Definition: bief.f:3