Skip to content

mumax 3.8 final

Compare
Choose a tag to compare
@barnex barnex released this 18 May 15:25
· 502 commits to master since this release

This release is intended to be very stable and usable in the long-term.

Fixes

This version fixes the "closure caveat" that arises when using a time-dependent function that also depends on an other variable. E.g.:

for i:=0; i<256; i++{
    alpha.SetRegion(i, i*t*1e9)
}

Until now, the same i was shared among all regions. It would have the value 255 (the last value assigned to it). This unexpected behavior has now been fixed and a fresh copy of i is used for each region, giving the expected time- and space-dependence.

However, there is a price to pay. E.g., in this case:

A = 1e-3
B_ext = vector(A*sin(omega*t), 0, 0)
A = 2e-3  // B_ext not affected by new A

the second assignment to A used to change the amplitude of B_ext. This is not the case anymore, as the A in A*sin(omega*t) is now a fresh copy, unaffected by assignments to the original. If you want to change the amplitude in this case, you need to repeat B_ext = after setting a new A.

Running

On linux, cd to the directory containing mumax3.sh and run:
./mumax3.sh
which should start mumax3 in a browser window. You can also run an .mx3 input file, see http://mumax.github.io/examples.html.

You can have a look at the contents of the mumax3.sh script. All it does is set your LD_LIBRARY_PATH to the current directory (which contains cuda6.0 libraries) and run mumax3-cuda6.0.

If you have manually installed CUDA on your system, you should be able to run mumax3-cudaX.X, with X.X your CUDA version. The same goes for clusters, etc. You may then also copy mumax3-cudaX.X to a convenient location like ~/bin/mumax3 or /usr/local/bin/mumax3 After which you can run mumax3 from any location.

Driver

You will, of course, need a proprietary nvidia driver. If your current driver does not work, version 340 is recommended.

Reference

Thank you for citing "The Design and Verification of MuMax3", http://dx.doi.org/10.1063/1.4899186.

More documentation at:

Questions

Most questions can be answered by reading "The Design and Verification of MuMax3", http://dx.doi.org/10.1063/1.4899186.

If that does not work, your question can be posted here: https://groups.google.com/forum/#!forum/mumax2.

Please use a descriptive subject like, e.g.:
"mumax 3.7 crashes with CUDA_ERROR_UNKNOWN on Ubuntu 15.04",
but not, e.g.:
"mumax question".

To install from source in Ubuntu 15.04:

Installing from source is easy from Ubuntu 15.04. Execute these steps if you understand what they do:

sudo apt-get install git golang-go gcc nvidia-cuda-toolkit nvidia-cuda-dev nvidia-340 gnuplot
export GOPATH=$HOME go get -u -v github.com/mumax/3/cmd/mumax3

This will install mumax3 in $HOME/bin