MCPcopy Create free account
hub / github.com/NanoComp/meep / add_source

Method add_source

python/source.py:1096–1105  ·  view source on GitHub ↗
(self, sim)

Source from the content-addressed store, hash-verified

1094 self.needs_boundary_fix = needs_boundary_fix
1095
1096 def add_source(self, sim):
1097 sim.fields.register_src_time(self.src.swigobj)
1098 sim.fields.add_srcdata(
1099 self.srcdata,
1100 self.src.swigobj,
1101 self.num_pts,
1102 self.amp_arr,
1103 self.needs_boundary_fix,
1104 )
1105 return

Callers

nothing calls this directly

Calls 2

register_src_timeMethod · 0.80
add_srcdataMethod · 0.80

Tested by

no test coverage detected