I am going CRAZY for a solution to this problem! Hopefully these outputs are of some help to you, however if not, please specify what more you would like and I can attempt to do it!
To further elaborate on the problem described above. The Segmentation Error occurs when j =9,10,11 but ONLY after the sub-routine is called. There is some kind of error going back to the main program when j = 9, 10, or 11. If the subroutine is NOT called while j=9,10,11 the program will finish, however if the subroutine is called while j is any of those values, I get a segmentation fault. Hopefully this can point out the problem?
CODE: www.derekjohansen.com/code/bloodtest_WRITES.f95
SUCCESS RUN: www.derekjohansen.com/code/successful_run.txt
To further elaborate on the problem described above. The Segmentation Error occurs when j =9,10,11 but ONLY after the sub-routine is called. There is some kind of error going back to the main program when j = 9, 10, or 11. If the subroutine is NOT called while j=9,10,11 the program will finish, however if the subroutine is called while j is any of those values, I get a segmentation fault. Hopefully this can point out the problem?
CODE: www.derekjohansen.com/code/bloodtest_WRITES.f95
SUCCESS RUN: www.derekjohansen.com/code/successful_run.txt