@@ -241,25 +241,25 @@ def NetgenHierarchy(mesh, levs, flags, distribution_parameters=None):
241241 comm = mesh .comm
242242 # Parse netgen flags
243243 if not isinstance (flags , dict ):
244- flags = {}
244+ flags = mesh . netgen_flags
245245 order = flags .get ("degree" , 1 )
246- logger .info (f"\t Order of the hierarchy: { order } " )
247246 if isinstance (order , int ):
248247 order = [order ]* (levs + 1 )
248+ permutation_tol = flags .get ("permutation_tol" , 1e-8 )
249249 refType = flags .get ("refinement_type" , "uniform" )
250- logger .info (f"\t Refinement type: { refType } " )
251250 optMoves = flags .get ("optimisation_moves" , False )
252251 snap = flags .get ("snap_to" , "geometry" )
253252 snap_smoothing = flags .get ("snap_smoothing" , "hyperelastic" )
254- logger .info (f"\t Snap to { snap } using { snap_smoothing } smoothing (if snapping to coarse)" )
255253 cg = flags .get ("cg" , not mesh .coordinates .function_space ().finat_element .is_dg ())
256254 nested = flags .get ("nested" , snap in ["coarse" ])
257- permutation_tol = flags .get ("permutation_tol" , 1e-8 )
255+ logger .info (f"\t Order of the hierarchy: { order } " )
256+ logger .info (f"\t Refinement type: { refType } " )
257+ logger .info (f"\t Snap to { snap } using { snap_smoothing } smoothing (if snapping to coarse)" )
258258 # Firedrake quantities
259259 meshes = []
260260 lgmaps = []
261261 # Curve the mesh
262- if mesh .coordinates .function_space ().ufl_element ().degree () != order [ 0 ] :
262+ if order [ 0 ] != mesh .coordinates .function_space ().ufl_element ().degree ():
263263 coordinates = mesh .curve_field (
264264 order = order [0 ],
265265 permutation_tol = permutation_tol ,
0 commit comments