3 Model run
The most common way to run SWAP is by executing a command file which refers to the SWAP executable and the *.swp file (see Tip 3.1). The command file and the *.swp file need to be present in the same directory. The *.swp file contains the names and locations of other input files. Therefore, it is possible to have separate directories with meteorological, crop and drainage data.
An example of the command file is given in Tip 3.1. In this case SWAP will use ‘hupsel.swp’ as main input file. If no name is specified behind the call swap.exe, SWAP will use swap.swp as main input file. The pause statement keeps the window box with screen messages open when runtime warnings or errors might occur. Three types of messages may occur during a model run:
- error messages with respect to input data;
- warnings with the advice to adapt selected options because the specified combination is not realistic;
- fatal calculation errors which stop the simulation.
Output files will be generated on the work folder. Also a *.log file will be generated, which contains a copy of the *.swp file, possible errors and warnings, and in case of a successful simulation run the statement: ‘Swap simulation okay!’