Correction on collection file
The extension of the collection file has to be .pvd so that ParaView properly reads it.
This commit is contained in:
parent
aca84d6312
commit
ceab516a5b
1 changed files with 3 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ MODULE moduleMeshOutputVTK
|
|||
WRITE(*, "(6X,A15,A)") "Creating file: ", fileName
|
||||
OPEN (fileID, file = path // folder // '/' // fileName)
|
||||
|
||||
fileNameCollection = 'OUTPUT_Collection_' // species(i)%obj%name // '.vtu'
|
||||
fileNameCollection = 'OUTPUT_Collection_' // species(i)%obj%name // '.pvd'
|
||||
IF (t == tInitial) THEN
|
||||
!Create collection file
|
||||
WRITE(*, "(6X,A15,A)") "Creating file: ", fileNameCollection
|
||||
|
|
@ -192,9 +192,11 @@ MODULE moduleMeshOutputVTK
|
|||
|
||||
END IF
|
||||
|
||||
!Write iteration file in collection
|
||||
OPEN (fileID + 1, file = path // folder // '/' // fileNameCollection, ACCESS='APPEND')
|
||||
WRITE(fileID + 1, "(4X, A, ES20.6E3, A, A, A)"), '<DataSet timestep="', t*ti_ref,'" file="', fileName,'"/>'
|
||||
|
||||
!Close collection file
|
||||
IF (t == tFinal) THEN
|
||||
WRITE (fileID + 1, "(2X, A)") '</Collection>'
|
||||
WRITE (fileID + 1, "(A)") '</VTKFile>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue