Skip to content

Add prob_lo to the Taylor-vortex cell coordinates in DiffFromExact. - #199

Open
WeiqunZhang wants to merge 1 commit into
AMReX-Fluids:developmentfrom
WeiqunZhang:fix-difffromexact-problo
Open

Add prob_lo to the Taylor-vortex cell coordinates in DiffFromExact.#199
WeiqunZhang wants to merge 1 commit into
AMReX-Fluids:developmentfrom
WeiqunZhang:fix-difffromexact-problo

Conversation

@WeiqunZhang

Copy link
Copy Markdown
Member

The probtype 2 branch evaluated the exact solution at (i+0.5)*dx, an offset from the domain corner, while its init_taylor_vortex twin uses problo + (i+0.5)*dx, so error norms were wrong on shifted domains. Probtypes 1 and 16 are left alone: their inits omit problo too, so they already agree.

Fixes #167.

The probtype 2 branch evaluated the exact solution at (i+0.5)*dx, an offset from the domain corner, while its init_taylor_vortex twin uses problo + (i+0.5)*dx, so error norms were wrong on shifted domains. Probtypes 1 and 16 are left alone: their inits omit problo too, so they already agree.

Fixes AMReX-Fluids#167.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DiffFromExact omits prob_lo from cell coordinates; error norms wrong for probtype 2 on shifted domains

1 participant