Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
Umberto Zerbinati committed Jan 10, 2024
1 parent b9af660 commit cf3eaee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ngsPETSc/utils/firedrake.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
except ImportError:
fd = None

from fractions import Fraction
import warnings
import numpy as np
from petsc4py import PETSc
from fractions import Fraction
from copy import deepcopy

import netgen
import netgen.meshing as ngm
Expand Down Expand Up @@ -240,7 +239,7 @@ def NetgenHierarchy(ngmesh, levs, order=1, digits=8, adaptive=False, comm=fd.COM
#Curving linear mesh
mesh = fd.Mesh(mesh.curve_field(order=order, digits=digits))
meshes += [mesh]
for lv in range(levs):
for _ in range(levs):
#Streightening the mesh
ngmesh.Curve(1)
#We refine the netgen mesh uniformly
Expand Down Expand Up @@ -273,4 +272,4 @@ def NetgenHierarchy(ngmesh, levs, order=1, digits=8, adaptive=False, comm=fd.COM
fine_to_coarse_cells = dict((Fraction(i, refinements_per_level), f2c)
for i, f2c in enumerate(fine_to_coarse_cells))
return fd.HierarchyBase(meshes, coarse_to_fine_cells, fine_to_coarse_cells,
refinements_per_level, nested=False)
refinements_per_level, nested=False)

0 comments on commit cf3eaee

Please sign in to comment.