Hey guys... I am stuck on this problem for days. My code is crashing but I can't understand the reason why.
I realized that the compiled program crashes when it is deallocating the variables, but I don't know how to fix it.
Windows has triggered a breakpoint in Console1.exe.
This may be due to a corruption of the heap, which indicates a bug in Console1.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while Console1.exe has focus.
The output window may have more diagnostic information.
Bellow there is a sample of the code:
Real(8), Allocatable :: u(:,:),v(:,:),p(:,:)
Character(50) :: Nome
End Subroutine PoissonCode
I put the complete code here for further investigation. I also tried to run the code with different versions of GFortran in Windows 7 x64 and Windows XP x86 with no success.
Thank you in advance