Skip to content

Commit 78c18b6

Browse files
committed
Merge
2 parents 1b06332 + 72c536f commit 78c18b6

38 files changed

+10336
-50
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
*.pdf
77
*.tmp
88
*.so
9+
*.o
10+
911
local/
1012
*~
1113
*.bak
@@ -51,3 +53,4 @@ test-reports
5153

5254
*.npz
5355
*.npy
56+
fmm.cpp

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
- docker
88

99
before_install:
10-
- docker build -t fidimag -f ./docker/travis/Dockerfile .
10+
- travis_wait 90 docker build -t fidimag -f ./docker/travis/Dockerfile .
1111
- docker run -ti -d --name fidimag fidimag
1212

1313
jobs:

Diff for: Dockerfile

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22

3-
RUN apt -y update
4-
RUN apt install -y git python3 python3-pip gcc psutils cmake wget make
3+
# Avoid user interaction dialog
4+
ENV DEBIAN_FRONTEND=noninteractive
5+
6+
RUN apt -y update
7+
# Binder fails with Cython from pip -> use apt cython3
8+
RUN apt install -y git python3 python3-pip gcc psutils cmake wget make cython3
59
RUN apt install -y gfortran libblas-dev liblapack-dev python3-tk sudo fonts-lato
6-
RUN pip3 install cython matplotlib pytest scipy psutil pyvtk ipywidgets -U
10+
RUN pip3 install pip -U
11+
RUN pip3 install matplotlib pytest scipy psutil pyvtk ipywidgets -U
712
RUN pip3 install --no-cache-dir notebook
813

914
RUN ln -s /usr/bin/python3 /usr/bin/python
@@ -12,7 +17,7 @@ WORKDIR /usr/local
1217
RUN git clone https://github.com/computationalmodelling/fidimag.git
1318
WORKDIR /usr/local/fidimag
1419
# Work with stable release
15-
RUN git checkout tags/v2.9
20+
RUN git checkout tags/v3.0a2
1621
# Install CVODE and FFTW libraries
1722
WORKDIR /usr/local/fidimag/bin
1823
RUN bash install-fftw.sh

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PYTEST = ${PYTHON} -m pytest
88
#####################
99

1010
build:
11-
${PYTHON} setup.py build_ext --inplace
11+
${PYTHON} setup.py build_ext --inplace -j2
1212

1313
clean:
1414
rm -rf ${EXTENSIONS_DIR}/*

Diff for: README.md

+6
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ 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+
[17] [Diameter-independent skyrmion Hall angle in the plastic flow regime observed in chiral magnetic
90+
multilayers](https://arxiv.org/pdf/1908.04239.pdf)
91+
K. Zeissler, S. Finizio, C. Barton, A. Huxtable, J. Massey, J. Raabe, A. V. Sadovnikov, S. A. Nikitov, R. Brearton, T. Hesjedal, G. van der Laan, M. C. Rosamond, E. H. Linfield, G. Burnell, C. H. Marrows, arXiv:1908.04239 (2019)
92+
93+
[16] [Efficient computation of demagnetising fields for magnetic multilayers using multilayered convolution](https://arxiv.org/abs/1906.00813) S. Lepadatu, arXiv:1906.00813 (2019)
94+
8995
[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
9096

9197
[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)

Diff for: bin/install-fftw.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ download_and_install() {
3636
./configure --quiet --enable-shared --enable-openmp --enable-sse2 --enable-avx --prefix=${LIBS_DIR}
3737
echo "Compiling and installing "${1}"."
3838
{
39-
make
39+
make -j2
4040
make install
4141
} > /dev/null
4242
echo "Done."

Diff for: bin/install-sundials.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ download_and_cmake_install() {
3939

4040
echo "Compiling and installing "${1}"."
4141
{
42-
make
42+
make -j2
4343
make install
4444
} > /dev/null
4545

Diff for: docker/travis/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22

33
# To build this image `docker build -t fidimag .`
44
# Then you can drop into a live bash shell with `docker run -it fidimag`.

Diff for: examples/micromagnetic/skyrmion/Ku_H/main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import matplotlib.pyplot as plt
44

55
import numpy as np
6-
from micro import Sim
7-
from common import CuboidMesh
8-
from micro import UniformExchange, Demag, DMI, UniaxialAnisotropy
9-
from micro import Zeeman, TimeZeeman
6+
from fidimag.micro import Sim
7+
from fidimag.common import CuboidMesh
8+
from fidimag.micro import UniformExchange, Demag, DMI, UniaxialAnisotropy
9+
from fidimag.micro import Zeeman, TimeZeeman
1010
from fidimag.common.fileio import DataReader
1111

1212
mu0 = 4 * np.pi * 1e-7

Diff for: fidimag/atomistic/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .exchange import UniformExchange, Exchange
33
from .anisotropy import Anisotropy, CubicAnisotropy
44
from .zeeman import Zeeman, TimeZeeman
5-
from .demag import Demag
5+
from .demag import Demag, DemagFMM
66
from .demag_hexagonal import DemagHexagonal
77
from .hexagonal_mesh import HexagonalMesh
88
from .demag_full import DemagFull

Diff for: fidimag/atomistic/demag.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import fidimag.extensions.dipolar as clib
22
import numpy as np
33
from .energy import Energy
4+
import numpy as np
5+
import fidimag
6+
from fidimag.atomistic.energy import Energy
7+
import fidimag.extensions.fmm as fmm
8+
import time
9+
import sys
410

511

612
class Demag(Energy):
@@ -41,7 +47,7 @@ def __init__(self, calc_every=0, name='Demag'):
4147

4248
def setup(self, mesh, spin, mu_s, mu_s_inv):
4349
super(Demag, self).setup(mesh, spin, mu_s, mu_s_inv)
44-
50+
4551
# Ryan Pepper 04/04/2019
4652
# We *do not* need to scale by mesh.unit_length**3 here!
4753
# This is because in the base energy class, dx, dy and dz

0 commit comments

Comments
 (0)