File: CalcNF2FF.m.patch

package info (click to toggle)
openems 0.0.35%2Bgit20190103.6a75e98%2Bdfsg.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,424 kB
  • sloc: cpp: 40,407; python: 2,028; yacc: 580; makefile: 458; lex: 350; sh: 176; ruby: 19
file content (14 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/matlab/CalcNF2FF.m b/matlab/CalcNF2FF.m
index 35c11c7..1638110 100644
--- a/matlab/CalcNF2FF.m
+++ b/matlab/CalcNF2FF.m
@@ -83,7 +83,8 @@ cd(Sim_Path);
 try
     if isunix
         % remove LD_LIBRARY_PATH set by matlab
-        system(['export LD_LIBRARY_PATH=; ' openEMS_Path 'nf2ff/nf2ff ' filename '.xml']);
+        % this is a packaged openEMS; nf2ff is found within PATH
+        system(['LD_LIBRARY_PATH=; nf2ff ' filename '.xml']);
     else
         system([openEMS_Path 'nf2ff.exe ' filename '.xml']);
     end