Katropton: Add supports for Gmsh 4
1 unresolved thread
1 unresolved thread
As observed by @R.Boman, katropton was not working with MPI using Gmsh 4. This was due to the fact that Gmsh 4 does not save the ghost cells by default.
To save those cells, we have to use the option -part_ghosts
as discussed in the Gmsh doc.
However, this option is not supported by Gmsh 3 (gmsh -h | grep "ghost"
does not find any line).
Therefore, to solve this issue, the code must test the version of Gmsh used and, if the major version is 4 or greater, must add the -part_ghosts
argument.
This MR includes the correction of if statements in plat*.geo which prevented the use of newer Gmsh than 3.0.6.
Merge request reports
Activity
Filter activity
16 16 import numpy as np 17 17 from katropton.eigenvalues import * 18 18 19 def get_gmsh_version(): 20 command_line = 'gmsh --version' 21 tmp = shlex.split(command_line) 22 fileout = open('gmsh_version.log', 'w') changed this line in version 2 of the diff
added 1 commit
- 9eaeec57 - Katropton: use checkout_output instead of a temporary file to get gmsh version
enabled an automatic merge when the pipeline for 9eaeec57 succeeds
added 1 commit
- 1b9f93fe - Katropton: resolve a string bug with python3 in the get_gmsh_version function
Please register or sign in to reply