Skip to content

read_point_data/read_cell_data: functions in the mesh's precision - #98

Merged
finsberg merged 2 commits into
mainfrom
fix/data-dtype
Nov 12, 2026
Merged

finsberg merged 2 commits into
mainfrom
fix/data-dtype

Conversation

@finsberg

Copy link
Copy Markdown
Member

Data stored in single precision (e.g. float32 point data in a VTK file) read onto a double-precision mesh raised 'Incompatible FunctionSpace dtype and requested dtype': the function was created with the data's dtype. Real data now takes the mesh's real type, complex data the matching complex type.

finsberg and others added 2 commits November 12, 2026 07:59
Data stored in single precision (e.g. float32 point data in a VTK file) read onto a double-precision
mesh raised 'Incompatible FunctionSpace dtype and requested dtype': the function was created with the
data's dtype. Real data now takes the mesh's real type, complex data the matching complex type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@finsberg
finsberg merged commit 44f0505 into main Nov 12, 2026
11 checks passed
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

Successfully merging this pull request may close these issues.

1 participant