I have a module variable
character*(128) :: cellmlfile
which is read from a text file, within subroutine reader. I set the first space (at position 49) to NUL, because this will be used later as an argument in a call to a C function. Just before returning from the subroutine ichar(cellmlfile(49:49)) = 0. In the calling subroutine, the value immediately on returning from subroutine reader is set back to 32 (the whole string is exactly what was originally read.)
What could cause this? I am using IVF 11.0.075.