- #1
LlamaLove
- 4
- 1
Hello everyone, I'm trying to solve a BVP that seems to be very sensitive, for which I have to provide a starting guess and hope the program can fix it to find a solution. The program has been tested many times and it is very solid, the only problem should be that I can't find the right guess, so I decided to try all the possible ones.
The program is written in fortran 77 and is essentially a giant for loop , in which there is a bunch of math and then a set of results is given. The results of different iterations are not dependent in any way from those of a previous iteration and if certain results are met then they are saved. Sometimes, when everything works fine, the result is a series of number, but other times the procedure to fix the guess goes mental, meaning that the guess is trash, and the result is a runtime error (domain error in sqrt is usually the reason, but it must be a sqrt hidden in a fortran function because I verified that I always give real positive numbers to my sqrts).
The problem is that when the runtime error is met the program stops, but what I would like it to do is to just go to the next iteration: is there a way to do it? I thought about modifying the library MATHERRQQ, which is the one that tells the program to stop I think, but I can't even find it.
I am using Microsoft Developer Studio 77 to write the code and build it in a windows XP virtual machine on windows 10, but it's executed on Windows 10.
The program is written in fortran 77 and is essentially a giant for loop , in which there is a bunch of math and then a set of results is given. The results of different iterations are not dependent in any way from those of a previous iteration and if certain results are met then they are saved. Sometimes, when everything works fine, the result is a series of number, but other times the procedure to fix the guess goes mental, meaning that the guess is trash, and the result is a runtime error (domain error in sqrt is usually the reason, but it must be a sqrt hidden in a fortran function because I verified that I always give real positive numbers to my sqrts).
The problem is that when the runtime error is met the program stops, but what I would like it to do is to just go to the next iteration: is there a way to do it? I thought about modifying the library MATHERRQQ, which is the one that tells the program to stop I think, but I can't even find it.
I am using Microsoft Developer Studio 77 to write the code and build it in a windows XP virtual machine on windows 10, but it's executed on Windows 10.