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

GetMemoryType returns a python integer rather than an mfem MemoryType #183

Open
goodman17c opened this issue Jun 16, 2023 · 0 comments
Open

Comments

@goodman17c
Copy link
Contributor

The GetMemoryType function of an mfem Device is returning a python integer rather than a mfem MemoryType.
I have only observed this from the mfem.ser build using the cpu device type, so this may be the trivial case, but limits code portability between difference hardwares. I have found this to be a problem for constructing a BlockVector with a specified MemoryType.

Below is a minimum code example to demonstrate the issue.

import mfem.ser as mfem
device = mfem.Device("cpu")
mt = device.GetMemoryType()
print(type(mt))
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