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

BOVWriter does not correctly write Array data (and neither does ASCIIWriter) #65

Open
klreuther opened this issue Feb 8, 2019 · 1 comment

Comments

@klreuther
Copy link

If BOVWriter gets an array member (or member-member, via selector or directly), then the written data is garbage. This can be seen in the appended Visit plots: The volume plot of the first component (stored and BOV-exported separately) is correct, the vector plot is not.

This can also be seen in the raw data contained in normal.0000.data. This file contains only 22 non-zero bytes.

Possibly related: The ASCII-Writer also writes garbage when processing array data.

Attached files (as single zip file. GitHub does not support uploading of source code as attachment….)

  • minimal code example to reproduce
  • makefile (change library paths as needed)
  • sample BOV and ascii output of step 0
  • Visit plot of first component and vector plot of all three components

BOVBug.zip

@klreuther
Copy link
Author

klreuther commented Jun 7, 2019

I successfully fixed BOVWriter.

Diff:
168c168

< MPI_File_write(file, &buffer[0], length, datatype, MPI_STATUS_IGNORE);

---

> MPI_File_write(file, &buffer[0], length*selector.arity(), datatype, MPI_STATUS_IGNORE);

(I did not care to look at ASCIIWriter to date)

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