Skip to content

Commit 97c45f6

Browse files
akarve1507jorgensd
andauthored
Update chapter2/monolithic_navierstokes_crp0.py
Co-authored-by: Jørgen Schartum Dokken <dokken92@gmail.com>
1 parent 5341048 commit 97c45f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter2/monolithic_navierstokes_crp0.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def parse_args():
8080
(v, q) = ufl.TestFunctions(W)
8181

8282
# --- parameters / RHS ---
83-
nu = fem.Constant(domain, PETSc.ScalarType(args.nu))
83+
nu = fem.Constant(domain, dolfinx.default_scalar_type(args.nu))
8484
eps_p = fem.Constant(domain, PETSc.ScalarType(args.eps_p))
8585
f_vec = fem.Constant(domain, np.zeros(mesh.geometry.dim, dtype=dolfinx.default_scalar_type))
8686

0 commit comments

Comments
 (0)