Frequently Asked Questions
MIKE FLOOD
Please do not hesitate to e-mail us if you have questions and/or answers yourself: mike@dhigroup.com.
-
Entered: 2016-8-24
-
Question:
General: How do I create batch jobs in MIKE FLOOD?
Answer:
In order to execute batch jobs, create a text file with extension *.bat, and edit the file (right-click and select Edit):
First add the folder for the MZlaunch executable to the overall path.
Then below, add one command line for each simulation to be run, then save and execute this batch file.
E.g. to run three simulations with version 2021, the content of the batch file may be as follow:
path=%path%;%DHI_MIKE_2021%;
start /wait Mzlaunch.exe mf.couple -x
start /wait Mzlaunch.exe mf2.couple -x
start /wait Mzlaunch.exe mfAD.couple -x
In this example, we assume that the three setup files are all located in the same folder as the one containing the batch file. When setup files are located in different directories, you can either add extra lines with the commands “cd” and “cd..” to navigate between folders, or replace the setup file’s names by their full paths.
Additionally, you can also control the parallelization technique using extra arguments, when running simulations with the Flexible Mesh version. For example, you can run simulations using 8 sub-domains on the CPU and 1 thread per sub-domain, using this batch file:
path=%path%;%DHI_MIKE_2021%;
set OMP_NUM_THREADS=1
cd NameOfSubfolderContainingSetupFile
Start /wait Mzlaunch.exe Scenario1.couple -mpi 8 -x
cd..
cd NameOfSubfolderContainingSecondSetupFile
Start /wait Mzlaunch.exe Scenario2.couple -mpi 8 –x
Alternatively, you can run simulations using 2 sub-domains on 2 GPU cards (with double precision) and 1 thread per sub-domain, using this batch file:
path=%path%;%DHI_MIKE_2021%;
set OMP_NUM_THREADS=1
Start /wait Mzlaunch.exe C:\FolderName1\Scenario1.couple –gpu 2 -x
Start /wait Mzlaunch.exe C:\FolderName2\Scenario2.couple –gpu 2 –x
For more information about batch simulations, please refer to the online help for Launch Simulation Engine (See chapter Batch Execution for how to get access to full list of options).