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

Method load_minus_force_data

python/simulation.py:3486–3493  ·  view source on GitHub ↗

As `load_force_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, force, fdata)

Source from the content-addressed store, hash-verified

3484 mp._load_dft_data(force.diag, fdata.diag)
3485
3486 def load_minus_force_data(self, force, fdata):
3487 """
3488 As `load_force_data`, but negates the Fourier-transformed fields after they are
3489 loaded. This means that they will be *subtracted* from any future field Fourier
3490 transforms that are accumulated.
3491 """
3492 self.load_force_data(force, fdata)
3493 force.scale_dfts(complex(-1.0))
3494
3495 def add_flux(self, *args, **kwargs):
3496 """

Callers

nothing calls this directly

Calls 2

load_force_dataMethod · 0.95
scale_dftsMethod · 0.45

Tested by

no test coverage detected