mdolab / idwarp

IDWarp is a mesh warping package for the MACH framework.
Other
17 stars 29 forks source link

Add compatibility with latest PETSC #52

Closed A-CGray closed 3 years ago

A-CGray commented 3 years ago

Purpose

Fixing issues with the VecGetValues function so that idwarp works with newer versions of petsc.

We haven't figured out why, but in newer versions of petsc, VecGetValues expects a scalar rather than a single entry array for the index when retrieving a single value. I added some conditional compilation so that we use the correct inputs depending on the petsc version installed and therefore maintain backwards compatibility.

Type of change

What types of change is it? Select the appropriate type(s) that describe this PR

Testing

All testflo tests pass locally

Checklist

Put an x in the boxes that apply.