C / Fortran
Posted: Tue Jul 15, 2014 2:06 pm
Hello,
I am performing expansive computations with code_saturne v3.0.0 and I wish to save memory. So I set up code_saturne to write the results files in binary format.
After computation, I usually use a Fortran program to read and post-process the datas in the results files and obtain statistics. And there is a problem to read the binary files with the Fortran program. I found that the problem comes from the different manners to write/read binary files between C and Fortran but I didn't find a way to set a kind of "translator binary C / binary Fortran" (if you see what I mean) when Fortran is reading.
So my question isn't really about code_saturne usage actually. But taking acount that code_saturne is coded in both language, you probably already faced this situation and could help me or give me some tips or related links.
Regards.
Alexis
I am performing expansive computations with code_saturne v3.0.0 and I wish to save memory. So I set up code_saturne to write the results files in binary format.
After computation, I usually use a Fortran program to read and post-process the datas in the results files and obtain statistics. And there is a problem to read the binary files with the Fortran program. I found that the problem comes from the different manners to write/read binary files between C and Fortran but I didn't find a way to set a kind of "translator binary C / binary Fortran" (if you see what I mean) when Fortran is reading.
So my question isn't really about code_saturne usage actually. But taking acount that code_saturne is coded in both language, you probably already faced this situation and could help me or give me some tips or related links.
Regards.
Alexis