JuliaGeodynamics / LaMEM.jl

Julia interface to LaMEM (Lithosphere and Mantle Evolution Model)
GNU General Public License v3.0
24 stars 12 forks source link

Version issues in reading LaMEM timesteps #18

Closed jaime-almeida closed 8 months ago

jaime-almeida commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

you can try updating ReadVTK to 0.2.0

jaime-almeida commented 8 months ago

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