@ECHO OFF REM -------------------------------------------------------------------- REM REM Batch file parameters: REM %1 ... prefix of the input data files. REM %2 ... maximum number MIND of big bricks within the whole REM computational volume. It need not be specified. REM %3 ... maximum number MGRID of small bricks in the Fresnel volume. REM It need not be specified. REM For more details on MIND and MGRID see the description of main input REM data in 'NETIND.FOR'. If specified and non-zero, they overwrite the REM default values in the program 'NETIND.FOR'. REM REM Input files required: REM %1GRI1.DAT, %1NET1.DAT, %1NET2.DAT, REM %1GRI3.DAT, %1NET3.DAT, %1NET4.DAT, and files referred from them. REM First 3 files correspond to the first iteration, REM latter 3 files correspond to all subsequent iterations. REM Inside %1GRI3.DAT, %1NET3.OUT which will be created of %1GRI3.DAT, REM has to be referred instead of %1NET3.DAT. REM REM After each network ray tracing from the 1st (source) point to the REM 2nd (receiver) point, the PAUSE statement enables to terminate the REM iterations. Consecutive network ray tracing in the opposite REM is not required during the last iteration (i.e. if the big bricks REM cannot be made smaller). REM REM Output file TIME.OUT contains the times of starting and terminating REM the individual programs. REM REM -------------------------------------------------------------------- IF NOT EXIST GRID.EXE GOTO :EXE IF NOT EXIST NET.EXE GOTO :EXE IF NOT EXIST NETIND.EXE GOTO :EXE IF NOT EXIST %1GRI1.DAT GOTO :DAT IF NOT EXIST %1NET1.DAT GOTO :DAT IF NOT EXIST %1NET2.DAT GOTO :DAT IF NOT EXIST %1GRI3.DAT GOTO :DAT IF NOT EXIST %1NET3.DAT GOTO :DAT IF NOT EXIST %1NET4.DAT GOTO :DAT ECHO.|TIME >TIME.OUT ECHO GRID >>TIME.OUT ECHO '%1GRI1.DAT' / |GRID ECHO.|TIME >>TIME.OUT ECHO NET 1 >>TIME.OUT ECHO '%1NET1.DAT' / |NET ECHO.|TIME >>TIME.OUT ECHO NET 2 >>TIME.OUT ECHO '%1NET2.DAT' / |NET ECHO.|TIME >>TIME.OUT ECHO NETIND>>TIME.OUT COPY %1NET3.DAT %1NET3.OUT >NUL COPY %1NET4.DAT %1NET4.OUT >NUL ECHO '%1NET1.DAT' '%1NET2.DAT' '%1NET3.OUT' '%1NET4.OUT' %2 %3 / |NETIND ECHO.|TIME >>TIME.OUT :FV ECHO.|TIME >>TIME.OUT ECHO GRID >>TIME.OUT ECHO '%1GRI3.DAT' / |GRID ECHO.|TIME >>TIME.OUT ECHO NET 3 >>TIME.OUT ECHO '%1NET3.OUT' / |NET ECHO.|TIME >>TIME.OUT ECHO PAUSE >>TIME.OUT ECHO If all iterations are completed, press Ctrl-C. PAUSE ECHO.|TIME >>TIME.OUT ECHO NET 4 >>TIME.OUT ECHO '%1NET4.OUT' / |NET ECHO.|TIME >>TIME.OUT ECHO NETIND>>TIME.OUT COPY %1NET3.DAT %1NET5.OUT >NUL COPY %1NET4.DAT %1NET6.OUT >NUL ECHO '%1NET3.OUT' '%1NET4.OUT' '%1NET5.OUT' '%1NET6.OUT' %2 %3 / |NETIND ECHO.|TIME >>TIME.OUT COPY %1NET5.OUT %1NET3.OUT >NUL COPY %1NET6.OUT %1NET4.OUT >NUL DEL %1NET5.OUT DEL %1NET6.OUT GOTO :FV :EXE ECHO GRID.EXE, NET.EXE, and NETIND.EXE not in the current directory. GOTO :END :DAT ECHO %1GRI1.DAT, %1NET1.DAT, %1NET2.DAT, %1GRI3.DAT, %1NET3.DAT, ECHO and %1NET4.DAT not in the current directory. :END