Skip to content

Commit 6e54d03

Browse files
author
Weiwei Wang
committed
bug fix for skyrmion number cacluation
1 parent 503e1b8 commit 6e54d03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fidimag/micro/lib/util.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ double skyrmion_number(double *spin, double *charge,
6565
* in the order: [-x +x -y +y]
6666
*/
6767
double S_nn[12];
68+
69+
for(i=0;i<12;i++){
70+
S_nn[i] = 0; //we have to set S_nn to zeros manually
71+
}
6872

6973
for (i = 0; i < nxy; i++) {
7074
index = 3 * i;

0 commit comments

Comments
 (0)