From a9a85a29e2a0577ed2235b5a1cdc5de2c7261673 Mon Sep 17 00:00:00 2001 From: Artem Bondarenko Date: Tue, 19 Jul 2022 14:33:19 +0200 Subject: [PATCH] Ported mumax3 into go module --- cmd/mumax3-convert/csv.go | 2 +- cmd/mumax3-convert/gnuplot.go | 2 +- cmd/mumax3-convert/json.go | 2 +- cmd/mumax3-convert/main.go | 12 ++++++------ cmd/mumax3-convert/normalize.go | 2 +- cmd/mumax3-convert/numpy.go | 2 +- cmd/mumax3-convert/resize.go | 4 ++-- cmd/mumax3-convert/vtk.go | 2 +- cmd/mumax3-httpfsd/main.go | 2 +- cmd/mumax3-script/main.go | 2 +- cmd/mumax3-server/compute.go | 4 ++-- cmd/mumax3-server/job.go | 4 ++-- cmd/mumax3-server/main.go | 4 ++-- cmd/mumax3/main.go | 8 ++++---- cmd/mumax3/queue.go | 4 ++-- cmd/mumax3/vet.go | 4 ++-- cuda/alloc.go | 4 ++-- cuda/angles.go | 4 ++-- cuda/anisotropy.go | 4 ++-- cuda/buffer.go | 4 ++-- cuda/bytes.go | 4 ++-- cuda/conv_common.go | 4 ++-- cuda/conv_copypad.go | 4 ++-- cuda/conv_demag.go | 6 +++--- cuda/conv_kernmul.go | 4 ++-- cuda/conv_mfm.go | 4 ++-- cuda/conv_selftest.go | 4 ++-- cuda/copypadmul2_wrapper.go | 4 ++-- cuda/copyunpad_wrapper.go | 4 ++-- cuda/crop.go | 4 ++-- cuda/crop_wrapper.go | 4 ++-- cuda/crossproduct.go | 4 ++-- cuda/crossproduct_wrapper.go | 4 ++-- cuda/cubicanisotropy2_wrapper.go | 4 ++-- cuda/cuda2go.go | 6 +++--- cuda/cufft/fft_test.go | 2 +- cuda/cufft/init_test.go | 2 +- cuda/cufft/plan.go | 2 +- cuda/div_wrapper.go | 4 ++-- cuda/dmi.go | 4 ++-- cuda/dmi_wrapper.go | 4 ++-- cuda/dmibulk.go | 4 ++-- cuda/dmibulk_wrapper.go | 4 ++-- cuda/dotproduct.go | 4 ++-- cuda/dotproduct_wrapper.go | 4 ++-- cuda/exchange.go | 2 +- cuda/exchange_wrapper.go | 4 ++-- cuda/exchangedecode_wrapper.go | 4 ++-- cuda/fatbin.go | 2 +- cuda/fft3dc2r.go | 8 ++++---- cuda/fft3dr2c.go | 10 +++++----- cuda/fftplan.go | 4 ++-- cuda/init.go | 4 ++-- cuda/init_test.go | 2 +- cuda/kernmulc_wrapper.go | 4 ++-- cuda/kernmulrsymm2dxy_wrapper.go | 4 ++-- cuda/kernmulrsymm2dz_wrapper.go | 4 ++-- cuda/kernmulrsymm3d_wrapper.go | 4 ++-- cuda/llnoprecess_wrapper.go | 4 ++-- cuda/lltorque.go | 2 +- cuda/lltorque2_wrapper.go | 4 ++-- cuda/madd.go | 4 ++-- cuda/madd2_wrapper.go | 4 ++-- cuda/madd3_wrapper.go | 4 ++-- cuda/madd4_wrapper.go | 4 ++-- cuda/madd5_wrapper.go | 4 ++-- cuda/madd6_wrapper.go | 4 ++-- cuda/madd7_wrapper.go | 4 ++-- cuda/magnetoelastic.go | 4 ++-- cuda/magnetoelasticfield_wrapper.go | 4 ++-- cuda/magnetoelasticforce_wrapper.go | 4 ++-- cuda/maxangle.go | 2 +- cuda/maxangle_wrapper.go | 4 ++-- cuda/minimize.go | 2 +- cuda/minimize_wrapper.go | 4 ++-- cuda/mslice.go | 2 +- cuda/mul_wrapper.go | 4 ++-- cuda/normalize.go | 4 ++-- cuda/normalize_wrapper.go | 4 ++-- cuda/phi_wrapper.go | 4 ++-- cuda/reduce.go | 6 +++--- cuda/reduce_test.go | 4 ++-- cuda/reducedot_wrapper.go | 4 ++-- cuda/reducemaxabs_wrapper.go | 4 ++-- cuda/reducemaxdiff_wrapper.go | 4 ++-- cuda/reducemaxvecdiff2_wrapper.go | 4 ++-- cuda/reducemaxvecnorm2_wrapper.go | 4 ++-- cuda/reducesum_wrapper.go | 4 ++-- cuda/region.go | 4 ++-- cuda/regionadds_wrapper.go | 4 ++-- cuda/regionaddv_wrapper.go | 4 ++-- cuda/regiondecode_wrapper.go | 4 ++-- cuda/regionselect_wrapper.go | 4 ++-- cuda/resize.go | 4 ++-- cuda/resize_wrapper.go | 4 ++-- cuda/shift.go | 4 ++-- cuda/shiftbytes_wrapper.go | 4 ++-- cuda/shiftbytesy_wrapper.go | 4 ++-- cuda/shiftx_wrapper.go | 4 ++-- cuda/shifty_wrapper.go | 4 ++-- cuda/shiftz_wrapper.go | 4 ++-- cuda/slice.go | 8 ++++---- cuda/slice_test.go | 2 +- cuda/slonczewski.go | 2 +- cuda/slonczewski2_wrapper.go | 4 ++-- cuda/temperature.go | 4 ++-- cuda/temperature2_wrapper.go | 4 ++-- cuda/theta_wrapper.go | 4 ++-- cuda/topologicalcharge.go | 4 ++-- cuda/topologicalcharge_wrapper.go | 4 ++-- cuda/topologicalchargelattice.go | 4 ++-- cuda/topologicalchargelattice_wrapper.go | 4 ++-- cuda/uniaxialanisotropy2_wrapper.go | 4 ++-- cuda/util.go | 2 +- cuda/zeromask.go | 2 +- cuda/zeromask_wrapper.go | 4 ++-- cuda/zhangli.go | 2 +- cuda/zhangli2_wrapper.go | 4 ++-- data/resample.go | 2 +- data/slice.go | 2 +- doc/apigen.go | 4 ++-- draw/arrows.go | 4 ++-- draw/encode.go | 2 +- draw/image.go | 4 ++-- draw/svg.go | 2 +- dump/read.go | 4 ++-- dump/write.go | 4 ++-- engine/anisotropy.go | 4 ++-- engine/asyncio.go | 6 +++--- engine/average.go | 4 ++-- engine/backwardeuler.go | 6 +++--- engine/bib.go | 4 ++-- engine/comp.go | 6 +++--- engine/config.go | 2 +- engine/crop.go | 6 +++--- engine/customfield.go | 6 +++--- engine/demag.go | 6 +++--- engine/effectivefield.go | 2 +- engine/energy.go | 4 ++-- engine/engine.go | 4 ++-- engine/euler.go | 4 ++-- engine/exchange.go | 8 ++++---- engine/excitation.go | 8 ++++---- engine/ext_angles.go | 4 ++-- engine/ext_centerbubble.go | 2 +- engine/ext_centerwall.go | 2 +- engine/ext_magnetoelastic.go | 6 +++--- engine/ext_rmsurfacecharge.go | 6 +++--- engine/ext_topologicalcharge.go | 4 ++-- engine/ext_topologicalchargelattice.go | 4 ++-- engine/geom.go | 10 +++++----- engine/gofiles.go | 4 ++-- engine/gui.go | 10 +++++----- engine/heun.go | 4 ++-- engine/log.go | 4 ++-- engine/lutdata.go | 8 ++++---- engine/magnetization.go | 6 +++--- engine/maxangle.go | 4 ++-- engine/mesh.go | 4 ++-- engine/mfm.go | 4 ++-- engine/minimizer.go | 4 ++-- engine/od.go | 2 +- engine/oneregion.go | 6 +++--- engine/outputquantities.go | 4 ++-- engine/parameter.go | 8 ++++---- engine/plot.go | 2 +- engine/quantity.go | 4 ++-- engine/regions.go | 6 +++--- engine/relax.go | 2 +- engine/render.go | 6 +++--- engine/rk23.go | 6 +++--- engine/rk4.go | 6 +++--- engine/rk45dp.go | 6 +++--- engine/rk56.go | 6 +++--- engine/run.go | 6 +++--- engine/save.go | 14 +++++++------- engine/scalar_excitation.go | 8 ++++---- engine/script.go | 4 ++-- engine/shape.go | 6 +++--- engine/shift.go | 4 ++-- engine/table.go | 12 ++++++------ engine/temperature.go | 10 +++++----- engine/torque.go | 6 +++--- engine/util.go | 14 +++++++------- go.mod | 3 +++ mag/demagkernel.go | 8 ++++---- mag/mfmkernel.go | 6 +++--- oommf/oommf.go | 4 ++-- oommf/ovf1.go | 2 +- oommf/ovf2.go | 2 +- script/funcif.go | 2 +- script/typeconv.go | 2 +- test/antenna.go | 6 +++--- test/custom_anisotropy.go | 2 +- test/standardproblem4.go | 2 +- test/thermometer.go | 4 ++-- 196 files changed, 425 insertions(+), 422 deletions(-) create mode 100644 go.mod diff --git a/cmd/mumax3-convert/csv.go b/cmd/mumax3-convert/csv.go index 16caac105..82e8acf86 100644 --- a/cmd/mumax3-convert/csv.go +++ b/cmd/mumax3-convert/csv.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) // comma-separated values diff --git a/cmd/mumax3-convert/gnuplot.go b/cmd/mumax3-convert/gnuplot.go index db0d85701..35261631d 100644 --- a/cmd/mumax3-convert/gnuplot.go +++ b/cmd/mumax3-convert/gnuplot.go @@ -7,7 +7,7 @@ import ( "fmt" "io" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) const DELIM = "\t" diff --git a/cmd/mumax3-convert/json.go b/cmd/mumax3-convert/json.go index 611b7b159..f725ab65c 100644 --- a/cmd/mumax3-convert/json.go +++ b/cmd/mumax3-convert/json.go @@ -4,7 +4,7 @@ import ( "encoding/json" "io" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) func dumpJSON(f *data.Slice, info data.Meta, out io.Writer) { diff --git a/cmd/mumax3-convert/main.go b/cmd/mumax3-convert/main.go index bc3d2f758..79b1153e0 100644 --- a/cmd/mumax3-convert/main.go +++ b/cmd/mumax3-convert/main.go @@ -43,12 +43,12 @@ import ( "strconv" "strings" - "github.com/mumax/3/data" - "github.com/mumax/3/draw" - "github.com/mumax/3/dump" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/oommf" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/draw" + "github.com/mumax/3/v3/dump" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/oommf" + "github.com/mumax/3/v3/util" ) var ( diff --git a/cmd/mumax3-convert/normalize.go b/cmd/mumax3-convert/normalize.go index 0f25bfae9..8138d7d04 100644 --- a/cmd/mumax3-convert/normalize.go +++ b/cmd/mumax3-convert/normalize.go @@ -3,7 +3,7 @@ package main import ( "math" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) // normalize vector data to given length diff --git a/cmd/mumax3-convert/numpy.go b/cmd/mumax3-convert/numpy.go index 86b85042f..b78c27d40 100644 --- a/cmd/mumax3-convert/numpy.go +++ b/cmd/mumax3-convert/numpy.go @@ -3,7 +3,7 @@ package main import ( "encoding/binary" "fmt" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" "io" ) diff --git a/cmd/mumax3-convert/resize.go b/cmd/mumax3-convert/resize.go index e892b42d5..977f94579 100644 --- a/cmd/mumax3-convert/resize.go +++ b/cmd/mumax3-convert/resize.go @@ -5,8 +5,8 @@ import ( "strconv" "strings" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) func resize(f *data.Slice, arg string) { diff --git a/cmd/mumax3-convert/vtk.go b/cmd/mumax3-convert/vtk.go index 8d7520ae9..b4dbe9ae0 100644 --- a/cmd/mumax3-convert/vtk.go +++ b/cmd/mumax3-convert/vtk.go @@ -13,7 +13,7 @@ import ( "io" "log" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) func dumpVTK(out io.Writer, q *data.Slice, meta data.Meta, dataformat string) (err error) { diff --git a/cmd/mumax3-httpfsd/main.go b/cmd/mumax3-httpfsd/main.go index c2e14e7cb..3eff026c1 100644 --- a/cmd/mumax3-httpfsd/main.go +++ b/cmd/mumax3-httpfsd/main.go @@ -24,7 +24,7 @@ import ( "net/http" _ "net/http/pprof" - "github.com/mumax/3/httpfs" + "github.com/mumax/3/v3/httpfs" ) var ( diff --git a/cmd/mumax3-script/main.go b/cmd/mumax3-script/main.go index 62c0b6349..32ba03611 100644 --- a/cmd/mumax3-script/main.go +++ b/cmd/mumax3-script/main.go @@ -7,7 +7,7 @@ import ( "bufio" "flag" "fmt" - "github.com/mumax/3/script" + "github.com/mumax/3/v3/script" "io" "log" "os" diff --git a/cmd/mumax3-server/compute.go b/cmd/mumax3-server/compute.go index 4e0a94b69..d215dce26 100644 --- a/cmd/mumax3-server/compute.go +++ b/cmd/mumax3-server/compute.go @@ -12,8 +12,8 @@ import ( "strings" "time" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/util" ) var ( diff --git a/cmd/mumax3-server/job.go b/cmd/mumax3-server/job.go index 25539a710..42a6f8804 100644 --- a/cmd/mumax3-server/job.go +++ b/cmd/mumax3-server/job.go @@ -6,8 +6,8 @@ import ( "strconv" "time" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/util" ) const MaxRequeue = 10 // maximum number of re-queues, don't run job if re-queued to many times diff --git a/cmd/mumax3-server/main.go b/cmd/mumax3-server/main.go index c5b241ab2..3bfb59f58 100644 --- a/cmd/mumax3-server/main.go +++ b/cmd/mumax3-server/main.go @@ -13,8 +13,8 @@ import ( "sync" "time" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/util" ) var ( diff --git a/cmd/mumax3/main.go b/cmd/mumax3/main.go index 67ba3c0f0..3f7ee6440 100644 --- a/cmd/mumax3/main.go +++ b/cmd/mumax3/main.go @@ -10,10 +10,10 @@ import ( "path" "time" - "github.com/mumax/3/cuda" - "github.com/mumax/3/engine" - "github.com/mumax/3/script" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/engine" + "github.com/mumax/3/v3/script" + "github.com/mumax/3/v3/util" ) var ( diff --git a/cmd/mumax3/queue.go b/cmd/mumax3/queue.go index 206ad3f35..3a2a4ceb0 100644 --- a/cmd/mumax3/queue.go +++ b/cmd/mumax3/queue.go @@ -5,8 +5,8 @@ package main import ( "flag" "fmt" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/engine" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/engine" "io" "log" "net/http" diff --git a/cmd/mumax3/vet.go b/cmd/mumax3/vet.go index 70552002c..0b7c80dbc 100644 --- a/cmd/mumax3/vet.go +++ b/cmd/mumax3/vet.go @@ -6,8 +6,8 @@ import ( "io/ioutil" "os" - "github.com/mumax/3/engine" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/engine" + "github.com/mumax/3/v3/util" ) // check all input files for errors, don't run. diff --git a/cuda/alloc.go b/cuda/alloc.go index 2f6f7a3c9..e4716328a 100644 --- a/cuda/alloc.go +++ b/cuda/alloc.go @@ -4,8 +4,8 @@ import ( "log" "unsafe" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/data" ) // Wrapper for cu.MemAlloc, fatal exit on out of memory. diff --git a/cuda/angles.go b/cuda/angles.go index 7e6574d93..9ae6d05c0 100644 --- a/cuda/angles.go +++ b/cuda/angles.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) func SetPhi(s *data.Slice, m *data.Slice) { diff --git a/cuda/anisotropy.go b/cuda/anisotropy.go index ff18accd3..d40246cc9 100644 --- a/cuda/anisotropy.go +++ b/cuda/anisotropy.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Add uniaxial magnetocrystalline anisotropy field to Beff. diff --git a/cuda/buffer.go b/cuda/buffer.go index 03a6bcc7e..145b81d09 100644 --- a/cuda/buffer.go +++ b/cuda/buffer.go @@ -10,8 +10,8 @@ import ( "log" "unsafe" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/data" ) var ( diff --git a/cuda/bytes.go b/cuda/bytes.go index 114d9f118..2200d4455 100644 --- a/cuda/bytes.go +++ b/cuda/bytes.go @@ -6,8 +6,8 @@ import ( "log" "unsafe" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/util" ) // 3D byte slice, used for region lookup. diff --git a/cuda/conv_common.go b/cuda/conv_common.go index 16ca771e7..dc4521146 100644 --- a/cuda/conv_common.go +++ b/cuda/conv_common.go @@ -6,8 +6,8 @@ import ( "log" "math" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Output size of R2C FFT with given logic size, expressed in floats. diff --git a/cuda/conv_copypad.go b/cuda/conv_copypad.go index 97a3ca51d..2fd865b31 100644 --- a/cuda/conv_copypad.go +++ b/cuda/conv_copypad.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Copies src (larger) into dst (smaller). diff --git a/cuda/conv_demag.go b/cuda/conv_demag.go index f4c369972..4d3181024 100644 --- a/cuda/conv_demag.go +++ b/cuda/conv_demag.go @@ -1,9 +1,9 @@ package cuda import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Stores the necessary state to perform FFT-accelerated convolution diff --git a/cuda/conv_kernmul.go b/cuda/conv_kernmul.go index 1aac058ab..e6f4ac718 100644 --- a/cuda/conv_kernmul.go +++ b/cuda/conv_kernmul.go @@ -4,8 +4,8 @@ package cuda // Launch configs range over all complex elements of fft input. This could be optimized: range only over kernel. import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // kernel multiplication for 3D demag convolution, exploiting full kernel symmetry. diff --git a/cuda/conv_mfm.go b/cuda/conv_mfm.go index fa93d1e08..3aa3c6638 100644 --- a/cuda/conv_mfm.go +++ b/cuda/conv_mfm.go @@ -3,8 +3,8 @@ package cuda // Generation of Magnetic Force Microscopy images. import ( - "github.com/mumax/3/data" - "github.com/mumax/3/mag" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/mag" ) // Stores the necessary state to perform FFT-accelerated convolution diff --git a/cuda/conv_selftest.go b/cuda/conv_selftest.go index 00bbda38b..9a7cb8534 100644 --- a/cuda/conv_selftest.go +++ b/cuda/conv_selftest.go @@ -5,8 +5,8 @@ package cuda import ( "math/rand" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Compares FFT-accelerated convolution against brute-force on sparse data. diff --git a/cuda/copypadmul2_wrapper.go b/cuda/copypadmul2_wrapper.go index 6a342f68c..9d46f1eaf 100644 --- a/cuda/copypadmul2_wrapper.go +++ b/cuda/copypadmul2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/copyunpad_wrapper.go b/cuda/copyunpad_wrapper.go index e317f982b..d10ce4f52 100644 --- a/cuda/copyunpad_wrapper.go +++ b/cuda/copyunpad_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/crop.go b/cuda/crop.go index ca8c225c3..f6d789ed3 100644 --- a/cuda/crop.go +++ b/cuda/crop.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Crop stores in dst a rectangle cropped from src at given offset position. diff --git a/cuda/crop_wrapper.go b/cuda/crop_wrapper.go index 94f04856b..260e01650 100644 --- a/cuda/crop_wrapper.go +++ b/cuda/crop_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/crossproduct.go b/cuda/crossproduct.go index 1ffd95a7f..d341b32b5 100644 --- a/cuda/crossproduct.go +++ b/cuda/crossproduct.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) func CrossProduct(dst, a, b *data.Slice) { diff --git a/cuda/crossproduct_wrapper.go b/cuda/crossproduct_wrapper.go index e1600fb28..f6477b5f8 100644 --- a/cuda/crossproduct_wrapper.go +++ b/cuda/crossproduct_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/cubicanisotropy2_wrapper.go b/cuda/cubicanisotropy2_wrapper.go index fd57c8066..7e6404946 100644 --- a/cuda/cubicanisotropy2_wrapper.go +++ b/cuda/cubicanisotropy2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/cuda2go.go b/cuda/cuda2go.go index 565ba0970..16e6c69f3 100644 --- a/cuda/cuda2go.go +++ b/cuda/cuda2go.go @@ -18,7 +18,7 @@ import ( "text/scanner" "text/template" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/util" ) func main() { @@ -152,8 +152,8 @@ const templText = `package cuda import( "unsafe" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" ) diff --git a/cuda/cufft/fft_test.go b/cuda/cufft/fft_test.go index 68279ed7e..c2cc8bd09 100644 --- a/cuda/cufft/fft_test.go +++ b/cuda/cufft/fft_test.go @@ -5,7 +5,7 @@ import ( "testing" "unsafe" - "github.com/mumax/3/cuda/cu" + "github.com/mumax/3/v3/cuda/cu" ) func TestExampleFFT1D(t *testing.T) { diff --git a/cuda/cufft/init_test.go b/cuda/cufft/init_test.go index 8268c1d1a..7dfff669c 100644 --- a/cuda/cufft/init_test.go +++ b/cuda/cufft/init_test.go @@ -2,7 +2,7 @@ package cufft import ( "fmt" - "github.com/mumax/3/cuda/cu" + "github.com/mumax/3/v3/cuda/cu" ) // needed for all other tests. diff --git a/cuda/cufft/plan.go b/cuda/cufft/plan.go index 581c9a9c5..97bb49721 100644 --- a/cuda/cufft/plan.go +++ b/cuda/cufft/plan.go @@ -10,7 +10,7 @@ import "C" import ( "unsafe" - "github.com/mumax/3/cuda/cu" + "github.com/mumax/3/v3/cuda/cu" ) // FFT plan handle, reference type to a plan diff --git a/cuda/div_wrapper.go b/cuda/div_wrapper.go index 7166a83df..ea44cdf29 100644 --- a/cuda/div_wrapper.go +++ b/cuda/div_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/dmi.go b/cuda/dmi.go index b06346a3d..6cc04f907 100644 --- a/cuda/dmi.go +++ b/cuda/dmi.go @@ -3,8 +3,8 @@ package cuda import ( "unsafe" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Add effective field of Dzyaloshinskii-Moriya interaction to Beff (Tesla). diff --git a/cuda/dmi_wrapper.go b/cuda/dmi_wrapper.go index f500a8b25..ba36958d9 100644 --- a/cuda/dmi_wrapper.go +++ b/cuda/dmi_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/dmibulk.go b/cuda/dmibulk.go index 251acb199..2dba58d5c 100644 --- a/cuda/dmibulk.go +++ b/cuda/dmibulk.go @@ -3,8 +3,8 @@ package cuda import ( "unsafe" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Add effective field due to bulk Dzyaloshinskii-Moriya interaction to Beff. diff --git a/cuda/dmibulk_wrapper.go b/cuda/dmibulk_wrapper.go index 3e4c794b0..5504e22d8 100644 --- a/cuda/dmibulk_wrapper.go +++ b/cuda/dmibulk_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/dotproduct.go b/cuda/dotproduct.go index 1cd9ef47c..f478487b2 100644 --- a/cuda/dotproduct.go +++ b/cuda/dotproduct.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // dst += prefactor * dot(a, b), as used for energy density diff --git a/cuda/dotproduct_wrapper.go b/cuda/dotproduct_wrapper.go index e8b8b106f..90401b119 100644 --- a/cuda/dotproduct_wrapper.go +++ b/cuda/dotproduct_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/exchange.go b/cuda/exchange.go index 9be4480d0..707ed83cb 100644 --- a/cuda/exchange.go +++ b/cuda/exchange.go @@ -3,7 +3,7 @@ package cuda import ( "unsafe" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) // Add exchange field to Beff. diff --git a/cuda/exchange_wrapper.go b/cuda/exchange_wrapper.go index 544f8d1a0..9369d919c 100644 --- a/cuda/exchange_wrapper.go +++ b/cuda/exchange_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/exchangedecode_wrapper.go b/cuda/exchangedecode_wrapper.go index c8923e2fc..e7e61ee73 100644 --- a/cuda/exchangedecode_wrapper.go +++ b/cuda/exchangedecode_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/fatbin.go b/cuda/fatbin.go index 1ab719e62..f2b677034 100644 --- a/cuda/fatbin.go +++ b/cuda/fatbin.go @@ -3,7 +3,7 @@ package cuda import ( "log" - "github.com/mumax/3/cuda/cu" + "github.com/mumax/3/v3/cuda/cu" ) // load PTX code for function name, find highest SM that matches our card. diff --git a/cuda/fft3dc2r.go b/cuda/fft3dc2r.go index 1c86de794..69b55ae98 100644 --- a/cuda/fft3dc2r.go +++ b/cuda/fft3dc2r.go @@ -3,10 +3,10 @@ package cuda import ( "fmt" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/cuda/cufft" - "github.com/mumax/3/data" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/cuda/cufft" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/timer" ) // 3D single-precission real-to-complex FFT plan. diff --git a/cuda/fft3dr2c.go b/cuda/fft3dr2c.go index a42183fb6..5fdaf2872 100644 --- a/cuda/fft3dr2c.go +++ b/cuda/fft3dr2c.go @@ -3,11 +3,11 @@ package cuda import ( "log" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/cuda/cufft" - "github.com/mumax/3/data" - "github.com/mumax/3/timer" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/cuda/cufft" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/timer" + "github.com/mumax/3/v3/util" ) // 3D single-precission real-to-complex FFT plan. diff --git a/cuda/fftplan.go b/cuda/fftplan.go index c3c39a4f9..ab10c8c77 100644 --- a/cuda/fftplan.go +++ b/cuda/fftplan.go @@ -4,8 +4,8 @@ package cuda // Base implementation for all FFT plans. import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/cuda/cufft" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/cuda/cufft" ) // Base implementation for all FFT plans. diff --git a/cuda/init.go b/cuda/init.go index 21fe452e5..3885ca677 100644 --- a/cuda/init.go +++ b/cuda/init.go @@ -6,8 +6,8 @@ import ( "log" "runtime" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/util" ) var ( diff --git a/cuda/init_test.go b/cuda/init_test.go index acde92b23..4dbb0a69c 100644 --- a/cuda/init_test.go +++ b/cuda/init_test.go @@ -1,7 +1,7 @@ package cuda import ( - "github.com/mumax/3/cuda/cu" + "github.com/mumax/3/v3/cuda/cu" ) // needed for all other tests. diff --git a/cuda/kernmulc_wrapper.go b/cuda/kernmulc_wrapper.go index e1cd77f6a..79158783c 100644 --- a/cuda/kernmulc_wrapper.go +++ b/cuda/kernmulc_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/kernmulrsymm2dxy_wrapper.go b/cuda/kernmulrsymm2dxy_wrapper.go index 502e2bb7b..6bef30f3d 100644 --- a/cuda/kernmulrsymm2dxy_wrapper.go +++ b/cuda/kernmulrsymm2dxy_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/kernmulrsymm2dz_wrapper.go b/cuda/kernmulrsymm2dz_wrapper.go index 902ac9e5f..bdfecd99f 100644 --- a/cuda/kernmulrsymm2dz_wrapper.go +++ b/cuda/kernmulrsymm2dz_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/kernmulrsymm3d_wrapper.go b/cuda/kernmulrsymm3d_wrapper.go index be5f1a43d..aae62fa2f 100644 --- a/cuda/kernmulrsymm3d_wrapper.go +++ b/cuda/kernmulrsymm3d_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/llnoprecess_wrapper.go b/cuda/llnoprecess_wrapper.go index 325803e8e..36408b12b 100644 --- a/cuda/llnoprecess_wrapper.go +++ b/cuda/llnoprecess_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/lltorque.go b/cuda/lltorque.go index 9c081c502..4e9783303 100644 --- a/cuda/lltorque.go +++ b/cuda/lltorque.go @@ -1,7 +1,7 @@ package cuda import ( - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) // Landau-Lifshitz torque divided by gamma0: diff --git a/cuda/lltorque2_wrapper.go b/cuda/lltorque2_wrapper.go index f875dcdf6..e8613919c 100644 --- a/cuda/lltorque2_wrapper.go +++ b/cuda/lltorque2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/madd.go b/cuda/madd.go index 2449349ff..79ae74531 100644 --- a/cuda/madd.go +++ b/cuda/madd.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // multiply: dst[i] = a[i] * b[i] diff --git a/cuda/madd2_wrapper.go b/cuda/madd2_wrapper.go index 0347b1a0c..844051c4d 100644 --- a/cuda/madd2_wrapper.go +++ b/cuda/madd2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/madd3_wrapper.go b/cuda/madd3_wrapper.go index 044145226..7183bd579 100644 --- a/cuda/madd3_wrapper.go +++ b/cuda/madd3_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/madd4_wrapper.go b/cuda/madd4_wrapper.go index 66016bae6..3274bf84b 100644 --- a/cuda/madd4_wrapper.go +++ b/cuda/madd4_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/madd5_wrapper.go b/cuda/madd5_wrapper.go index 4c76dfacc..25327ca60 100644 --- a/cuda/madd5_wrapper.go +++ b/cuda/madd5_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/madd6_wrapper.go b/cuda/madd6_wrapper.go index 0f4b91c50..64c353a56 100644 --- a/cuda/madd6_wrapper.go +++ b/cuda/madd6_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/madd7_wrapper.go b/cuda/madd7_wrapper.go index e09e40507..8fd1ccc0b 100644 --- a/cuda/madd7_wrapper.go +++ b/cuda/madd7_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/magnetoelastic.go b/cuda/magnetoelastic.go index 0fc44262d..d0b55becd 100644 --- a/cuda/magnetoelastic.go +++ b/cuda/magnetoelastic.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Add magneto-elasticit coupling field to the effective field. diff --git a/cuda/magnetoelasticfield_wrapper.go b/cuda/magnetoelasticfield_wrapper.go index 94457d1d0..74961cb6a 100644 --- a/cuda/magnetoelasticfield_wrapper.go +++ b/cuda/magnetoelasticfield_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/magnetoelasticforce_wrapper.go b/cuda/magnetoelasticforce_wrapper.go index 5f24029ad..c1d7598d3 100644 --- a/cuda/magnetoelasticforce_wrapper.go +++ b/cuda/magnetoelasticforce_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/maxangle.go b/cuda/maxangle.go index 170b9ef6f..aef5ab267 100644 --- a/cuda/maxangle.go +++ b/cuda/maxangle.go @@ -3,7 +3,7 @@ package cuda import ( "unsafe" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) // SetMaxAngle sets dst to the maximum angle of each cells magnetization with all of its neighbors, diff --git a/cuda/maxangle_wrapper.go b/cuda/maxangle_wrapper.go index 779045b26..7ab4c7f88 100644 --- a/cuda/maxangle_wrapper.go +++ b/cuda/maxangle_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/minimize.go b/cuda/minimize.go index 2088775fd..35bf2cdd0 100644 --- a/cuda/minimize.go +++ b/cuda/minimize.go @@ -1,7 +1,7 @@ package cuda import ( - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) // m = 1 / (4 + τ²(m x H)²) [{4 - τ²(m x H)²} m - 4τ(m x m x H)] diff --git a/cuda/minimize_wrapper.go b/cuda/minimize_wrapper.go index 95678a2f3..c9a28b6b6 100644 --- a/cuda/minimize_wrapper.go +++ b/cuda/minimize_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/mslice.go b/cuda/mslice.go index 24d8f35d2..7410a1137 100644 --- a/cuda/mslice.go +++ b/cuda/mslice.go @@ -1,7 +1,7 @@ package cuda import ( - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" "unsafe" ) diff --git a/cuda/mul_wrapper.go b/cuda/mul_wrapper.go index ced452f79..67f12edc1 100644 --- a/cuda/mul_wrapper.go +++ b/cuda/mul_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/normalize.go b/cuda/normalize.go index 73ec82a14..d5ec1153f 100644 --- a/cuda/normalize.go +++ b/cuda/normalize.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Normalize vec to unit length, unless length or vol are zero. diff --git a/cuda/normalize_wrapper.go b/cuda/normalize_wrapper.go index 723ec5ec7..c827d9fcb 100644 --- a/cuda/normalize_wrapper.go +++ b/cuda/normalize_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/phi_wrapper.go b/cuda/phi_wrapper.go index c3db6db32..3c061d108 100644 --- a/cuda/phi_wrapper.go +++ b/cuda/phi_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/reduce.go b/cuda/reduce.go index 7c9c7c518..861c4f593 100644 --- a/cuda/reduce.go +++ b/cuda/reduce.go @@ -4,9 +4,9 @@ import ( "math" "unsafe" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) //#include "reduce.h" diff --git a/cuda/reduce_test.go b/cuda/reduce_test.go index 63a081d5d..2dd2ad170 100644 --- a/cuda/reduce_test.go +++ b/cuda/reduce_test.go @@ -4,8 +4,8 @@ import ( "testing" "unsafe" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // test input data diff --git a/cuda/reducedot_wrapper.go b/cuda/reducedot_wrapper.go index cd2565878..5c5a4e4c6 100644 --- a/cuda/reducedot_wrapper.go +++ b/cuda/reducedot_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/reducemaxabs_wrapper.go b/cuda/reducemaxabs_wrapper.go index 50f8f4795..de5b32fe5 100644 --- a/cuda/reducemaxabs_wrapper.go +++ b/cuda/reducemaxabs_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/reducemaxdiff_wrapper.go b/cuda/reducemaxdiff_wrapper.go index 7cea66669..e4d2365e2 100644 --- a/cuda/reducemaxdiff_wrapper.go +++ b/cuda/reducemaxdiff_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/reducemaxvecdiff2_wrapper.go b/cuda/reducemaxvecdiff2_wrapper.go index b8e3a4fdf..3025950ad 100644 --- a/cuda/reducemaxvecdiff2_wrapper.go +++ b/cuda/reducemaxvecdiff2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/reducemaxvecnorm2_wrapper.go b/cuda/reducemaxvecnorm2_wrapper.go index 254c44397..77fd69918 100644 --- a/cuda/reducemaxvecnorm2_wrapper.go +++ b/cuda/reducemaxvecnorm2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/reducesum_wrapper.go b/cuda/reducesum_wrapper.go index 0b79e90d4..cbfd81b4d 100644 --- a/cuda/reducesum_wrapper.go +++ b/cuda/reducesum_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/region.go b/cuda/region.go index 04e0a89ad..dd1a0392d 100644 --- a/cuda/region.go +++ b/cuda/region.go @@ -3,8 +3,8 @@ package cuda import ( "unsafe" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // dst += LUT[region], for vectors. Used to add terms to excitation. diff --git a/cuda/regionadds_wrapper.go b/cuda/regionadds_wrapper.go index d90c1fa35..0c2c405df 100644 --- a/cuda/regionadds_wrapper.go +++ b/cuda/regionadds_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/regionaddv_wrapper.go b/cuda/regionaddv_wrapper.go index 45974dd64..7a7b592bb 100644 --- a/cuda/regionaddv_wrapper.go +++ b/cuda/regionaddv_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/regiondecode_wrapper.go b/cuda/regiondecode_wrapper.go index 765e32c15..17966e9f1 100644 --- a/cuda/regiondecode_wrapper.go +++ b/cuda/regiondecode_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/regionselect_wrapper.go b/cuda/regionselect_wrapper.go index db74e720e..925304be3 100644 --- a/cuda/regionselect_wrapper.go +++ b/cuda/regionselect_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/resize.go b/cuda/resize.go index ede8295ac..96a75fd3e 100644 --- a/cuda/resize.go +++ b/cuda/resize.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Select and resize one layer for interactive output diff --git a/cuda/resize_wrapper.go b/cuda/resize_wrapper.go index 6c44171e6..5a15e9868 100644 --- a/cuda/resize_wrapper.go +++ b/cuda/resize_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/shift.go b/cuda/shift.go index a9ad7e886..349d3b14f 100644 --- a/cuda/shift.go +++ b/cuda/shift.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // shift dst by shx cells (positive or negative) along X-axis. diff --git a/cuda/shiftbytes_wrapper.go b/cuda/shiftbytes_wrapper.go index 051b977bd..92c8b52fe 100644 --- a/cuda/shiftbytes_wrapper.go +++ b/cuda/shiftbytes_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/shiftbytesy_wrapper.go b/cuda/shiftbytesy_wrapper.go index 5c935b8ec..ee55988c2 100644 --- a/cuda/shiftbytesy_wrapper.go +++ b/cuda/shiftbytesy_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/shiftx_wrapper.go b/cuda/shiftx_wrapper.go index 599c4964d..f2f9991d5 100644 --- a/cuda/shiftx_wrapper.go +++ b/cuda/shiftx_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/shifty_wrapper.go b/cuda/shifty_wrapper.go index 1884a754b..fe9225f72 100644 --- a/cuda/shifty_wrapper.go +++ b/cuda/shifty_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/shiftz_wrapper.go b/cuda/shiftz_wrapper.go index 76ac53b8c..b2ac1dcf1 100644 --- a/cuda/shiftz_wrapper.go +++ b/cuda/shiftz_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/slice.go b/cuda/slice.go index 9cfa4fe58..9f55a0a2c 100644 --- a/cuda/slice.go +++ b/cuda/slice.go @@ -4,10 +4,10 @@ import ( "math" "unsafe" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/data" - "github.com/mumax/3/timer" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/timer" + "github.com/mumax/3/v3/util" ) // Make a GPU Slice with nComp components each of size length. diff --git a/cuda/slice_test.go b/cuda/slice_test.go index 5d9174d5b..568aff377 100644 --- a/cuda/slice_test.go +++ b/cuda/slice_test.go @@ -3,7 +3,7 @@ package cuda import ( "testing" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) func TestSlice(t *testing.T) { diff --git a/cuda/slonczewski.go b/cuda/slonczewski.go index bab29cfe8..a9e1b28b9 100644 --- a/cuda/slonczewski.go +++ b/cuda/slonczewski.go @@ -1,7 +1,7 @@ package cuda import ( - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) // Add Slonczewski ST torque to torque (Tesla). diff --git a/cuda/slonczewski2_wrapper.go b/cuda/slonczewski2_wrapper.go index ade952068..7bb19dc0a 100644 --- a/cuda/slonczewski2_wrapper.go +++ b/cuda/slonczewski2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/temperature.go b/cuda/temperature.go index 4a443dc56..4e7f1a178 100644 --- a/cuda/temperature.go +++ b/cuda/temperature.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Set Bth to thermal noise (Brown). diff --git a/cuda/temperature2_wrapper.go b/cuda/temperature2_wrapper.go index cb78c8968..85b42eeda 100644 --- a/cuda/temperature2_wrapper.go +++ b/cuda/temperature2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/theta_wrapper.go b/cuda/theta_wrapper.go index cd7b55ab0..e2625de94 100644 --- a/cuda/theta_wrapper.go +++ b/cuda/theta_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/topologicalcharge.go b/cuda/topologicalcharge.go index 82baffc1c..c2fff2f21 100644 --- a/cuda/topologicalcharge.go +++ b/cuda/topologicalcharge.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Set s to the toplogogical charge density s = m · (∂m/∂x ❌ ∂m/∂y) diff --git a/cuda/topologicalcharge_wrapper.go b/cuda/topologicalcharge_wrapper.go index fc5c6152b..977fbfefd 100644 --- a/cuda/topologicalcharge_wrapper.go +++ b/cuda/topologicalcharge_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/topologicalchargelattice.go b/cuda/topologicalchargelattice.go index 6904e317c..a316b522f 100644 --- a/cuda/topologicalchargelattice.go +++ b/cuda/topologicalchargelattice.go @@ -1,8 +1,8 @@ package cuda import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Topological charge according to Berg and Lüscher diff --git a/cuda/topologicalchargelattice_wrapper.go b/cuda/topologicalchargelattice_wrapper.go index d78f260b9..81080164d 100644 --- a/cuda/topologicalchargelattice_wrapper.go +++ b/cuda/topologicalchargelattice_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/uniaxialanisotropy2_wrapper.go b/cuda/uniaxialanisotropy2_wrapper.go index 57cdaced2..9cc65ff38 100644 --- a/cuda/uniaxialanisotropy2_wrapper.go +++ b/cuda/uniaxialanisotropy2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/util.go b/cuda/util.go index 09e26a71e..80fe3289a 100644 --- a/cuda/util.go +++ b/cuda/util.go @@ -2,7 +2,7 @@ package cuda import ( "fmt" - "github.com/mumax/3/cuda/cu" + "github.com/mumax/3/v3/cuda/cu" ) // CUDA Launch parameters. diff --git a/cuda/zeromask.go b/cuda/zeromask.go index 8d12fcd43..168fe24f6 100644 --- a/cuda/zeromask.go +++ b/cuda/zeromask.go @@ -3,7 +3,7 @@ package cuda import ( "unsafe" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) // Sets vector dst to zero where mask != 0. diff --git a/cuda/zeromask_wrapper.go b/cuda/zeromask_wrapper.go index 9c616401c..cd3aad5e4 100644 --- a/cuda/zeromask_wrapper.go +++ b/cuda/zeromask_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/cuda/zhangli.go b/cuda/zhangli.go index c2346f536..5c8b93ea8 100644 --- a/cuda/zhangli.go +++ b/cuda/zhangli.go @@ -1,7 +1,7 @@ package cuda import ( - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) // Add Zhang-Li ST torque (Tesla) to torque. diff --git a/cuda/zhangli2_wrapper.go b/cuda/zhangli2_wrapper.go index e810ff6c3..9d2d07779 100644 --- a/cuda/zhangli2_wrapper.go +++ b/cuda/zhangli2_wrapper.go @@ -6,8 +6,8 @@ package cuda */ import ( - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" "sync" "unsafe" ) diff --git a/data/resample.go b/data/resample.go index 5d0e4aa74..96d429521 100644 --- a/data/resample.go +++ b/data/resample.go @@ -1,7 +1,7 @@ package data import ( - "github.com/mumax/3/util" + "github.com/mumax/3/v3/util" ) // Resample returns a slice of new size N, diff --git a/data/slice.go b/data/slice.go index 759527e05..905f83bf2 100644 --- a/data/slice.go +++ b/data/slice.go @@ -5,7 +5,7 @@ package data import ( "bytes" "fmt" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/util" "log" "reflect" "unsafe" diff --git a/doc/apigen.go b/doc/apigen.go index c741db4f8..67f66aec7 100644 --- a/doc/apigen.go +++ b/doc/apigen.go @@ -12,8 +12,8 @@ import ( "text/template" "unicode" - "github.com/mumax/3/cuda" - "github.com/mumax/3/engine" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/engine" ) var ( diff --git a/draw/arrows.go b/draw/arrows.go index 75fd2f1a7..6ca9a8efe 100644 --- a/draw/arrows.go +++ b/draw/arrows.go @@ -1,8 +1,8 @@ package draw import ( - "github.com/mumax/3/data" - "github.com/mumax/3/freetype/raster" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/freetype/raster" "image" "image/color" "math" diff --git a/draw/encode.go b/draw/encode.go index 38bc025f3..6b183ca97 100644 --- a/draw/encode.go +++ b/draw/encode.go @@ -3,7 +3,7 @@ package draw import ( "bufio" "fmt" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" "image" "image/gif" "image/jpeg" diff --git a/draw/image.go b/draw/image.go index 9d692f706..5fe949df9 100644 --- a/draw/image.go +++ b/draw/image.go @@ -1,8 +1,8 @@ package draw import ( - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "image" "image/color" "log" diff --git a/draw/svg.go b/draw/svg.go index ed98f85e0..64386aa33 100644 --- a/draw/svg.go +++ b/draw/svg.go @@ -2,7 +2,7 @@ package draw import ( "fmt" - "github.com/mumax/3/svgo" + "github.com/mumax/3/v3/svgo" "io" "math" ) diff --git a/dump/read.go b/dump/read.go index 05d88e41d..85aa16bfd 100644 --- a/dump/read.go +++ b/dump/read.go @@ -3,8 +3,8 @@ package dump import ( "fmt" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "hash" "hash/crc64" "io" diff --git a/dump/write.go b/dump/write.go index f7d000e31..3b978d828 100644 --- a/dump/write.go +++ b/dump/write.go @@ -2,8 +2,8 @@ package dump import ( "bufio" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "hash" "hash/crc64" "io" diff --git a/engine/anisotropy.go b/engine/anisotropy.go index 2a8aa896f..43f79d1b5 100644 --- a/engine/anisotropy.go +++ b/engine/anisotropy.go @@ -3,8 +3,8 @@ package engine // Magnetocrystalline anisotropy. import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) // Anisotropy variables diff --git a/engine/asyncio.go b/engine/asyncio.go index 2147950b9..d1a713b49 100644 --- a/engine/asyncio.go +++ b/engine/asyncio.go @@ -1,9 +1,9 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/timer" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/timer" + "github.com/mumax/3/v3/util" "time" ) diff --git a/engine/average.go b/engine/average.go index d00208489..95b428259 100644 --- a/engine/average.go +++ b/engine/average.go @@ -3,8 +3,8 @@ package engine // Averaging of quantities over entire universe or just magnet. import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) // average of quantity over universe diff --git a/engine/backwardeuler.go b/engine/backwardeuler.go index a10cb88b8..80771331e 100644 --- a/engine/backwardeuler.go +++ b/engine/backwardeuler.go @@ -1,9 +1,9 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Implicit midpoint solver. diff --git a/engine/bib.go b/engine/bib.go index f939516c4..044008b98 100644 --- a/engine/bib.go +++ b/engine/bib.go @@ -3,8 +3,8 @@ package engine import ( "io" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/util" ) const separationline = ` diff --git a/engine/comp.go b/engine/comp.go index 9272ca844..ee9253a55 100644 --- a/engine/comp.go +++ b/engine/comp.go @@ -4,9 +4,9 @@ package engine import ( "fmt" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) type component struct { diff --git a/engine/config.go b/engine/config.go index 92ffedf4d..4894391e5 100644 --- a/engine/config.go +++ b/engine/config.go @@ -3,7 +3,7 @@ package engine // Utilities for setting magnetic configurations. import ( - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" "math" "math/rand" ) diff --git a/engine/crop.go b/engine/crop.go index 09e1da8dd..763e71b8b 100644 --- a/engine/crop.go +++ b/engine/crop.go @@ -4,9 +4,9 @@ package engine import ( "fmt" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) func init() { diff --git a/engine/customfield.go b/engine/customfield.go index f848db4c4..9cc512424 100644 --- a/engine/customfield.go +++ b/engine/customfield.go @@ -5,9 +5,9 @@ package engine import ( "fmt" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) var ( diff --git a/engine/demag.go b/engine/demag.go index bcab12b45..1af68e1c1 100644 --- a/engine/demag.go +++ b/engine/demag.go @@ -3,9 +3,9 @@ package engine // Calculation of magnetostatic field import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/mag" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/mag" ) // Demag variables diff --git a/engine/effectivefield.go b/engine/effectivefield.go index 570129944..224cce7cf 100644 --- a/engine/effectivefield.go +++ b/engine/effectivefield.go @@ -2,7 +2,7 @@ package engine // Effective field -import "github.com/mumax/3/data" +import "github.com/mumax/3/v3/data" var B_eff = NewVectorField("B_eff", "T", "Effective field", SetEffectiveField) diff --git a/engine/energy.go b/engine/energy.go index e2cf0af6b..f781c401c 100644 --- a/engine/energy.go +++ b/engine/energy.go @@ -3,8 +3,8 @@ package engine // Total energy calculation import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) // TODO: Integrate(Edens) diff --git a/engine/engine.go b/engine/engine.go index d2ec723d9..2fd75deea 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -18,8 +18,8 @@ import ( "sync" "time" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/timer" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/timer" ) const VERSION = "mumax 3.10" diff --git a/engine/euler.go b/engine/euler.go index 01cbf2512..224893278 100644 --- a/engine/euler.go +++ b/engine/euler.go @@ -1,8 +1,8 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/util" ) type Euler struct{} diff --git a/engine/exchange.go b/engine/exchange.go index abf0c93c3..14060be22 100644 --- a/engine/exchange.go +++ b/engine/exchange.go @@ -7,10 +7,10 @@ import ( "math" "unsafe" - "github.com/mumax/3/cuda" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) var ( diff --git a/engine/excitation.go b/engine/excitation.go index 06e693c1b..f72adb927 100644 --- a/engine/excitation.go +++ b/engine/excitation.go @@ -1,10 +1,10 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/script" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/script" + "github.com/mumax/3/v3/util" "math" "reflect" ) diff --git a/engine/ext_angles.go b/engine/ext_angles.go index 7e097680c..3ac4b0318 100644 --- a/engine/ext_angles.go +++ b/engine/ext_angles.go @@ -1,8 +1,8 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) var ( diff --git a/engine/ext_centerbubble.go b/engine/ext_centerbubble.go index 049d06ff5..554617574 100644 --- a/engine/ext_centerbubble.go +++ b/engine/ext_centerbubble.go @@ -1,7 +1,7 @@ package engine import ( - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" "math" ) diff --git a/engine/ext_centerwall.go b/engine/ext_centerwall.go index d334f6f00..4bf7f599e 100644 --- a/engine/ext_centerwall.go +++ b/engine/ext_centerwall.go @@ -2,7 +2,7 @@ package engine import ( "fmt" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" ) var ( diff --git a/engine/ext_magnetoelastic.go b/engine/ext_magnetoelastic.go index 664fd2846..fc9ef2b1f 100644 --- a/engine/ext_magnetoelastic.go +++ b/engine/ext_magnetoelastic.go @@ -3,9 +3,9 @@ package engine // Mangeto-elastic coupling. import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) var ( diff --git a/engine/ext_rmsurfacecharge.go b/engine/ext_rmsurfacecharge.go index 69316b0ba..f5ec776e6 100644 --- a/engine/ext_rmsurfacecharge.go +++ b/engine/ext_rmsurfacecharge.go @@ -2,9 +2,9 @@ package engine import ( "fmt" - "github.com/mumax/3/data" - "github.com/mumax/3/mag" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/mag" + "github.com/mumax/3/v3/util" "math" ) diff --git a/engine/ext_topologicalcharge.go b/engine/ext_topologicalcharge.go index d04c0cbf3..3f6f22ef6 100644 --- a/engine/ext_topologicalcharge.go +++ b/engine/ext_topologicalcharge.go @@ -3,8 +3,8 @@ package engine import ( "math" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) var ( diff --git a/engine/ext_topologicalchargelattice.go b/engine/ext_topologicalchargelattice.go index 38e1060b9..81c39ceee 100644 --- a/engine/ext_topologicalchargelattice.go +++ b/engine/ext_topologicalchargelattice.go @@ -3,8 +3,8 @@ package engine import ( "math" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) var ( diff --git a/engine/geom.go b/engine/geom.go index 597f029a0..b4ce468de 100644 --- a/engine/geom.go +++ b/engine/geom.go @@ -1,11 +1,11 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" - "github.com/mumax/3/oommf" - "github.com/mumax/3/httpfs" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" + "github.com/mumax/3/v3/oommf" + "github.com/mumax/3/v3/httpfs" "math/rand" ) diff --git a/engine/gofiles.go b/engine/gofiles.go index 06a2099aa..33a0d485e 100644 --- a/engine/gofiles.go +++ b/engine/gofiles.go @@ -4,8 +4,8 @@ package engine import ( "flag" - "github.com/mumax/3/cuda" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/util" "os" "path" ) diff --git a/engine/gui.go b/engine/gui.go index 9de9a301b..72f818e93 100644 --- a/engine/gui.go +++ b/engine/gui.go @@ -2,11 +2,11 @@ package engine import ( "fmt" - "github.com/mumax/3/cuda" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/gui" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/gui" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/util" "math/rand" "net" "net/http" diff --git a/engine/heun.go b/engine/heun.go index 09a439a9b..8b27f66bf 100644 --- a/engine/heun.go +++ b/engine/heun.go @@ -1,8 +1,8 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/util" "math" ) diff --git a/engine/log.go b/engine/log.go index 0bcf5a102..6cbd1c0b8 100644 --- a/engine/log.go +++ b/engine/log.go @@ -2,8 +2,8 @@ package engine import ( "fmt" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/util" "io" "os" ) diff --git a/engine/lutdata.go b/engine/lutdata.go index 6367155fa..36e69ea0a 100644 --- a/engine/lutdata.go +++ b/engine/lutdata.go @@ -1,10 +1,10 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/cuda/cu" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/cuda/cu" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "unsafe" ) diff --git a/engine/magnetization.go b/engine/magnetization.go index 8d8c68b08..dae8acc0d 100644 --- a/engine/magnetization.go +++ b/engine/magnetization.go @@ -1,9 +1,9 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "reflect" ) diff --git a/engine/maxangle.go b/engine/maxangle.go index 060d21f91..55993fec7 100644 --- a/engine/maxangle.go +++ b/engine/maxangle.go @@ -1,8 +1,8 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) var ( diff --git a/engine/mesh.go b/engine/mesh.go index 40ca09487..dde03a048 100644 --- a/engine/mesh.go +++ b/engine/mesh.go @@ -1,8 +1,8 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) var globalmesh_ data.Mesh // mesh for m and everything that has the same size diff --git a/engine/mfm.go b/engine/mfm.go index 1bc4c7033..3d36a0791 100644 --- a/engine/mfm.go +++ b/engine/mfm.go @@ -1,8 +1,8 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) var ( diff --git a/engine/minimizer.go b/engine/minimizer.go index ca638fac5..7fd2dad6e 100644 --- a/engine/minimizer.go +++ b/engine/minimizer.go @@ -3,8 +3,8 @@ package engine // Minimize follows the steepest descent method as per Exl et al., JAP 115, 17D118 (2014). import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) var ( diff --git a/engine/od.go b/engine/od.go index 21e9239e5..43d414f01 100644 --- a/engine/od.go +++ b/engine/od.go @@ -3,7 +3,7 @@ package engine // Management of output directory. import ( - "github.com/mumax/3/httpfs" + "github.com/mumax/3/v3/httpfs" "strings" ) diff --git a/engine/oneregion.go b/engine/oneregion.go index a10045b3a..3c294af60 100644 --- a/engine/oneregion.go +++ b/engine/oneregion.go @@ -2,9 +2,9 @@ package engine import ( "fmt" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) func sInRegion(q Quantity, r int) ScalarField { diff --git a/engine/outputquantities.go b/engine/outputquantities.go index 51304744a..f57b06e6a 100644 --- a/engine/outputquantities.go +++ b/engine/outputquantities.go @@ -10,8 +10,8 @@ in objects that provide: import ( "fmt" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) // The Info interface defines the bare minimum methods a quantity must implement diff --git a/engine/parameter.go b/engine/parameter.go index ac97c1b1e..803ca8a5d 100644 --- a/engine/parameter.go +++ b/engine/parameter.go @@ -11,10 +11,10 @@ import ( "reflect" "strings" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/script" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/script" + "github.com/mumax/3/v3/util" ) // input parameter, settable by user diff --git a/engine/plot.go b/engine/plot.go index 20056a9f6..c29ca8115 100644 --- a/engine/plot.go +++ b/engine/plot.go @@ -4,7 +4,7 @@ import ( "bytes" "errors" "fmt" - "github.com/mumax/3/httpfs" + "github.com/mumax/3/v3/httpfs" "image" "image/png" "io/ioutil" diff --git a/engine/quantity.go b/engine/quantity.go index d68f8bee0..f482a00e2 100644 --- a/engine/quantity.go +++ b/engine/quantity.go @@ -1,8 +1,8 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" "reflect" ) diff --git a/engine/regions.go b/engine/regions.go index 7ccf8f791..66ced52d4 100644 --- a/engine/regions.go +++ b/engine/regions.go @@ -1,9 +1,9 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) var regions = Regions{info: info{1, "regions", ""}} // global regions map diff --git a/engine/relax.go b/engine/relax.go index a7e60833d..e9e299723 100644 --- a/engine/relax.go +++ b/engine/relax.go @@ -3,7 +3,7 @@ package engine // Relax tries to find the minimum energy state. import ( - "github.com/mumax/3/cuda" + "github.com/mumax/3/v3/cuda" "math" ) diff --git a/engine/render.go b/engine/render.go index 104bbebcf..8e22a608f 100644 --- a/engine/render.go +++ b/engine/render.go @@ -1,9 +1,9 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/draw" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/draw" "image" "image/jpeg" "math" diff --git a/engine/rk23.go b/engine/rk23.go index 6d0d38f64..701e4dfc9 100644 --- a/engine/rk23.go +++ b/engine/rk23.go @@ -1,9 +1,9 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "math" ) diff --git a/engine/rk4.go b/engine/rk4.go index 5e5216dd9..de951543e 100644 --- a/engine/rk4.go +++ b/engine/rk4.go @@ -1,9 +1,9 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "math" ) diff --git a/engine/rk45dp.go b/engine/rk45dp.go index 4f59642f2..f73ed97d5 100644 --- a/engine/rk45dp.go +++ b/engine/rk45dp.go @@ -1,9 +1,9 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "math" ) diff --git a/engine/rk56.go b/engine/rk56.go index 5bbe8738d..0581fd61a 100644 --- a/engine/rk56.go +++ b/engine/rk56.go @@ -1,9 +1,9 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "math" ) diff --git a/engine/run.go b/engine/run.go index 6cff99b23..69360236c 100644 --- a/engine/run.go +++ b/engine/run.go @@ -5,9 +5,9 @@ import ( "math" "os" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) // Solver globals diff --git a/engine/save.go b/engine/save.go index 784cbe6c0..f3301c49b 100644 --- a/engine/save.go +++ b/engine/save.go @@ -6,13 +6,13 @@ import ( "reflect" "strings" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/draw" - "github.com/mumax/3/dump" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/oommf" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/draw" + "github.com/mumax/3/v3/dump" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/oommf" + "github.com/mumax/3/v3/util" ) func init() { diff --git a/engine/scalar_excitation.go b/engine/scalar_excitation.go index b45fef5a5..f51dec87a 100644 --- a/engine/scalar_excitation.go +++ b/engine/scalar_excitation.go @@ -1,10 +1,10 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/script" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/script" + "github.com/mumax/3/v3/util" "reflect" ) diff --git a/engine/script.go b/engine/script.go index 2f31be44a..a643fc9ff 100644 --- a/engine/script.go +++ b/engine/script.go @@ -3,8 +3,8 @@ package engine // declare functionality for interpreted input scripts import ( - "github.com/mumax/3/httpfs" - "github.com/mumax/3/script" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/script" "reflect" ) diff --git a/engine/shape.go b/engine/shape.go index 94f81a815..7bb6ddec9 100644 --- a/engine/shape.go +++ b/engine/shape.go @@ -6,9 +6,9 @@ import ( _ "image/png" "math" - "github.com/mumax/3/data" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/util" ) func init() { diff --git a/engine/shift.go b/engine/shift.go index 20fea1433..436f5a68e 100644 --- a/engine/shift.go +++ b/engine/shift.go @@ -1,8 +1,8 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" ) var ( diff --git a/engine/table.go b/engine/table.go index 6b8c577e3..ccdaf8976 100644 --- a/engine/table.go +++ b/engine/table.go @@ -2,12 +2,12 @@ package engine import ( "fmt" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/script" - "github.com/mumax/3/timer" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/script" + "github.com/mumax/3/v3/timer" + "github.com/mumax/3/v3/util" "io" "sync" "time" diff --git a/engine/temperature.go b/engine/temperature.go index f3a3a18ae..edce153bd 100644 --- a/engine/temperature.go +++ b/engine/temperature.go @@ -1,11 +1,11 @@ package engine import ( - "github.com/mumax/3/cuda" - "github.com/mumax/3/cuda/curand" - "github.com/mumax/3/data" - "github.com/mumax/3/mag" - //"github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/cuda/curand" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/mag" + //"github.com/mumax/3/v3/util" "math" ) diff --git a/engine/torque.go b/engine/torque.go index 9b1a18245..a65d11c70 100644 --- a/engine/torque.go +++ b/engine/torque.go @@ -3,9 +3,9 @@ package engine import ( "reflect" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" ) var ( diff --git a/engine/util.go b/engine/util.go index 380607c03..45c8040a1 100644 --- a/engine/util.go +++ b/engine/util.go @@ -8,13 +8,13 @@ import ( "sort" "strings" - "github.com/mumax/3/cuda" - "github.com/mumax/3/data" - "github.com/mumax/3/dump" - "github.com/mumax/3/httpfs" - "github.com/mumax/3/mag" - "github.com/mumax/3/oommf" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/cuda" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/dump" + "github.com/mumax/3/v3/httpfs" + "github.com/mumax/3/v3/mag" + "github.com/mumax/3/v3/oommf" + "github.com/mumax/3/v3/util" ) func init() { diff --git a/go.mod b/go.mod new file mode 100644 index 000000000..529b3b6ca --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/mumax/3/v3 + +go 1.12 diff --git a/mag/demagkernel.go b/mag/demagkernel.go index 0261ac59e..bd54cb05a 100644 --- a/mag/demagkernel.go +++ b/mag/demagkernel.go @@ -3,10 +3,10 @@ package mag import ( "bufio" "fmt" - "github.com/mumax/3/data" - "github.com/mumax/3/oommf" - "github.com/mumax/3/timer" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/oommf" + "github.com/mumax/3/v3/timer" + "github.com/mumax/3/v3/util" "math" "os" ) diff --git a/mag/mfmkernel.go b/mag/mfmkernel.go index 603767496..7f0306419 100644 --- a/mag/mfmkernel.go +++ b/mag/mfmkernel.go @@ -3,9 +3,9 @@ package mag import ( "bufio" "fmt" - d "github.com/mumax/3/data" - "github.com/mumax/3/oommf" - "github.com/mumax/3/util" + d "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/oommf" + "github.com/mumax/3/v3/util" "math" "os" ) diff --git a/oommf/oommf.go b/oommf/oommf.go index 267ca6050..1cd7e6068 100644 --- a/oommf/oommf.go +++ b/oommf/oommf.go @@ -4,8 +4,8 @@ package oommf import ( "bufio" "fmt" - "github.com/mumax/3/data" - "github.com/mumax/3/util" + "github.com/mumax/3/v3/data" + "github.com/mumax/3/v3/util" "io" "os" "strconv" diff --git a/oommf/ovf1.go b/oommf/ovf1.go index 8e7007647..bbaee5a87 100644 --- a/oommf/ovf1.go +++ b/oommf/ovf1.go @@ -3,7 +3,7 @@ package oommf import ( "encoding/binary" "fmt" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" "io" "log" "strings" diff --git a/oommf/ovf2.go b/oommf/ovf2.go index c4ba64a18..365b786e9 100644 --- a/oommf/ovf2.go +++ b/oommf/ovf2.go @@ -2,7 +2,7 @@ package oommf import ( "fmt" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" "io" "log" "strings" diff --git a/script/funcif.go b/script/funcif.go index 40bc3d4de..50db19a97 100644 --- a/script/funcif.go +++ b/script/funcif.go @@ -3,7 +3,7 @@ package script // Here be dragons import ( - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" "reflect" ) diff --git a/script/typeconv.go b/script/typeconv.go index ef3a7725d..2eaeed017 100644 --- a/script/typeconv.go +++ b/script/typeconv.go @@ -2,7 +2,7 @@ package script import ( "fmt" - "github.com/mumax/3/data" + "github.com/mumax/3/v3/data" "go/token" "reflect" ) diff --git a/test/antenna.go b/test/antenna.go index 537d9a1fa..0624ac1a0 100644 --- a/test/antenna.go +++ b/test/antenna.go @@ -3,9 +3,9 @@ package main import ( - "github.com/mumax/3/data" - . "github.com/mumax/3/engine" - "github.com/mumax/3/oommf" + "github.com/mumax/3/v3/data" + . "github.com/mumax/3/v3/engine" + "github.com/mumax/3/v3/oommf" "math" "os" ) diff --git a/test/custom_anisotropy.go b/test/custom_anisotropy.go index 83f4c702c..76f473590 100644 --- a/test/custom_anisotropy.go +++ b/test/custom_anisotropy.go @@ -6,7 +6,7 @@ package main import ( - . "github.com/mumax/3/engine" + . "github.com/mumax/3/v3/engine" ) func main() { diff --git a/test/standardproblem4.go b/test/standardproblem4.go index 85b8dc322..7bb62bdab 100644 --- a/test/standardproblem4.go +++ b/test/standardproblem4.go @@ -3,7 +3,7 @@ package main import ( - . "github.com/mumax/3/engine" + . "github.com/mumax/3/v3/engine" ) func main() { diff --git a/test/thermometer.go b/test/thermometer.go index 896ff5e8f..f39ee026c 100644 --- a/test/thermometer.go +++ b/test/thermometer.go @@ -24,8 +24,8 @@ Due to this difference, we need to add the following constant value to the divis package main import ( - "github.com/mumax/3/cuda" - . "github.com/mumax/3/engine" + "github.com/mumax/3/v3/cuda" + . "github.com/mumax/3/v3/engine" ) const kB = 1.38064852e-23 // Boltzmann constant