User Forum of Software BASEMENT

BASEMENT
Basic Simulation Environment for computation of environmental flow and natural hazard simulation
Laboratory of Hydraulics, Hydrology and Glaciology (VAW)
ETH Zurich
Basement_Logo

You are not logged in.

#1 2020-03-10 06:58:26

qtheiler
User
Registered: 2015-07-30
Posts: 60

Crash with Qgis 3.12

For information, the xdmf format assigned to a 2dm doesn't work with Qgis 3.12

https://github.com/lutraconsulting/MDAL/issues/226

Cheers,

Quentin

Offline

#2 2020-03-11 17:03:32

Matthias Bürgler
Developer
From: Zürich
Registered: 2019-04-04
Posts: 150

Re: Crash with Qgis 3.12

Hi Quentin

This appears to be a user-specific problem. I was able to load data via .xdmf onto a 2dm mesh in QGIS 3.12.0 on both Ubuntu 18.04 and Windows 10.

QGIS3120-load-xdmf-to-2dm.png
upload image free

Can you reproduce the error posted under the link?

Best regards
Matthias

Offline

#3 2020-03-16 07:52:41

qtheiler
User
Registered: 2015-07-30
Posts: 60

Re: Crash with Qgis 3.12

Hi,

Thanks for your answer. Here are all the files (Flaz stationnary) ans also the error message.

https://www.webtransfer.ch/fr/download/ … 952394cb8b

Cheers,

Quentin

Offline

#4 2020-03-26 14:50:00

Matthias Bürgler
Developer
From: Zürich
Registered: 2019-04-04
Posts: 150

Re: Crash with Qgis 3.12

Hi Quentin

Which BASEMENT version are you using? I noticed that your .xdmf File contains the absolute file path to the *results.h5 file. Therefore it does not work anymore as soon as you move it or the .h5 file to a new directory. To get it to work replace the abolute path by only "results.h5".

Best regards
Matthias

Offline

#5 2020-03-30 10:37:45

qtheiler
User
Registered: 2015-07-30
Posts: 60

Re: Crash with Qgis 3.12

Hi,

I have check with the last version relase (3.0.2) on Windows. All the output files are here:

https://www.webtransfer.ch/fr/download/ … 1eaa50151c

When I'm trying to assign Extra Dataset, I have the error "Could not read mesh dataset". Do you have any idea from where it comes?

Cheers,

Quentin

Offline

#6 2020-03-31 09:28:15

Matthias Bürgler
Developer
From: Zürich
Registered: 2019-04-04
Posts: 150

Re: Crash with Qgis 3.12

Hi Quentin
It seems that the current version of BASEMENT writes the absolute path for the auxiliary results file "results_aux.h5" into the XDMF file. This can cause problems if the files are moved to a different location or if the name of the path changes. You can solve this by opening the XDMF file with a text editor and search a replace the absolute path with by the file name.

E.g replace all occurrences of "C:/Users/USERNAME/project1/simulationXY/results_aux.h5" with only "results_aux.h5".

This should solve the problem for now and we will try to fix this in the official version as soon as possible.

Best regards
Matthias

Offline

#7 2020-04-03 06:53:25

qtheiler
User
Registered: 2015-07-30
Posts: 60

Re: Crash with Qgis 3.12

Thanks it works.

Cheers,

Quentin

Offline

Board footer

Powered by FluxBB