Skip to content

Commit

Permalink
Fix number of layers
Browse files Browse the repository at this point in the history
  • Loading branch information
danshapero committed Aug 16, 2023
1 parent 616e71e commit c5db079
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/lbb-stability/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ results-2d.json: lbb-stability.py

results-3d.json: lbb-stability.py
@for element in mini taylor-hood crouzeix-raviart; do \
for num-layers in 1 2 3; do \
for num_layers in 1 2 3; do \
for vdegree in 1 2 3 4; do \
python lbb-stability.py \
--dimension 3 \
--element $$element \
--num-cells-min 4 \
--num-cells-max 32 \
--num-cells-step 2 \
--num-layers $$num-layers \
--num-layers $$num_layers \
--vdegree $$vdegree \
--output $@ ; \
done \
Expand Down
3 changes: 3 additions & 0 deletions demo/lbb-stability/lbb-stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ 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
print(f"Element: {args.element}")
print(f"#layers: {args.num_layers}")
print(f"vdegree: {args.vdegree}")
for num_cells in range(nmin, nmax + 1, nstep):
h, λ = run(
dimension=args.dimension,
Expand Down

0 comments on commit c5db079

Please sign in to comment.