Commit Graph

967 Commits

Author SHA1 Message Date
jpekkila
d56c7ef312 Updated modelsolver to use the same induction equation as the updated DSL kernel 2020-09-14 13:28:44 +03:00
jpekkila
6d2be634d7 Simulation.cc sets LBFIELD (1) only if BFIELDX has been defined in the DSL 2020-09-14 13:27:56 +03:00
jpekkila
830b8ad179 Disabled LBFIELD by default as there are no autotests for it 2020-09-14 13:27:09 +03:00
jpekkila
784ff61436 Merge branch 'master' into dignostics_2020_09 2020-09-14 13:03:32 +03:00
Miikka Vaisala
4372a378ed Plot Alfven speeds. 2020-09-14 15:46:46 +08:00
Miikka Vaisala
66afc21162 Improved Python file reading routines. 2020-09-14 15:40:29 +08:00
Miikka Vaisala
948b16aaaa Added vidualization properties to python samples. 2020-09-14 15:19:48 +08:00
Miikka Vaisala
7f8e6f90e0 Changed default swithces. 2020-09-14 14:58:10 +08:00
Miikka Vaisala
2538271ef8 Added slightly edited notes about autotesting. 2020-09-14 11:39:01 +08:00
Miikka Vaisala
e9e247c526 NOW COMPILES. Improvements to timestepping. 2020-09-11 17:03:10 +08:00
Miikka Vaisala
66662c1603 Defines for new diagnostics. 2020-09-11 16:52:12 +08:00
Miikka Vaisala
6c0cb5e88f Diagnostic kernel addition to calculate vAfven. 2020-09-11 16:22:18 +08:00
Miikka Vaisala
94d1d053bc ReduceVecScal calls added. For Alfven speeds. 2020-09-11 15:54:53 +08:00
Miikka Vaisala
b815b62aa7 Enhanced simulation cc. Now magnetic fields diagnostics invoked if needed.
Also more exit condition so that the simulation will terminate if nan happens or timestep becomes too short.
2020-09-11 14:59:32 +08:00
Miikka Vaisala
450526b8e1 B-field calculation to the DSL file.
Still needs corresponding things elsewhere...
2020-09-11 13:23:01 +08:00
Miikka Vaisala
7848dedfbe Gauge correction to the induction equation for the sake of numerical stability.
Used in my dynamo work, but apparantly was not done to the main repo.
2020-09-11 11:58:09 +08:00
jpekkila
b7e7853b10 Added an error message if trying to load device constants without MPI 2020-08-24 19:41:53 +03:00
jpekkila
cec9a23dc0 Added a stripped down MPI version of standalone: standalone_mpi. In fact, it's more like a pure simulation module since I've dropped real-time rendering and other old parts that do not work with MPI without heavy modifications. The most important functionalities in addition to simulation have already been adapted to work with MPI (samples/benchmark and samples/mpi) so there's no need to re-create them in standalone_mpi. The current version of standalone_mpi is able to run a basic simulation and I get an agreement with non-mpi and mpi versions after 100 timesteps. There's also draft that's a direct adaptation of what's currently in standalone/simulation.cc (it should be 100% equivalent), but it's currently commented out as I haven't done extensive tests with it. 2020-08-24 19:03:03 +03:00
jpekkila
f21c6a8c0b Disabled LFORCING and LUPWD temporarily until the new MPI standalone module is properly tested 2020-08-24 18:46:38 +03:00
jpekkila
4052120f52 dt wasn't propagated properly to all GPUs when computing integration steps, fixed 2020-08-24 18:33:54 +03:00
jpekkila
e1dd8df988 Re-enabled warnings about invalid device constants if AC_VERBOSE=OFF 2020-08-24 17:20:35 +03:00
jpekkila
8199ff914f Added acGridLoadScalarUniform and acGridLoadVectorUniform functions for loading specific device constants with MPI 2020-08-24 17:19:02 +03:00
jpekkila
94794cee91 Added acVertexBufferSet in the utils interface 2020-08-24 14:29:01 +03:00
jpekkila
ed875b1e7e README.md edited online with Bitbucket 2020-08-21 18:29:51 +00:00
jpekkila
22367c0aab bitbucket-pipelines.yml edited online with Bitbucket 2020-08-21 18:24:06 +00:00
jpekkila
d966afe830 Added VERBOSE CMake option and made various prints optional to clean the output. VERBOSE is by off by default, pass cmake -DVERBOSE=ON to re-enable various non-critical warning and status prints (important warnings are still visible regardless of the flag). 2020-08-21 21:19:42 +03:00
jpekkila
9f676a6d5d Fixed some stupid logic when loading uniforms 2020-08-21 20:23:50 +03:00
jpekkila
764e4dda69 Streamlined verification 2020-08-21 20:11:25 +03:00
jpekkila
b847b67805 Disabled building some old samples that are not used or have very specific use cases: genbenchmarkscripts, mpi_reduce_bench, bwtest. Functionality of mpi_reduce_bench should be merged into samples/benchmark when tuning becomes relevant 2020-08-21 19:08:50 +03:00
jpekkila
8c28aacf96 Reduction types are now generated in a same fashion as vertexbuffer handles and others 2020-08-21 19:05:01 +03:00
jpekkila
56273433fe Fixed inconsistency in the acGridLoad parameter order 2020-08-21 14:40:11 +03:00
jpekkila
f2cb9e1dc1 Merged in decoupled-standalone-from-core-2020-08-19 (pull request #13)
Decoupled standalone from core 2020 08 19
2020-08-21 03:06:31 +00:00
jpekkila
c4d6c0ae46 Merge branch 'master' into decoupled-standalone-from-core-2020-08-19 2020-08-20 15:01:47 +03:00
jpekkila
dfe7bcdf98 README.md fixes: BUILD_STANDALONE is deprecated, standalone is now built with other samples and BUILD_SAMPLES=ON by default. 2020-08-20 11:58:40 +00:00
jpekkila
31d0983f08 Fixed an incorrect description in README.md 2020-08-20 11:54:49 +00:00
jpekkila
d4cbe287ea Merge branch 'master' into decoupled-standalone-from-core-2020-08-19 2020-08-20 14:32:26 +03:00
Miikka Vaisala
ea93a556b3 Updated a working mpirun instruction to the readme. 2020-08-20 13:47:09 +08:00
jpekkila
b0cfceab98 Merged with master 2020-08-19 16:16:06 +03:00
jpekkila
6e5f0726b7 Needed one more flag to force MPI to use the C interface 2020-08-19 16:05:28 +03:00
jpekkila
46cfa9cd37 Now using MPI C bindings instead of the (deprecated?) C++ bindings due to compilation issues on some machines (error: cast between incompatible function types, ompi_mpi_cxx_op_intercept) 2020-08-19 15:50:16 +03:00
jpekkila
03c0173021 Try #4 2020-08-19 12:07:56 +00:00
jpekkila
e32e824a85 Try #3 2020-08-19 11:50:06 +00:00
jpekkila
3f85240d9c Try #2 2020-08-19 11:44:37 +00:00
jpekkila
1c4aac80c3 Autobuild gets stuck due to interactive dialog when installing some package, a potential fix. 2020-08-19 11:36:23 +00:00
jpekkila
d6fc9552e9 Merge branch 'master' into decoupled-standalone-from-core-2020-08-19 2020-08-19 13:51:38 +03:00
jpekkila
043237f677 Now samples build even if MPI is not available 2020-08-19 13:50:26 +03:00
jpekkila
f9e9a4a4ef Streamlined setting up MPI in the CMakeLists 2020-08-19 13:44:35 +03:00
jpekkila
b035dfd6fb Modified CMakeLists.txt: standalone is now built with samples and BUILD_SAMPLES=ON by default 2020-08-19 13:36:40 +03:00
jpekkila
e051d72091 Moved standalone from src to samples 2020-08-19 13:35:49 +03:00
jpekkila
38e3fad023 New try 2020-08-19 12:52:45 +03:00