Batch File Not Running: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=Description= |
=Description= |
||
When running TUFLOW with a batch file, the |
When running TUFLOW with a batch file and setting the TUFLOW executable path or other commands as variable, the console window produces an error message and no simulations are executed (as shown below).<br> |
||
[[File: Batch_File_Not_Running.png ]] |
[[File: Batch_File_Not_Running.png ]] |
||
<br> |
<br> |
||
=Suggestions= |
=Suggestions= |
||
Check the path to the TUFLOW executable have been entered correctly. If it has, the error is most likely caused by using a " "(space) before and/or after the "=" in the batch file after the set variable command<br> |
|||
There could be a number of reasons this occurs, check the following: |
|||
For example (incorrect format): |
|||
* The correct .tcf file was started; |
|||
{| class="wikitable " |
|||
* The .tcf has been updated to point to the new geometry (.tgc) / boundary (.tbc) files; |
|||
|- |
|||
* Check files are being written (Write Check Files == command occurs in the .tcf / .ecf); |
|||
| |
|||
<tt>set TUFLOWEXE = C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe</tt> |
|||
Another good check is to import the messages layer, and view the TUFLOW log file (.tlf) for any checks or warnings. It is often useful to search the .tlf for an input file name, for example, if breakline changes are not seen, search the .tlf to ensure the input file e.g. "2d_zsh_M03_thalweg" is being read in. |
|||
|} |
|||
To solve this issue, please remove the " "(space) next to the "=".<br> |
|||
For example (correct format): |
|||
{| class="wikitable " |
|||
|- |
|||
| |
|||
<tt>set TUFLOWEXE=C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe</tt> |
|||
|} |
Latest revision as of 16:15, 18 April 2025
Description
When running TUFLOW with a batch file and setting the TUFLOW executable path or other commands as variable, the console window produces an error message and no simulations are executed (as shown below).
Suggestions
Check the path to the TUFLOW executable have been entered correctly. If it has, the error is most likely caused by using a " "(space) before and/or after the "=" in the batch file after the set variable command
For example (incorrect format):
set TUFLOWEXE = C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe |
To solve this issue, please remove the " "(space) next to the "=".
For example (correct format):
set TUFLOWEXE=C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe |