55
56 type(CoefficientsType) :: phi_face
57
58 class(CentralDifferenceSchemeType), target :: this
59 integer(I4B), intent(in) :: n
60 integer(I4B), intent(in) :: m
61 integer(I4B), intent(in) :: iposnm
62
63 real(DP) :: lnm, lmn, omega
64 integer(I4B) :: isympos
65
66
67
68 if (this%dis%con%ihc(this%dis%con%jas(iposnm)) == 0) then
69
70 lnm = dhalf * (this%dis%top(n) - this%dis%bot(n))
71 lmn = dhalf * (this%dis%top(m) - this%dis%bot(m))
72 else
73
74
75
76 isympos = this%dis%con%jas(iposnm)
77 if (n < m) then
78 lnm = this%dis%con%cl1(isympos)
79 lmn = this%dis%con%cl2(isympos)
80 else
81 lnm = this%dis%con%cl2(isympos)
82 lmn = this%dis%con%cl1(isympos)
83 end if
84 end if
85
86 omega = lmn / (lnm + lmn)
87
88 phi_face%c_n = omega
89 phi_face%c_m = done - omega
90