Error using fdtd-run-local.bat

fdtd
windows
batch

#1

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).
https://kb.lumerical.com/en/index.html?user_guide_run_win_solver_command_line_direct.html

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.

From:

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

To:

"%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
or
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
or
"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