From 6fde7a85ce213cbd4e5e4be0cdf1c016a4c899a1 Mon Sep 17 00:00:00 2001 From: David Bruneau Date: Fri, 15 Sep 2023 10:21:21 -0400 Subject: [PATCH] Couple more fixes to cylinder.py to satisfy mypy --- src/fsipy/simulations/cylinder.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/fsipy/simulations/cylinder.py b/src/fsipy/simulations/cylinder.py index 020afe9c..9bdaabdc 100644 --- a/src/fsipy/simulations/cylinder.py +++ b/src/fsipy/simulations/cylinder.py @@ -3,12 +3,11 @@ """ import numpy as np from turtleFSI.problems import * -from dolfin import * +from dolfin import HDF5File, Mesh, MeshFunction, assemble, UserExpression, FacetNormal, ds, \ + DirichletBC, Measure, inner, parameters # set compiler arguments -parameters["form_compiler"][ - "quadrature_degree" -] = 6 # Not investigated thorougly. See MSc theses of Gjertsen. +parameters["form_compiler"]["quadrature_degree"] = 6 parameters["form_compiler"]["optimize"] = True # The "ghost_mode" has to do with the assembly of form containing the facet # normals n('+') within interior boundaries (dS). for 3D mesh the value should