def compute_field(self, t=0, spin=None): if spin is not None: m = spin else: m = self.spin micro_clib.compute_exchange_field_micro(m, self.field, self.energy, self.Ms_inv, self.A, self.dx, self.dy, self.dz, self.n, self.neighbours) return self.field
def compute_field(self, t=0): micro_clib.compute_exchange_field_micro(self.spin, self.field, self.energy, self.Ms_inv, self.A, self.dx, self.dy, self.dz, self.n, self.neighbours ) return self.field
def compute_field(self, t=0, spin=None): if spin is not None: m = spin else: m = self.spin micro_clib.compute_exchange_field_micro(m, self.field, self.energy, self.Ms_inv, self.A, self.dx, self.dy, self.dz, self.n, self.neighbours ) return self.field