Skip to content

Conversation

@carlosmunozmoncayo
Copy link
Contributor

This PR fixes two small issues:

  • When using PETSc, the example examples/euler_2d/quadrants.py throws an error since PetClaw's geometry.Domain.init is not safeguarded against an instantiation like: domain = pyclaw.Domain([0.,0.],[1.,1.],[100,100]), which is accepted in the serial version.
  • This example also throws an error since 'ascii' was the default format even when using PETSc.

Maybe we could include a couple of PetClaw runs in the CI testing workflow to catch more of these.

When using PETSc, the example examples/euler_2d/quadrants.py throws an
error since PetClaw's geometry.Domain.__init__ is not safeguarded
against an instantiation like:
domain = pyclaw.Domain([0.,0.],[1.,1.],[100,100])

This example also throws an error since 'ascii' was the default format
even when using PETSc.
@coveralls
Copy link

Coverage Status

coverage: 46.49% (-0.1%) from 46.602%
when pulling 4ca8a9a on carlosmunozmoncayo:fixes_domain_output_petclaw
into 8854071 on clawpack:master.

@ketch
Copy link
Member

ketch commented Jan 26, 2026

Thanks!

Maybe we could include a couple of PetClaw runs in the CI testing workflow to catch more of these.

We used to run all the regression tests in parallel as well. The main obstacle to doing that now is that we don't have PETSc and petsc4py set up in our CI. If you want to tackle that, you would be a hero.

@ketch ketch merged commit 62d693c into clawpack:master Jan 26, 2026
1 of 2 checks passed
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.

3 participants