clawpack / visclaw

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

update geoplot.py to handle 1d or 2d q array, and also eta = q[-1,...] #294

Closed rjleveque closed 10 months ago

rjleveque commented 10 months ago

Use ellipses q[0,...] for depth, which is q[0,:] in 1d or q[0,:,:] in 2d.

Use eta = q[-1,...] to work in 1d or 2d, and also with 2d bouss where q will have additional components for hu and hv correction terms. Assumes that eta is always the final component of the q array read in from geoclaw output.

rjleveque commented 10 months ago

@mandli: Not sure what sort of example you mean since we don't have any examples in visclaw repo now. For old examples in geoclaw it should work the same as before, I hope.

mandli commented 10 months ago

Sorry, was looking at too many PRs.