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

Version issues in reading LaMEM timesteps #18

Closed
jaime-almeida opened this issue Nov 14, 2023 · 4 comments
Closed

Version issues in reading LaMEM timesteps #18

jaime-almeida opened this issue Nov 14, 2023 · 4 comments

Comments

@jaime-almeida
Copy link
Contributor

Hello,

I was trying to import a simulation back into Julia to perform some post-processing but I'm struggling to do so.

Specifically, running the Read_LaMEM_timestep function returns an AssertionError:

julia> using LaMEM
julia> test = Read_LaMEM_timestep(model_file, 50, model_directory)
AssertionError: version >= v"1.0"

I've checked the XML version on the output files (both the *.pvd and *.pvtr/*.pvts) files and I found this:

<?xml version="1.0"?>
<VTKFile type="Collection" version="0.1" byte_order="LittleEndian">

I'm guessing the VTKFile type version is triggering this error but I am quite clueless as how to solve it.

Cheers

@boriskaus
Copy link
Member

boriskaus commented Nov 14, 2023

ReadVTK recently changed something in this respect, and I believe we now support the latest version of that package. Which one are you using?

check by typing this in the package manager:

pkg> status

Also: we made some changes in LaMEM recently, to make this work accordingly. So it does require you to run a reasonably recent version of the code.

@jaime-almeida
Copy link
Contributor Author

This issue appeared when I tried to load a simulation I ran on my HPC installation, which has not been updated in a while. That should be what is tripping me!
I'm going to update my LaMEM installation and try this again.

Nevertheless, my current ReadVTK version is v0.1.9.

@boriskaus
Copy link
Member

you can try updating ReadVTK to 0.2.0

@jaime-almeida
Copy link
Contributor Author

Updated the HPC installation, issue solved. Thank you so much Boris!

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

2 participants