Thanks for the tips xwb. Do you know why making those adjustments optimizes the code? I tried the print command you suggested, but it didn't seem to change anything. I am writing a lot of data to files, could that trigger this problem?
Sorry for taking such a long time to respond. Code fragment before and after:
print *, 'check'
dydx(1)=(d_hat/y(1))*(avg_r+y(1)**2*avg_r_4/(pi*d_hat*x))**0.5)
*(1 + 2*B_hat/(3*y(1)))**(-1)*(C_i/C_0 - avg_r_p/avg_r_4)
END SUBROUTINE
The variable of...
Hello. I am getting a very strange error. I am using a Visual Fortran 90 Ver 6.0 compiler and am getting a sqrt domain error, but I know that all the values being input to the square root are positive. I put a print statement before the declaration as a sanity check, and it printed a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.