I'd like to be able to control the output format when I write an namelist on a file.
I call a compiled code from my fortran code.
This compiled code needs an input file , which is clearly wrote by using namelist. My code has to charge the variables from this input file, works on them and at the end write again on file. What i'd like would be to be able to write with the same original format.
[code/]
file:
&test
A=10, B=20, cavity="second"
G=3
/
[/code]
if one reads the variables and then writes them on file by using namelist, at the end he will find a format that is compiler o machine dipendent and i'm not able to find the same format as before
resut
[code/]
&test
A=10,
B=20,
cavity="second"
G=3, /
[/code]
is there a way that someone know?
Thanks, Albi
I call a compiled code from my fortran code.
This compiled code needs an input file , which is clearly wrote by using namelist. My code has to charge the variables from this input file, works on them and at the end write again on file. What i'd like would be to be able to write with the same original format.
[code/]
file:
&test
A=10, B=20, cavity="second"
G=3
/
[/code]
if one reads the variables and then writes them on file by using namelist, at the end he will find a format that is compiler o machine dipendent and i'm not able to find the same format as before
resut
[code/]
&test
A=10,
B=20,
cavity="second"
G=3, /
[/code]
is there a way that someone know?
Thanks, Albi