clawpack / visclaw

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

fix mapc2p functionality for plotitem1 #251

Closed cr2940 closed 4 years ago

cr2940 commented 4 years ago

In Frametools, there is a bug which was found by trying an example with 1D advection when there is a mapc2p function in setplot. Namely, the current_data.x is just a scalar, and the mapc2p function acts only on a scalar, giving back only a scalar for p_centers. But using c_centers fixes this.

mandli commented 4 years ago

This looks good to me.