jpekkila
d8eb2723b4
Added an acBoundconds() call before acStore in autotest.cc
2019-08-07 19:10:04 +03:00
jpekkila
1525e0603f
Added some preliminary pragma omps and verified that acIntegrate works as it should.
2019-08-07 19:08:52 +03:00
jpekkila
10200e4dd5
Merge branch 'master' into node_device_interface_revision_07-23
2019-08-07 16:25:33 +03:00
jpekkila
e2f5cced1e
Renamed dox -> dot
2019-08-07 16:08:03 +03:00
jpekkila
b61617ee0f
Enabled upwinding by default and updated the model helical forcing with the hotfixed changes from earlier commits. Autotests kinda pass (we get 1 failure but this is likely due to inaccuracies of the trigonometric functions used in helical forcing. The error is very close to the acceptable error bound).
2019-08-07 15:53:38 +03:00
Miikka Vaisala
0bb568642f
Still one bug
2019-08-07 19:10:39 +08:00
Miikka Vaisala
738b2abaf3
Supposedly working autotest for upwinding.
2019-08-07 18:57:53 +08:00
Miikka Vaisala
065f20819f
Merge branch 'master' into bugfix/upwind_autotest_20190807
2019-08-07 18:23:03 +08:00
JackHsu
240040011a
Merge branch 'master' into sink_20190723
2019-08-07 15:40:21 +08:00
Miikka Vaisala
7cc524b78b
Adapting for autotest but i, j, k indexing is confusing.
2019-08-07 14:57:51 +08:00
jpekkila
a930864f42
Merge branch 'master' into node_device_interface_revision_07-23
2019-08-07 07:43:28 +03:00
jpekkila
cf6b75f82a
Merged in cmakelist_rewrite_and_C_API_conformity_07-26 (pull request #1 )
2019-08-07 06:53:17 +03:00
Miikka Vaisala
9af5ba2156
Copied elements in the DSL form.
...
Needs to be adapted at the next stage.
2019-08-07 11:11:27 +08:00
Miikka Vaisala
e199ca196d
Merge branch 'master' into sink_20190723
2019-08-07 10:46:23 +08:00
jpekkila
d7e26e8f21
Added forcing from stencil_process.sps to autotests. 3 Tests fail.
2019-08-06 19:15:28 +03:00
jpekkila
0e0ace3970
Pure hydro now works with autotests
2019-08-06 18:07:29 +03:00
jpekkila
daee456660
Merge branch 'cmakelist_rewrite_and_C_API_conformity_07-26' into node_device_interface_revision_07-23
2019-08-06 17:57:30 +03:00
jpekkila
abf4815174
Merge branch 'master' into cmakelist_rewrite_and_C_API_conformity_07-26
2019-08-06 17:53:53 +03:00
jpekkila
e4d9898f35
Added improvements to autotest.cc
2019-08-06 17:40:27 +03:00
jpekkila
812b5e170e
Added some error checking to rendering
2019-08-06 16:32:36 +03:00
jpekkila
e4b981fc62
Removed the O2 flag since cmake still defines the O3 flag in CMAKE_CXX_FLAGS_RELEASE and it's confusing which one gcc chooses if both O3 and O2 are passed during compilation. If the issue was the march=native flag then this should also work on Tiara
2019-08-06 14:59:41 +03:00
jpekkila
5f4246fb42
Standalone now uses O2 optimization level instead of O3. Also removed -march=native since this causes issues if the program is compiled on a different architecture than it is run on. Since we do not do heavy arithmetic on the host side and the host code is not performance-critical part of the code, -march-native is not very useful anyways
2019-08-06 14:46:13 +03:00
JackHsu
239e8b4d3e
Can set the density for intitial condition from astaroth.conf.
2019-08-02 17:31:49 +08:00
Miikka Vaisala
3c87fe0b48
Added unit_mass
2019-08-02 13:48:09 +08:00
Miikka Vaisala
99d80f7175
Renaming for bug correction. Use now AC_M_sink_Msun in astaroth.conf instead of AC_M_sink!
2019-08-01 18:06:57 +08:00
Miikka Vaisala
6927ddff5a
Correct an obscure bug.
2019-08-01 17:57:21 +08:00
JackHsu
29d6a9b00a
Fixed scaling for sink particle, and added softening factor.
2019-08-01 16:33:58 +08:00
jpekkila
92376588ba
Merge branch 'master' into cmakelist_rewrite_and_C_API_conformity_07-26
2019-07-31 20:12:22 +03:00
jpekkila
15ad7182db
Added sum reduction. NOTE: Scalar sum does not pass the automated test but vector sum does. I couldn't see anything wrong with the code itself and I strongly suspect that the failures are caused by loss of precision due to summing a huge amount of numbers of different magnitudes. However I'm not yet completely sure. Something like the Kahan summation algorithm might be useful if the errors are really caused by fp arithmetic.
2019-07-31 17:07:03 +08:00
jpekkila
69deef66fe
Added sum reduction. NOTE: Scalar sum does not pass the automated test but vector sum does. I couldn't see anything wrong with the code itself and I strongly suspect that the failures are caused by loss of precision due to summing a huge amount of numbers of different magnitudes. However I'm not yet completely sure. Something like the Kahan summation algorithm might be useful if the errors are really caused by fp arithmetic.
2019-07-30 14:28:18 +03:00
jpekkila
a3359b0d04
CONFIG_PATH is now supplied by ac_mkbuilddir. While using would be a bit more idiomatic, ASTAROTH_CONF_PATH is probably safer since ac_mkbuilddir.sh does the copying and knows for sure what the correct path is.
2019-07-29 15:55:27 +03:00
JackHsu
d1ca196ccd
Added declaration of constants for sink particle. Still in the process of understanding how values are passed, but I've realized how physical equations are defined in stencil_process.sps and in principle I can replicate that for sink particle(which will mostly be gravity).
2019-07-29 13:18:24 +08:00
jpekkila
c9fafe41e5
Tidied the CMakeLists, moved stuff to more logical places and added comments. Also tested that ALTER_CONF=ON still works
2019-07-26 15:12:55 +03:00
jpekkila
5044228967
The text editor I use to edit stuff remotely is a complete piece of &^$%$, does not synchronize the files correctly. This commit fixes the issues introduced in the last commit
2019-07-26 14:22:22 +03:00
jpekkila
b90d261e89
Removed an unnecessary include from the root CMakeLists.txt
2019-07-26 14:18:11 +03:00
JackHsu
89e6f8673f
Made corrections to some formatting issues.
2019-07-26 16:53:39 +08:00
JackHsu
9d625688ac
Apparently my edit this time was unsuccessful, tons of error messeages showed up when I ran "make -j" command in working directory. However this commit is mainly for education purposes, it's so that Miikka (main) and others can see what I changed easily and can use as teaching reference.
2019-07-26 16:22:04 +08:00
JackHsu
67d9f19006
Merge branch 'master' into sink_20190723
2019-07-24 11:10:16 +08:00
JackHsu
58a3f48389
Second ever commits!
2019-07-24 11:01:26 +08:00
Tzu-Chun Hsu
cd7f6f7939
"Hello world!", my first commit.
2019-07-24 10:20:13 +08:00
jpekkila
26316a4d15
The standalone library is now compiled in parallel with the core library. Slightly faster.
2019-07-23 21:26:58 +03:00
jpekkila
f322bc8b37
Rewrote all CMakeLists. Now much cleaner and there's a clear separation during compilation between the core and standalone modules.
2019-07-23 20:50:37 +03:00
jpekkila
323d4e3b31
Replaced all calls to AC_VTXBUF_IDX to acVertexBufferIdx etc in all files
2019-07-23 14:37:28 +03:00
Miikka Vaisala
1b6e6a6bac
Example for Jack. Creating sink branch.
2019-07-23 15:44:39 +08:00
jpekkila
85883dbc38
NUM_INT_PARAM_TYPES is now NUM_INT_PARAMS etc, replaced these throughout the project
2019-07-22 19:53:45 +03:00
jpekkila
074eae0bae
Added definitions of AC_GEN_STR and AC_GEN_ID to host_memory.h and .cc since they are no longer available from astaroth.h
2019-07-22 19:49:29 +03:00
jpekkila
84af939e5d
The default benchmark is now more suitable for timing multi-GPU performance
2019-07-22 13:08:33 +03:00
Miikka Vaisala
074fb26df9
Added TODO_SINK comments.
...
The comments were written to map out what essential part are needed for
resolving a system with graviating sink particles. No changes to the code
itself.
2019-07-17 14:05:48 +08:00
jpekkila
78aba6428e
Updated the copyright years throughout the project
2019-07-16 14:28:32 +03:00
jpekkila
e14e19774d
Added a synchronization to benchmark.cc that is now required when calling acIntegrateStep
2019-07-09 19:03:45 +03:00