python: add debug options

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/32/head
Thorsten Liebig 2017-05-01 12:48:47 +02:00
parent 21fab76679
commit 9d05c86900
2 changed files with 6 additions and 1 deletions

View File

@ -48,6 +48,9 @@ cdef extern from "openEMS/openems.h":
void SetGaussExcite(double f0, double fc)
void SetVerboseLevel(int level)
void DebugPEC()
void DebugMaterial()
void DebugCSX()
int SetupFDTD()
void RunFDTD()

View File

@ -410,7 +410,7 @@ cdef class openEMS:
continue
grid.AddLine(n, hint[n])
def Run(self, sim_path, cleanup=False, setup_only=False, verbose=None):
def Run(self, sim_path, cleanup=False, setup_only=False, debug_pec=False, verbose=None):
""" Run(sim_path, cleanup=False, setup_only=False, verbose=None)
Run the openEMS FDTD simulation.
@ -429,6 +429,8 @@ cdef class openEMS:
os.chdir(sim_path)
if verbose is not None:
self.thisptr.SetVerboseLevel(verbose)
if debug_pec:
self.thisptr.DebugPEC()
assert os.getcwd() == sim_path
_openEMS.WelcomeScreen()
cdef int EC