@@ -64,6 +64,8 @@ cdef extern from "clib.h":
6464 void compute_anis(double * spin, double * field, double * energy,
6565 double * Ku, double * axis, int n)
6666
67+ void compute_anis_cubic(double * spin, double * field, double * energy, double * Kc, int n)
68+
6769 void llg_rhs(double * dm_dt, double * spin,
6870 double * h, double * alpha, int * pins,
6971 double gamma, int n, int do_precession, double default_c)
@@ -159,14 +161,11 @@ def compute_exchange_energy(np.ndarray[double, ndim=1, mode="c"] spin,
159161 xperiodic, yperiodic)
160162
161163
162- def compute_anisotropy (np.ndarray[double , ndim = 1 , mode = " c" ] spin,
163- np.ndarray[double , ndim = 1 , mode = " c" ] field,
164- np.ndarray[double , ndim = 1 , mode = " c" ] energy,
165- np.ndarray[double , ndim = 1 , mode = " c" ] Ku,
166- np.ndarray[double , ndim = 1 , mode = " c" ] axis,
167- n ):
168- compute_anis(& spin[0 ], & field[0 ], & energy[0 ], & Ku[0 ],
169- & axis[0 ], n)
164+ def compute_anisotropy (double [:] spin , double [:] field , double [:] energy , double [:] Ku , double [:] axis , n ):
165+ compute_anis(& spin[0 ], & field[0 ], & energy[0 ], & Ku[0 ], & axis[0 ], n)
166+
167+ def compute_anisotropy_cubic (double [:] spin , double [:] field , double [:] energy , double [:] Kc , n ):
168+ compute_anis_cubic(& spin[0 ], & field[0 ], & energy[0 ], & Kc[0 ], n)
170169
171170
172171def compute_dmi_field (np.ndarray[double , ndim = 1 , mode = " c" ] spin,
0 commit comments