|
[Sponsors] |
Fortran issue (write statement modifying variables??) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 18, 2014, 21:11 |
Fortran issue (write statement modifying variables??)
|
#1 |
Senior Member
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15 |
Hi everyone!
I have been having an issue with my fortran code, which really does not make sense to me. If somebody could give me his opinion, I would greatly appreciate! At one point, my code generates a mistake (a variable = NaN). I used write statements to spot the source of the error. if I use print *, Mbar -> answer: 2.802 if I use print *, Mbar, Cavg -> answer: NaN, 0,354 I did not change anything in the code, but the value of the variable Mbar changed to NaN!!! Why would such a thing happen?? Thank you very much for your help! Joachim |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting environment variables: bash issue | travonz | OpenFOAM Installation | 2 | July 31, 2012 03:17 |
Issue with write interval | haze_1986 | OpenFOAM | 0 | July 30, 2012 02:24 |
Comparison between C/C++ and Fortran? | rick | Main CFD Forum | 45 | September 6, 2011 00:52 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 18:56 |
about USER FORTRAN compiling issue | CXL | CFX | 1 | October 9, 2003 21:00 |