Error using fdtd-run-local.bat



When running multiple simulations using the run_simulations.bat batch file that can be downloaded and discussed from this article in our Knowledge Base(KB).

We might get the Access is denied error but the simulation will still run and complete.

To get rid of this error, we will have to change the batch file fdtd-run-local.bat found in "C:\Program Files\Lumerical\FDTD\bin\"

Note: Administrator access is required to edit this file.


"%MPIEXEC%" -localonly %PROCS% "%ENGINE%" -t 1 -nw "%%f"


"%MPIEXEC%" -n %PROCS% -host localhost "%ENGINE%" -t 1 -nw "%%f"

Before running the batch command. Please register the username and password credentials on MPICH2 as discussed from this article.

The run_simulations.bat can then be edited with user specifications like the number of processes to use,

CALL "C:\Program Files\Lumerical\FDTD\bin\fdtd-run-local.bat" -n 4 *.fsp
CALL "C:\Program Files\Lumerical\FDTD\bin\fdtd-run-local.bat" -n 8 sim1.fsp sim2.fsp

Or execute the command directly from the command prompt from the directory where you simulation files are saved;

"C:\Program Files\Lumerical\FDTD\bin\fdtd-run-local.bat" -n 4 *.fsp
"C:\Program Files\Lumerical\FDTD\bin\fdtd-run-local.bat" -n 12 sim01.fsp sim02.fsp

Information on warning message: HKEY_LOCAL_MACHINE - Access is denied
Run from command line, Windows
Lumerical FDTD engine problem