Without knowing more about the set-up it's just a guess to the problem.. it's possible you are running in parallel and Face_201 is not on process 0 (the process that writes to the listing) and so you will never enter the loop.
In your example xfor is the sum of forces, the parrsm sums across all processes, so you need to place after that call, for example:
Code: Select all
if (ineedf.eq.1) then
do ii = 1, ndim
xfor(ii) = 0.d0
enddo
call getfbr('Face_201', nlelt, lstelt)
!==========
do ilelt = 1, nlelt
ifac = lstelt(ilelt)
do ii = 1, ndim
xfor(ii) = xfor(ii) + ra(iforbr + (ifac-1)*ndim + ii-1)
enddo
enddo
if (irangp.ge.0) then
call parrsm(ndim,xfor)
endif
if (irangp.le.0) then
write(nfecra,*)xfor(1),xfor(2),xfor(3)
endif
endif
Try that and if you still have nothing I recommend posting your full usproj and listing which will help determine problems.
Also note this is calculating the global sum in the x,y,z directions, not the moment. The moment requires cross product with the distance vector.
James