saveVTK: Reviewed and changed parts of this function due to several issues.
Confirmed that it's still working using finley/test/python/generate_dumps.py
(manually inserted saveVTK) with and without MPI on 1 and 4 processors.
Changes include:
- removed unnecessary USE_VTK check - we are not using any VTK functions
- fixed writing of Rec9 & Hex27 connectivity data in MPI mode
- fixed some cases where the file was not closed and memory was not freed
- replaced many instances of fprintf by fputs (simple strings)
- some minor optimizations by moving or initializing variables and combining
if-clauses
- got rid of ~300 lines of code and switched to consistent indentation making
the file a bit better readable
|