Skip to content
Snippets Groups Projects
Commit 99ba94fc authored by Martin Schönherr's avatar Martin Schönherr :speech_balloon:
Browse files

Merge branch 'develop' into 'develop'

Fix FileWriter for .pvtu files

See merge request irmb/VirtualFluids_dev!94
parents 7d9867af 91018628
No related branches found
No related tags found
1 merge request!94Fix FileWriter for .pvtu files
......@@ -15,7 +15,7 @@ To contribute use a merge request as follows:
- Run the tests.
- Write or adapt tests as needed.
- Add or change the documentation as needed.
- Push your branch to your fork on gitea, the remote `origin`.
- Push your branch to your fork on gitlab, the remote `origin`.
- From your fork open a merge request in the correct branch. Target the project's `develop` or `open_source` branch
-
- If we requests further changes just push them to your branch. The MR will be updated automatically.
......
......@@ -92,18 +92,18 @@ void VIRTUALFLUIDS_GPU_EXPORT FileWriter::writeCollectionFile(std::shared_ptr<Pa
file.open( filename + ".pvtu" );
//////////////////////////////////////////////////////////////////////////
file << "<VTKFile type=\"PUnstructuredGrid\" version=\"1.0\" byte_order=\"LittleEndian\" header_type=\"UInt64\">" << std::endl;
file << "<?xml version=\"1.0\"?>" << std::endl;
file << "<VTKFile type=\"PUnstructuredGrid\" version=\"0.1\" byte_order=\"LittleEndian\">" << std::endl;
file << " <PUnstructuredGrid GhostLevel=\"1\">" << std::endl;
file << " <PPointData>" << std::endl;
file << " <DataArray type=\"Float32\" Name=\"press\" /> " << std::endl;
file << " <DataArray type=\"Float32\" Name=\"rho\" /> " << std::endl;
file << " <DataArray type=\"Float32\" Name=\"vx1\" /> " << std::endl;
file << " <DataArray type=\"Float32\" Name=\"vx2\" /> " << std::endl;
file << " <DataArray type=\"Float32\" Name=\"vx3\" /> " << std::endl;
file << " <DataArray type=\"Float32\" Name=\"geo\" /> " << std::endl;
if( para->getDiffOn() ) file << " <DataArray type=\"Float32\" Name=\"conc\" /> " << std::endl;
file << " <PDataArray type=\"Float64\" Name=\"press\" /> " << std::endl;
file << " <PDataArray type=\"Float64\" Name=\"rho\" /> " << std::endl;
file << " <PDataArray type=\"Float64\" Name=\"vx1\" /> " << std::endl;
file << " <PDataArray type=\"Float64\" Name=\"vx2\" /> " << std::endl;
file << " <PDataArray type=\"Float64\" Name=\"vx3\" /> " << std::endl;
file << " <PDataArray type=\"Float64\" Name=\"geo\" /> " << std::endl;
if( para->getDiffOn() ) file << " <PDataArray type=\"Float64\" Name=\"conc\" /> " << std::endl;
file << " </PPointData>" << std::endl;
file << " <PPoints>" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment