Run TUFLOW From a Batch-file: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 78:
 
===Copy a TUFLOW model===
TUFLOW can be run in copy mode, which can be useful for transferring a model to another site or for making an archive of the input data.<br>
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>
Line 91 ⟶ 90:
;* “ncf” (no check files)<br>
: 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”</tt> will make a copy of the TUFLOW model based on the file <tt>“my model.tcf”</tt> in a folder <tt>"my model.tcf_copy"</tt>, or <tt>"my model.tcf_copy_all"</tt> if using the “a” flag.<br>
 
 
'''Note:'''
Line 121 ⟶ 117:
An example that copies all files to an alternate path, excluding any checkfiles, (-capncf) is:<br>
<pre>start "TUFLOW" "C:\TUFLOW\Releases\2016-03-AE\w64\TUFLOW_iSP_w64.exe" -capncf "C:\Copy_of_model" "C:\TUFLOW\Tutorial_Wiki\TUFLOW\runs\M01_5m_003.tcf"</pre>
 
===Package a TUFLOW model===
Package model function attempts to copy all input files for all events and scenarios defined in the model, if only single set of events and scenarios is required -c is preferable. Unlike the -c option, -pm does not read and process the data during the file copy, as such it is substantially faster than -c. The package model function does not require access to a TUFLOW licence.
 
Additional optional flags can be added to the base '''-pm''' switch, in any combination, including:<br>
;* “All”;<br>
: The addition of the “All” flag (e.g. -pmAll) copies all copies all file extensions (e.g. 1d_nwk_culv_L.mif, will become 1d_nwk_culv_L.*).<br>
;* “L” (list); and<br>
: The addition of the “L” flag (e.g. -pmL) list the files to be copied into an output file, but don’t copy.<br>
;* “ini” (file.ini)<br>
: The addition of the “ini” flag (e.g. -pmini) provides a .ini file with user defined options. Valid commands in the .ini file are Base Folder == <folder> and Copy Destination == <folder>.<br>
 
===GPU Solver Control===