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

Method load_minus_near2far_data

python/simulation.py:3373–3380  ·  view source on GitHub ↗

As `load_near2far_data`, but negates the Fourier-transformed fields after they are loaded. This means that they will be *subtracted* from any future field Fourier transforms that are accumulated.

(self, near2far, n2fdata)

Source from the content-addressed store, hash-verified

3371 mp._load_dft_data(near2far.F, n2fdata.F)
3372
3373 def load_minus_near2far_data(self, near2far, n2fdata):
3374 """
3375 As `load_near2far_data`, but negates the Fourier-transformed fields after they are
3376 loaded. This means that they will be *subtracted* from any future field Fourier
3377 transforms that are accumulated.
3378 """
3379 self.load_near2far_data(near2far, n2fdata)
3380 near2far.scale_dfts(complex(-1.0))
3381
3382 def add_force(self, *args, **kwargs):
3383 """

Callers 2

register_monitorsMethod · 0.80

Calls 2

load_near2far_dataMethod · 0.95
scale_dftsMethod · 0.45

Tested by

no test coverage detected