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

Add save_npy/load_npy #1109

Open
kinnala opened this issue Mar 23, 2024 · 1 comment
Open

Add save_npy/load_npy #1109

kinnala opened this issue Mar 23, 2024 · 1 comment

Comments

@kinnala
Copy link
Owner

kinnala commented Mar 23, 2024

Our recent work using meshes with more than 10 M nodes and large subdomains revealed that Mesh.save is not suitable for such large meshes for various reasons, including the conversion to meshio taking too long and the resulting files being too large.

We ended up saving m.t and m.p (etc.) to npy files through np.save. This should be implemented as Mesh.save_npy and Mesh.load_npy.

@kinnala
Copy link
Owner Author

kinnala commented Mar 23, 2024

Here are the relevant bits:

np.save(dire + 'mt', m.t, allow_pickle=False)
t = np.load(dire + 'mt.npy', allow_pickle=False)

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

No branches or pull requests

1 participant