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

Method using_real_fields

python/simulation.py:2521–2527  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2519 self.load_fields(self.load_fields_file, self.load_single_parallel_file)
2520
2521 def using_real_fields(self):
2522 cond1 = self.is_cylindrical and self.m != 0
2523 cond2 = any([s.phase.imag for s in self.symmetries])
2524 cond3 = not self.k_point
2525 cond4 = self.special_kz and self.k_point.x == 0 and self.k_point.y == 0
2526 cond5 = not (cond3 or cond4 or self.k_point == Vector3())
2527 return not (self.force_complex_fields or cond1 or cond2 or cond5)
2528
2529 def initialize_field(
2530 self,

Callers 2

init_simMethod · 0.95
_adj_src_scaleMethod · 0.80

Calls 1

Vector3Class · 0.90

Tested by

no test coverage detected