BASEMENTBasic Simulation Environment for computation of environmental flow and natural hazard simulationLaboratory of Hydraulics, Hydrology and Glaciology (VAW)ETH Zurich | ![]() |
You are not logged in.
Pages: 1
I put this under outputs, since it is not a proper bug, but I found a minor inconvenience in Basement v3.1 (windows version): When the results are exported using the GUI, all goes well. However, when I do the same for a simulation using a bat-script, the path to the results are still hardcoded in the resulting xdmf.
Could this be implemented in the next release? It would be nice not having the change the xdmfs manually before importing the data to QGIS.
Many thanks!
Last edited by sua87 (2021-02-17 14:05:27)
Offline
I am having the same issue, but I did not notice it beacuse I am never using the GUI.
I think it might be worth to be put under bugs.
Last edited by Matteo Facchini (2021-02-22 18:29:00)
Offline
If I am not mistaken, the path/filename in the xdmf is the exact string provided to the "-r" flag of the results executable.
For example the call:
BMv3_BASEplane_results.exe -f .\results.json -r .\results.h5
will results in ".\results.h5" being written into the xmdf file. However, the following call should result in only the filename "results.h5" in being written to the xdmf:
BMv3_BASEplane_results.exe -f results.json -r results.h5
If this does not solve the issue, then please post a quick example of the problem.
Best
Matthias
EDIT:
If you call the executable from outside the scenario directory and therefore have to provide a relative or absolute path to the files, this path will be written to the xdmf. However, this behaviour is intended to give the user more control.
Offline
Hey Matthias
everything works as you describe it.
What I do now (under windows 10) is to create batch files that have this line
cd path/to/dir
before the results command. By doing so I can write something like
"C:\Program Files\BASEMENT 3.1.0\bin\BMv3_BASEplane_results.exe" -f results.json -r results.h5 -o output
And the output will be written without the path!
Offline
Pages: 1