Skip to content

Commit 303899f

Browse files
committed
Merge branch 'master' of github.com:computationalmodelling/fidimag
2 parents 7ebf35b + cf3865f commit 303899f

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ Bisotti, M.-A., Cortés-Ortuño, D., Pepper, R., Wang, W., Beg, M., Kluyver, T.
8686

8787
The following publications, in reverse chronological order, have used or cited Fidimag:
8888

89-
[14] [Learning Magnetization Dynamics](https://arxiv.org/abs/1903.09499), A. Kovacs, J. Fischbacher, H. Oezelt, M. Gusenbauer, L. Exl, F. Bruckner, D.Suess, T.Schrefl, arXiV (2019)
89+
[15] [Micromagnetics and spintronics: models and numerical methods](https://link.springer.com/article/10.1140%2Fepjb%2Fe2019-90599-6) C. Abert, Eur. Phys. J. B (2019) 92: 120
9090

91-
[13] [Computational micromagnetics with Commics](https://arxiv.org/abs/1812.05931), C.-M. Pfeiler, M. Ruggeri, B. Stiftner, L. Exl, M. Hochsteger, G. Hrkac, J. Schöberl, N. J. Mauser, D. Praetorius, arXiV (2018)
91+
[14] [Nanoscale magnetic skyrmions and target states in confined geometries](https://journals.aps.org/prb/abstract/10.1103/PhysRevB.99.214408), D. Cortés-Ortuño, N. Romming, M. Beg, K. von Bergmann, A. Kubetzka, O. Hovorka, H. Fangohr, R. Wiesendanger, Physical Review B 99, 214408 (2019)
9292

93-
[12] [Micromagnetics and spintronics: Models and numerical methods](https://arxiv.org/abs/1810.12365), C. Abert, arXiV (2018)
93+
[13] [Learning Magnetization Dynamics](https://arxiv.org/abs/1903.09499), A. Kovacs, J. Fischbacher, H. Oezelt, M. Gusenbauer, L. Exl, F. Bruckner, D.Suess, T.Schrefl, arXiV (2019)
94+
95+
[12] [Computational micromagnetics with Commics](https://arxiv.org/abs/1812.05931), C.-M. Pfeiler, M. Ruggeri, B. Stiftner, L. Exl, M. Hochsteger, G. Hrkac, J. Schöberl, N. J. Mauser, D. Praetorius, arXiV (2018)
9496

9597
[11] [Binding a hopfion in a chiral magnet nanodisk](https://journals.aps.org/prb/pdf/10.1103/PhysRevB.98.174437), Y. Liu, R. K. Lake, and J. Zang, Physical Review B 98, 174437 (2018)
9698

fidimag/atomistic/exchange.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ def setup(self, mesh, spin, mu_s, mu_s_inv):
104104
n = self.mesh.n
105105
for i in range(n):
106106
value = self.J(self.coordinates[i])
107-
if len(value) == 6:
108-
self._J[i, :] = value[:]
107+
if isinstance(value, (float, int)):
108+
self._J[i, :] = float(value)
109+
elif isinstance(value, (list, np.ndarray, tuple)):
110+
if len(value) == 6:
111+
self._J[i, :] = value[:]
109112
else:
110113
raise Exception('The given spatial function for J is not acceptable!')
111114
pass

fidimag/common/chain_method_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def relax(self, dt=1e-8, stopping_dYdt=1, max_iterations=1000,
703703
# -----------------------------------------------------------------
704704

705705
log.debug(time.strftime("%Y-%m-%d %H:%M:%S ", time.localtime()) +
706-
"step: {:.3g}, step_size: {:.3g}, "
706+
"step: {:.6g}, step_size: {:.3g}, "
707707
"max dYdt: {:.3g} "
708708
"max|G|: {:.3g} "
709709
"max|gradE|: {:.3g} "

0 commit comments

Comments
 (0)