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 2025-10-10 17:47:14

Stefano
User
Registered: 2024-05-08
Posts: 16

Batch mode

Hi everyone,

I need to run an hydraulic simulation in batch mode under Windows (Office 365), turning off "safe mode", running BASEMD with BASEMENT 4.0.2.
I open Command prompt and digitize exactly the command lines of section 5.3 of manual (updating directories and correcting nthreats with nthreads):

C:\"Program Files\BASEMENT 4.0.2"\bin\BMv4_setup.exe `
F:\Project_1\model.json `
-o F:\Project_1\setup.h5
C:\"Program Files\BASEMENT 4.0.2"\bin\BMv4_simulation.exe `
F:\Project_1\simulation.json `
F:\Project_1\setup.h5 `
--output F:\Project_1\results.h5 --backend omp --nthreats 4
C:\"Program Files\BASEMENT 4.0.2"\bin\BMv4_results.exe `
F:\Project_1\results.json `
F:\Project_1\results.h5 `
--output F:\Project_1\results.xdmf

First question: how can I deactivate "safe mode"? --debug or -d don't work.
Second question: after the thrid step what have I to do? running with GUI?

User manual give another choice: running batch mode without GUI. I understand I've to create a text file with the subsequent command lines:

C:\"Program Files\BASEMENT 4.0.2"\bin\BMv4_setup.exe `
F:\Project_1\model.json `
-o F:\Project_1\setup.h5
C:\"Program Files\BASEMENT 4.0.2"\bin\BMv4_simulation.exe `
F:\Project_1\simulation.json `
F:\Project_1\setup.h5 `
--output F:\Project_1\results.h5 --backend omp --nthreats 4
C:\"Program Files\BASEMENT 4.0.2"\bin\BMv4_results.exe `
F:\Project_1\results.json `
F:\Project_1\results.h5 `
--output F:\Project_1\results.xdmf
C:\"Program Files\BASEMENT 4.0.2"\bin\BMv4_setup.exe `
F:\Project_2\model.json `
-o F:\Project_2\setup.h5
C:\"Program Files\BASEMENT 4.0.2"\bin\BMv4_simulation.exe `
F:\Project_2\simulation.json `
F:\Project_2\setup.h5 `
--output F:\Project_2\results.h5 --backend omp --nthreats 4
C:\"Program Files\BASEMENT 4.0.2"\bin\BMv4_results.exe `
F:\Project_2\results.json `
F:\Project_2\results.h5 `
--output F:\Project_2\results.xdmf

Then the text file has to rename to ".bat" extension and by double cliking simulation should start.

Third question: have I to create another directory (F:\Project_2 in the example)? and, again, what is correct syntax to deactivate "safe mode"?

Thanks since now to anyone could help to understana and solve this aenigma.

Stefano

Offline

#2 2025-10-11 16:30:16

Stefano
User
Registered: 2024-05-08
Posts: 16

Re: Batch mode

Ok, compiled exactly as in manual batch file runs; but flags d or debug are "unknow option".

Offline

Board footer

Powered by FluxBB