[petsc-dev] [petsc4py] Broken tests for DMStag

Balay, Satish balay at mcs.anl.gov
Wed Jun 12 11:27:03 CDT 2019


On Wed, 12 Jun 2019, Lisandro Dalcin via petsc-dev wrote:

> $ python test/runtests.py -v -i dmstag TestDMStag_2D_PXY
> [0 at kl-18232] Python 2.7 (/usr/local/opt/python at 2/bin/python2.7)
> [0 at kl-18232] PETSc 3.11.2 development (conf: 'arch-darwin-c-debug')
> [0 at kl-18232] petsc4py 3.11.0 (build/lib.macosx-10.14-x86_64-2.7/petsc4py)
> testCoordinates (test_dmstag.TestDMStag_2D_PXY) ... ERROR
> testDMDAInterface (test_dmstag.TestDMStag_2D_PXY) ... ERROR
> testDof (test_dmstag.TestDMStag_2D_PXY) ... ok
> testGetOther (test_dmstag.TestDMStag_2D_PXY) ... ok
> testGetVec (test_dmstag.TestDMStag_2D_PXY) ... ERROR
> testMigrateVec (test_dmstag.TestDMStag_2D_PXY) ... ERROR

I get:

======================================================================
ERROR: testCoordinates (test_dmstag.TestDMStag_2D_PXY)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_dmstag.py", line 39, in testCoordinates
    self.da.setUniformCoordinates(0,1,0,1,0,1)
  File "PETSc/DMStag.pyx", line 255, in petsc4py.PETSc.DMStag.setUniformCoordinates
Error: error code 56
[0] DMStagSetUniformCoordinates() line 1077 in /home/balay/petsc.z/src/dm/impls/stag/stagutils.c
[0] DMStagSetUniformCoordinatesExplicit() line 1118 in /home/balay/petsc.z/src/dm/impls/stag/stagutils.c
[0] DMStagSetUniformCoordinatesExplicit_2d() line 135 in /home/balay/petsc.z/src/dm/impls/stag/stag2d.c
[0] DMLocalToGlobalBegin() line 2614 in /home/balay/petsc.z/src/dm/interface/dm.c
[0] DMLocalToGlobalBegin_Stag() line 230 in /home/balay/petsc.z/src/dm/impls/stag/stag.c
[0] No support for this operation for this object type
[0] Local to Global scattering with INSERT_VALUES is not supported for single rank in a direction with boundary conditions (e.g. periodic) inducing a non-injective local->global map. Either change the boundary conditions, use a stencil width of zero, or use more than one rank in the relevant direction (e.g. -stag_ranks_x 2)

Satish



More information about the petsc-dev mailing list