Hi,
There are several problems with the code. First, it was edited with windows so it has hidden characters that can be interpreted as control characters. Then in the script there is
gamma=2.111e5
Gamma is a function so this will produce an error. In fact you are trying to set gamma0. But that is the function gamma. In mumax3 you can set gammall which has a value in rad/Ts which has the default value 1.76e11 rad/Ts, so it is not gammaLL.
Then, one has
anisU.SetRegion(1,randNorm())
In fact, it should be
anisU.SetRegion(1,vector(randNorm(),randNorm(),randNorm()))
or whatever variation. Anisu is a vector.
In fact, that is not the final problem.It one takes a look more carefully to the original code the problem comes from the following line:
anisU.SetRegion(1,randNorm())
The last parentheses is in fact the unicode character U+FF09. That is the Fullwidth Right Parenthesis". If you change this by the standard closing parenthesis, all the other problems appear. I think go interprets that as a strange pointer operation, that is the error originally reported.That error was introduced during the editing procedure.
Best regards,
Felipe