clawpack / visclaw

Clawpack visualization tools
http://www.clawpack.org
BSD 3-Clause "New" or "Revised" License
29 stars 48 forks source link

Added amr_data_show attribute to suppress certain amr levels #165

Closed cjvogl closed 9 years ago

cjvogl commented 9 years ago

For backwards compatibility, included conditional that should default to showing all levels if amr_data_show is not set.

rjleveque commented 9 years ago

Seems to work fine. This is very useful for cases where one only wants to show coarser levels in making an animation quickly, for example.

Alternatively, I like that you can also set, e.g.

    plotitem.amr_data_show = [False, False, True]

to show only the fine patches. level3

rjleveque commented 9 years ago

@cjvogl: I just did a PR to your branch. If you merge it in to your branch, it should then show up here...

cjvogl commented 9 years ago

@rjleveque: all merged.