Run TUFLOW From a Batch-file: Difference between revisions
Content deleted Content added
Teegan.Burke (talk | contribs) |
Teegan.Burke (talk | contribs) |
||
Line 77:
input data.<br>
To copy a TUFLOW model, the '''-c''' switch must be included on the TUFLOW command line, as a minimum. The '''-c''' switch copies only the files read by TUFLOW. As such, for MapInfo users, the .mif and .mid files read by TUFLOW will be copied. The remaining MapInfo format files (.tab, .id, .dat and .map) are not read by TUFLOW and will not be copied. By default, the '''-c''' switch copies all TUFLOW inputs for the simulation into a subdirectory where the .tcf is located (generally TUFLOW\runs\).<br>
Additional optional flags can be added to the base '''-c''' switch, in any combination, including:<br>
;* “a” (all);<br>
: The addition of the “a” flag (e.g. -ca) copies all files of the same name for all input files (ie. same name, but different extensions). This option is particularly useful if the .tab and other associated files of a GIS layer need to be archived or delivered.<br>
Line 88:
: The addition of the “ncf” flag (e.g. -cncf) copies the essential input files and excludes all check files.<br>
Note that these optional flags can be added in any combination to the base '''-c''' switch (e.g.
-c, -ca, -cp, -cncf, -cap, -cancf, -cpncf, -capncf).<br>
Specifying '''-c''' on the TUFLOW command line creates a folder “<.tcf filename>_copy” (or “<.tcf filename>_copy_all” if the “a” flag is added) in the same location as the .tcf file. Under the folder, input files are copied (including the full folder structure), and any check files and output folders created. For example, specifying:<br>
: <tt>start "TUFLOW" "C:\TUFLOW\Releases\2016-03-AE\w64\TUFLOW_iSP_w64.exe" -c “C:\tuflow_models\my model.tcf” will make a copy of the TUFLOW model based on the file “my model.tcf” in a folder "my model.tcf_copy", or "my model.tcf_copy_all" if using the “a” flag.</tt><br>
| |||