I have routines to be executed repeatedly by different parts of my program. Because routine variables are publicly declared, so these routines may be put in a subroutine under 'contains' section and be called from any where in the program, or, be put in an isolated part of the program where I can branch to it from any where and at the end of the routine I branch back conditionally to where I came from, based on a pointer value. Sometimes I use branch-and-conditional-branch-back instead of subroutine-call-and-return because the computer hangs, even if it branch back into a 'Do' or 'If' block. And sometimes I do vice versa. I need an explanation why the computer hangs either ways.The computer is i3-PC, operating system is Win 7 (64-bit), the compiler is ifort 11.01.051, and I use MSMPI.
Prof. Dr. Said El Noshokaty