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

Saving cell data for Fides #90

Open
lahwaacz opened this issue Sep 20, 2024 · 0 comments
Open

Saving cell data for Fides #90

lahwaacz opened this issue Sep 20, 2024 · 0 comments

Comments

@lahwaacz
Copy link

Since 0771024 there are metadata for the Fides Paraview reader, but the result is very different from the VTX reader opening the same dataset/directory:

  • The VTK attribute specifies the data arrays as CellData:
    <CellData Scalars="U">
    <DataArray Name="U" />
    <DataArray Name="V" />
    <DataArray Name="TIME">
    step
    </DataArray>
    </CellData>
  • Opening the dataset/directory with the VTX reader results in the following extents (for all x,y,z): 0 to 64 (dimension: 65)
  • However, the Fides attributes specify the data as "points":
    std::vector<std::string> varList = {"U", "V"};
    std::vector<std::string> assocList = {"points", "points"};
    io.DefineAttribute<std::string>("Fides_Variable_List", varList.data(), varList.size());
    io.DefineAttribute<std::string>("Fides_Variable_Associations", assocList.data(), assocList.size());
  • Opening the same dataset/directory with the Fides reader results in different extents than the VTX reader: 0 to 63 (dimension: 64)
  • The VTK and Fides attributes specify different spacing (1 vs 0.1):
  • Moreover, when the example is run in a distributed manner, e.g. with mpirun -np 8, the Fides dataset contains "gaps" between the subdomains:
    gs-pointdata-distributed

How can I specify CellData properly for the Fides reader? I tried changing Fides_Variable_Associations from points to cells for all variables, but then the reader fails with the following error and nothing is loaded in Paraview:

ERROR: In vtkFidesReader.cxx, line 697
vtkFidesReader (0x5d464a9f2b20): Couldn't find index of time value 0

It seems that PointData are somewhat necessary for proper dataset loading (maybe Fides_Dimension_Variable?) but there are in fact datasets without any PointData in the real world and it should be possible to load them with Fides.

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