Skip to content

Change in return type of getField() function in PETSc version 3.22.1  #268

Description

@jcgraciosa

Branch tested: development
PETSc version: 3.22.1
Python version: 3.12.7
Issue description:

Accessing the swarm fields using getField() no longer returns the field of interest as an array.
Instead, it returns a tuple with the:

  • first element corresponding to the field of interest as an array and,
  • second element corresponding to the dimensions (I think).

I think this change may have a lot of effects moving forward.

To test:

import underworld3 as uw
mesh = uw.meshing.UnstructuredSimplexBox(minCoords=(0, 0), maxCoords=(1, 1), cellSize = 1/8)   

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions