#include "implicit_f.inc"
Go to the source code of this file.
◆ func2d_deintersect()
| subroutine func2d_deintersect |
( |
integer, intent(in) | npt, |
|
|
integer, intent(in) | nfunc, |
|
|
intent(inout) | yy ) |
Definition at line 28 of file func2d_deintersect.F.
29
30
31
32#include "implicit_f.inc"
33
34 INTEGER ,INTENT(IN) :: NPT
35 INTEGER ,INTENT(IN) :: NFUNC
36 my_real ,
DIMENSION(NPT,NFUNC) ,
INTENT(INOUT):: yy
37
38
39
40 INTEGER :: IPT,IFUNC,I1,I2,J1,J2
43 my_real ,
PARAMETER :: eps = 1.0e-1
44
45
46
47
48 ytmp(:) = zero
49 IF (nfunc > 1) THEN
50 DO ifunc = 2,nfunc
51 j1 = ifunc - 1
52 j2 = ifunc
53 ytmp(1) = yy(1,j2)
54 DO ipt = 2,npt
55 i1 = ipt - 1
56 i2 = ipt
57
58 t1 = yy(i1,j1)
59 y1 = yy(i1,j2)
60 t2 = yy(i2,j1)
61 y2 = yy(i2,j2)
62 dy1 = y1 - t1
63 dy2 = y2 - t2
64 IF (dy1*dy2 < 0) THEN
65
66 y2 = t2 *(one + eps)
67 yy(i2,j2) = y2
68 ENDIF
69 ytmp(ipt) = y2
70 END DO
71 yy(1:npt,j2) = ytmp(1:npt)
72 END DO
73 END IF
74
75 RETURN