55 REAL(RFREAL),
INTENT(IN) :: xyz(3,3)
56 REAL(RFREAL),
INTENT(OUT) :: fcenx, fceny, fcenz
60 REAL(RFREAL),
PARAMETER :: thrd = 1.0_rfreal/3.0_rfreal
64 fcenx = thrd*(xyz(1,1) + xyz(1,2) + xyz(1,3))
65 fceny = thrd*(xyz(2,1) + xyz(2,2) + xyz(2,3))
66 fcenz = thrd*(xyz(3,1) + xyz(3,2) + xyz(3,3))
81 REAL(RFREAL),
INTENT(IN) :: xyz(3,4)
82 REAL(RFREAL),
INTENT(OUT) :: fcenx, fceny, fcenz
88 fcenx = 0.25_rfreal*(xyz(1,1) + xyz(1,2) + xyz(1,3) + xyz(1,4))
89 fceny = 0.25_rfreal*(xyz(2,1) + xyz(2,2) + xyz(2,3) + xyz(2,4))
90 fcenz = 0.25_rfreal*(xyz(3,1) + xyz(3,2) + xyz(3,3) + xyz(3,4))
subroutine facecentroidtria(xyz, fCenX, fCenY, fCenZ)
subroutine facecentroidquad(xyz, fCenX, fCenY, fCenZ)