Skip to content

Instantly share code, notes, and snippets.

@zemmyang
zemmyang / run_all.lsf
Last active September 6, 2022 06:01
Lumerical FDTD - Script to run all .fsp files in directory to job queue and run
files = splitstring(dir,endl);
for(i=1:length(files)) {
if (findstring(files{i},"fsp") != -1) {
if (fileexists(files{i})) {
?files{i}; # displays the filename to confirm
load(files{i});
addjob(files{i});
# alternatively, this code can also be used to run