-
Notifications
You must be signed in to change notification settings - Fork 0
updated checkpoint_xdmf method save discontinuous fields properly #328
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
base: development
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2893,40 +2893,55 @@ def checkpoint_xdmf( | |||||
| """ | ||||||
|
|
||||||
| ## The mesh Var attributes | ||||||
|
|
||||||
| def get_cell_field_size(h5_filename): | ||||||
| with h5py.File(h5_filename, 'r') as f: | ||||||
| size = f[f'cell_fields/{var.clean_name}_{var.clean_name}'].shape[0] | ||||||
| return size | ||||||
|
|
||||||
| attributes = "" | ||||||
| for var in meshVars: | ||||||
| var_filename = filename + f"mesh.{var.clean_name}.{index:05}.h5" | ||||||
| var_filename = filename + f".mesh.{var.clean_name}.{index:05}.h5" | ||||||
|
||||||
| var_filename = filename + f".mesh.{var.clean_name}.{index:05}.h5" | |
| var_filename = f"{filename}.mesh.{var.clean_name}.{index:05}.h5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
varis no longer in the scope of this function. This is not good.Consider passing it in as an argument?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ✅