I need to debug a program that includes forall
blocks. Inside of them are pure
subroutines or functions. In order to temporarily disable the pure
predicate I use the C precompiler as in the following question posed by me:
Gfortran: Treat pure functions as normal functions for debugging purposes?
The problem now is, that if the subroutines or functions inside the forall
block are not pure
I get an error compiling. Is there a possibility to treat these errors
Error: Reference to non-PURE function 'pvkp' at (1) inside a FORALL block
only as warnings or is there maybe an easy possibility to use the C precompiler for turning
forall (i=1:n)
...
end forall
into
do i=1,n
...
end do
Any ideas are appreciated!