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

Use Symbols for Petsc String Literals #2

Closed
JaredCrean2 opened this issue Aug 29, 2015 · 2 comments
Closed

Use Symbols for Petsc String Literals #2

JaredCrean2 opened this issue Aug 29, 2015 · 2 comments

Comments

@JaredCrean2
Copy link
Contributor

Petsc uses string literals to set lots of options, like vector and matrix formats. It would be better (faster) to use julia symbols to represent these.

The difficulty is that symbols cannot be passed back and forth between Julia and C, they have to be converted to strings first.

@JaredCrean2
Copy link
Contributor Author

The auto generated wrappers now convert the appropriate constants to symbols, but putting the conversion to and from strings is not done yet.

@JaredCrean2
Copy link
Contributor Author

This works now. I can't find exactly which commit, so I'm closing.

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

No branches or pull requests

1 participant