Skip to content

Commit

Permalink
do not visualize stored density_discr
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Sep 12, 2022
1 parent f61d872 commit e9e637b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/test_global_qbx.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@ def run_source_refinement_test(actx_factory, mesh, order,
# {{{ refined geometry

def _visualize_quad_resolution(dd, suffix):
if dd.discr_stage is None:
vis_discr = lpot_source.density_discr
else:
vis_discr = places.get_discretization(dd.geometry, dd.discr_stage)

vis_discr = places.get_discretization(dd.geometry, dd.discr_stage)
stretch = bind(places,
sym._mapping_max_stretch_factor(places.ambient_dim),
auto_where=dd)(actx)
Expand All @@ -133,7 +129,6 @@ def _visualize_quad_resolution(dd, suffix):

if visualize:
dd = places.auto_source
_visualize_quad_resolution(dd.copy(discr_stage=None), "original")
_visualize_quad_resolution(dd.to_stage1(), "stage1")
_visualize_quad_resolution(dd.to_stage2(), "stage2")

Expand Down

0 comments on commit e9e637b

Please sign in to comment.