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

Method get_lattice

python/solver.py:594–601  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

592 return (start, list_sub(l, start, length, 0, []))
593
594 def get_lattice(self):
595 if self.mode_solver is None:
596 raise RuntimeError("Must call ModeSolver.run before getting the lattice.")
597
598 lattice = np.zeros((3, 3))
599 self.mode_solver.get_lattice(lattice)
600
601 return lattice
602
603 def output_field(self):
604 self.output_field_to_file(mp.ALL, self.get_filename_prefix())

Callers 7

get_poyntingMethod · 0.95
_get_fieldMethod · 0.95
get_curfield_as_arrayMethod · 0.95
get_tot_pwrMethod · 0.95
get_eigenvectorsMethod · 0.95
test_tri_rodsMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_tri_rodsMethod · 0.36