Hello,
I have a question regarding the use of dragfo.f in parallel, please correct me if I am wrong.
To make the dragfo.f subroutine work in TELEMAC, the following code was added:
IF(NCSIZE.GT.0) AIRE=P_DSUM(AIRE)
However, taking a look at:
AIRE=0.D0
DO I=1,BIEF_NBPTS(11,MESH)
!
IF(INPOLY(X(I),Y(I),XSOM,YSOM,NSOM)) THEN
UNORM = SQRT(UN%R(I)**2+VN%R(I)**2)
FUDRAG%R(I) = - 0.5D0 * N * DIAM * CD * UNORM
FVDRAG%R(I) = - 0.5D0 * N * DIAM * CD * UNORM
AIRE = AIRE + T1%R(I)
ENDIF
!
ENDDO
rises some questions for me. The Mesh object, at least in my case represents one part of the decomposed mesh, not the full one. Now checking if the coordinates are inside of the polygon allows to check only for this specific part. In my case the polygon is outside of this specific decomposed domain, and thus TELEMAC never jumps inside of the IF statement.
Any hint is appreciated.
Cheers,
Sebastian