- #1
cjm2176
- 8
- 0
Hi all
I am trying to use fortran to write a .pvd file, an example of what one line of such a file should look like is
<DataSet timestep="1.00000E-07" part="0" file="Psb000001.vtu"/>
however with the following code:
gives me the following result:
<DataSet timestep=" 1.00000E-07" part="0" file="Psb000001.vtu
"/>
which happens to result in a bad .pvd file. Is there a way to garuantee that everything gets written on one line? Also, is it possible to get rid of the spaces before 1.00000E-07?
Thanks!
cjm2176
I am trying to use fortran to write a .pvd file, an example of what one line of such a file should look like is
<DataSet timestep="1.00000E-07" part="0" file="Psb000001.vtu"/>
however with the following code:
Code:
write(90,2000) ttim,fname
2000 format('<DataSet timestep="',1pe15.5,'" part="0" file="',
& a,'"/>')
gives me the following result:
<DataSet timestep=" 1.00000E-07" part="0" file="Psb000001.vtu
"/>
which happens to result in a bad .pvd file. Is there a way to garuantee that everything gets written on one line? Also, is it possible to get rid of the spaces before 1.00000E-07?
Thanks!
cjm2176