Skip to content

Commit

Permalink
Remove tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
danshapero committed Jun 29, 2023
1 parent f1590bd commit 93313fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/lbb-stability/lbb-stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import numpy as np
from petsc4py import PETSc
from slepc4py import SLEPc
import tqdm


def compute_inf_sup_constant(spaces, b, inner_products):
Expand Down Expand Up @@ -101,7 +100,7 @@ def run(*, dimension, num_cells, element, num_layers=None, vdegree=None):

stability_constants = []
nmin, nmax, nstep = args.num_cells_min, args.num_cells_max, args.num_cells_step
for num_cells in tqdm.trange(nmin, nmax + 1, nstep):
for num_cells in range(nmin, nmax + 1, nstep):
h, λ = run(
dimension=args.dimension,
num_cells=num_cells,
Expand All @@ -110,6 +109,7 @@ def run(*, dimension, num_cells, element, num_layers=None, vdegree=None):
vdegree=args.vdegree
)
stability_constants.append((h, λ))
print(".", flush=True, end="")

data = []
if pathlib.Path(args.output).is_file():
Expand Down

0 comments on commit 93313fe

Please sign in to comment.