[test][gridcreator] convert parallel output to sequential vtk files
The distribution of a grid over several cores can be system-dependent, rendering the direct comparison of resulting parallel vtk files impossible. To enable a comparison, convert the parallel files into sequential ones in the fuzzycompare Python script. With this approach, it is possible to compare the parallel output against the sequential one. Adapt the gridcreator tests correspondingly. Concerning the converted vtk files, a few difficulties had to be handled: * The files usually have duplicated vertices at the process borders. Eliminate the duplicated entries. * The files can have an empty `PointData` section yielding to problems since the number of children differs. Eliminate the empty section from the files. * The attributes may be different for each node: the `NumberOfComponents` isn't stated explicity if it is equal to `1`. On the other hand, the minimum and maximum values are provided which is not the case for the original vtk output. Eliminate the check of the attributes if a conversion from pvd has happened. Enhance the gridcreator tests using boundary markers with an additional synchronization step for those markers in the parallel regime.
parent
2ca6f899
No related branches found
No related tags found
Showing
- bin/testing/fuzzycomparevtu.py 158 additions, 17 deletionsbin/testing/fuzzycomparevtu.py
- test/io/gridcreator/CMakeLists.txt 26 additions, 34 deletionstest/io/gridcreator/CMakeLists.txt
- test/io/gridcreator/gridcreatortests.hh 78 additions, 0 deletionstest/io/gridcreator/gridcreatortests.hh
- test/references/bifurcation_alu-reference-parallel.vtu 0 additions, 912 deletionstest/references/bifurcation_alu-reference-parallel.vtu
- test/references/bifurcation_ug-reference-parallel.vtu 0 additions, 889 deletionstest/references/bifurcation_ug-reference-parallel.vtu
- test/references/bifurcation_ug-reference-refined-parallel.vtu 0 additions, 6671 deletions.../references/bifurcation_ug-reference-refined-parallel.vtu
- test/references/fracture_alu-reference-parallel.vtu 0 additions, 2072 deletionstest/references/fracture_alu-reference-parallel.vtu
- test/references/fracture_alu-reference-refined-parallel.vtu 0 additions, 6031 deletionstest/references/fracture_alu-reference-refined-parallel.vtu
- test/references/fracture_ug-reference-parallel.vtu 0 additions, 2064 deletionstest/references/fracture_ug-reference-parallel.vtu
- test/references/fracture_ug-reference-refined-parallel.vtu 0 additions, 8146 deletionstest/references/fracture_ug-reference-refined-parallel.vtu
- test/references/gridcreator-co2_alu-reference-parallel-refined.vtu 0 additions, 5403 deletions...rences/gridcreator-co2_alu-reference-parallel-refined.vtu
- test/references/gridcreator-co2_alu-reference-parallel.vtu 0 additions, 2660 deletionstest/references/gridcreator-co2_alu-reference-parallel.vtu
- test/references/gridcreator-co2_ug-reference-parallel-refined.vtu 0 additions, 6799 deletions...erences/gridcreator-co2_ug-reference-parallel-refined.vtu
- test/references/gridcreator-co2_ug-reference-parallel.vtu 0 additions, 1731 deletionstest/references/gridcreator-co2_ug-reference-parallel.vtu
Loading
Please register or sign in to comment