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

Expose floating-point precision in Python #1688

Merged
merged 3 commits into from
Jul 20, 2021

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Jul 20, 2021

Introduces a new function meep.is_single_precision() in Python which exposes the floating-point precision of the underlying Meep module. This function will be used by subsequent PRs to enable CI for --enable-single as described in #1677.

@stevengj
Copy link
Collaborator

LGTM. Probably should have documentation too.

@oskooi
Copy link
Collaborator Author

oskooi commented Jul 20, 2021

Documentation has been added.

@stevengj stevengj merged commit c8f9e8e into NanoComp:master Jul 20, 2021
@oskooi oskooi deleted the python_single_precision branch July 20, 2021 21:24
@oskooi oskooi mentioned this pull request Jul 22, 2021
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
* expose floating-point precision in Python

* re-instate meep.get_realnum_size()

* add documentation
mawc2019 pushed a commit to mawc2019/meep that referenced this pull request Nov 3, 2021
* expose floating-point precision in Python

* re-instate meep.get_realnum_size()

* add documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants