In inoutcpp_pmmg.c file: Fix bug in snprintf in PMMG_savePvtuMesh and PMMG_savePvtuMesh_and_allData. snprintf cannot support to have input and output filename using the same variable. Use an intermediate filename to overcome this issue.
Fix typo in inoutcpp_pmmg.c file: founded -> found + update regex in accordance in cmake/testing/pmmg_tests.cmake.
For output file at *.pvtu format:
In inoutcpp_pmmg.c file: if the output filename has dots "." in the basename, replace them with dashes "-". Why? In VTK function SetFileName(filename), the first dot "." in the filename is interpreted as the extension start. So, whatever the user specifies after the first dot "." will be ignored by VTK. To overcome this, dots are replaced by dashes.
In parmmg.c file: a warning is displayed to the user if the basename is changed.
In cmake/testing/pmmg_tests.cmake: Add test to check if the basename is well modified in this case.
inoutcpp_pmmg.c
file: Fix bug insnprintf
inPMMG_savePvtuMesh
andPMMG_savePvtuMesh_and_allData
.snprintf
cannot support to have input and output filename using the same variable. Use an intermediate filename to overcome this issue.inoutcpp_pmmg.c
file:founded
->found
+ update regex in accordance incmake/testing/pmmg_tests.cmake
.*.pvtu
format:inoutcpp_pmmg.c
file: if the output filename has dots "." in the basename, replace them with dashes "-". Why? In VTK function SetFileName(filename), the first dot "." in the filename is interpreted as the extension start. So, whatever the user specifies after the first dot "." will be ignored by VTK. To overcome this, dots are replaced by dashes.parmmg.c
file: a warning is displayed to the user if the basename is changed.cmake/testing/pmmg_tests.cmake
: Add test to check if the basename is well modified in this case.