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

Method load_minus_force

python/simulation.py:3452–3459  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3450 force.save_hdf5(self.fields, fname, "", self.get_filename_prefix())
3451
3452 def load_minus_force(self, fname, force):
3453 """
3454 As `load_force`, but negates the Fourier-transformed fields after they are loaded.
3455 This means that they will be *subtracted* from any future field Fourier transforms
3456 that are accumulated.
3457 """
3458 self.load_force(fname, force)
3459 force.scale_dfts(-1.0)
3460
3461 def get_force_data(self, force):
3462 """

Callers

nothing calls this directly

Calls 2

load_forceMethod · 0.95
scale_dftsMethod · 0.45

Tested by

no test coverage detected