Error when using FDTD run local batch file



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\"

Administrator access is required to edit this file.

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


"%MPIEXEC%" -n %PROCS% -localonly "%ENGINE%" -nw -t 1 "%%f"
— or —
"%MPIEXEC%" -n %PROCS% -host localhost "%ENGINE%" -nw -t 1 "%%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

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