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

Method load_minus_flux

python/simulation.py:3617–3624  ·  view source on GitHub ↗

As `load_flux`, 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, fname, flux)

Source from the content-addressed store, hash-verified

3615 save_mode = save_flux
3616
3617 def load_minus_flux(self, fname, flux):
3618 """
3619 As `load_flux`, but negates the Fourier-transformed fields after they are loaded.
3620 This means that they will be *subtracted* from any future field Fourier transforms
3621 that are accumulated.
3622 """
3623 self.load_flux(fname, flux)
3624 flux.scale_dfts(complex(-1.0))
3625
3626 load_minus_mode = load_minus_flux
3627

Callers 1

test_chunksMethod · 0.95

Calls 2

load_fluxMethod · 0.95
scale_dftsMethod · 0.45

Tested by 1

test_chunksMethod · 0.76