|
From: Gallis, M. A <ma...@sa...> - 2021-02-04 04:00:17
|
Patrick,
Try updating to the latest version of paraview. There have been changes to paraview that were reflected to the Sparta post processing python scripts.
Michael
On Feb 3, 2021, at 8:07 AM, patrick.sturm--- via sparta-users <spa...@li...> wrote:
Hi,
I have an issue with grid2paraview.py
If I create a grid file with:
dimension 3
create_box 0 1 0 1 0 1
create_grid 10 10 10
write_grid grid
and a grid description file mir.txt:
dimension 3
create_box 0 1 0 1 0 1
read_grid grid
then
pvpython ${SPARTA_DIR}/tools/paraview/grid2paraview.py ${CASE_DIR}/mir.txt paraview_grid
gives the following error:
Traceback (most recent call last):
File "/home/pst/sparta-20Nov20/tools/paraview/grid2paraview.py", line 1290, in <module>
find_chunking(chunking, grid_desc, args)
File "/home/pst/sparta-20Nov20/tools/paraview/grid2paraview.py", line 78, in find_chunking
Cx = grid_desc["create_grid"][1]["Cx"]
KeyError: 'create_grid'
If I use create_grid instead of read_grid in the grid description file, then it works:
dimension 3
create_box 0 1 0 1 0 1
create_grid 10 10 10
This is on Ubuntu 20.04, with paraview 5.6.0, sparta-20Nov20.
Is this a bug or am I doing something stupid here?
Thanks for any suggestions.
Patrick
_______________________________________________
sparta-users mailing list
spa...@li...
https://lists.sourceforge.net/lists/listinfo/sparta-users
|