where (ltest(1:nx,1:ny,1:nz)) a(1:nx,1:ny,1:nz) = b(1:nx,1:ny,1:nz) +
c(1:nx,1:ny,1:nz)
is the only way to do it. The logical array expression and the array
variables must all be conformable (of the same rank and shape). See also
"Fortran 90/95 Explained", section 6.8.
Regards,
Mike Metcalf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|