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

Method add_sources

python/simulation.py:2975–2982  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2973 )
2974
2975 def add_sources(self):
2976 for s in self.sources:
2977 if self.fields is None:
2978 self.init_sim() # in case only some processes have IndexedSources
2979 s.add_source(
2980 self
2981 ) # each source type can optionally override its own add_source method, else will default to mp.Source method
2982 self.fields.require_source_components() # needed by IndexedSource objects
2983
2984 def _evaluate_dft_objects(self):
2985 for dft in self.dft_objects:

Callers 2

init_simMethod · 0.95
change_sourcesMethod · 0.95

Calls 3

init_simMethod · 0.95
add_sourceMethod · 0.45

Tested by

no test coverage detected