Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

petsc 3.15 merged VecScatter into PetscSF #10

Merged
merged 1 commit into from
Jun 21, 2022
Merged

Conversation

minrk
Copy link
Contributor

@minrk minrk commented May 19, 2022

Private variables like _p_VecScatter were removed.

I'm not sure if there's a better way to get at this without private APIs, because public names like VecScatter work fine as aliases to the new type

testing in conda-forge/daetk-feedstock#6

…oved.

not sure if there's a better way to get at this without private APIs
@minrk
Copy link
Contributor Author

minrk commented May 19, 2022

the conda-forge build with this patch succeeded

@jedbrown
Copy link

I'm curious why daetk uses pointers to the private names as in

Petsc::cc::_p_VecScatter* my_gtol_;

rather than the public typedefs.

@minrk
Copy link
Contributor Author

minrk commented May 19, 2022

I've no idea! This was just the smallest patch I could come up with to get it building.

Presumably better to use public symbols, if possible.

Maybe just duplicating the original private typedefs, rather than importing them.

@cekees
Copy link
Member

cekees commented Jun 21, 2022

@minrk and @jedbrown, thanks. I have to admit that I don't remember why the pointers to private names came in here. It was before we moved to git, and I'd have to dig into the svn history. I believe that I can use the public typedefs now. Some of the complication here came from a long time ago where I was having some trouble with C++/C coupling. The coupling was done before PETSc had a C++ interface and when C++ compilers were all over the place in supporting standards. I've raised an issue (#11) but am just going to merge this to fix the compilation problems until I can go through carefully and clean this up.

@cekees cekees merged commit 2fd5c28 into erdc:master Jun 21, 2022
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