1339 Commits

Author SHA1 Message Date
b4253ef8a7 PROBLEMS: Reorganize jet problem parameters.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-06 12:53:34 -02:00
2ed5f74aa3 PROBLEMS: Fix wrong density profile for jet problem.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-06 10:51:01 -02:00
e4140f2058 PROBLEMS: Implement relativistic jet problem.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-06 10:13:23 -02:00
2f26993c7b SCHEMES: Implement subroutines for special relativity hydrodynamics.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-06 09:09:22 -02:00
f96e0a5b5b EQUATIONS: Implement subroutines for special relativity hydrodynamics.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-06 09:02:56 -02:00
7e9a79abcb EQUATIONS: Calculate left-, right-going speeds in fluxspeed().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-05 22:07:19 -02:00
f84abc7d76 SCHEMES: Remove preprocessor conditions on NDIMS.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-26 20:08:35 -02:00
1a2a312775 MESH: Correct calculation of the adaptive mesh efficiency.
The efficiency should be large, if the adaptive mesh uses few blocks
comparing to the corresponding uniform mesh. When the number of adaptive
blocks increase, the efficiency should drop.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-25 22:01:54 -02:00
cbac66e430 MESH: Use the list of leafs in store_mesh_stats().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:50:05 -02:00
2d1b97642f BOUNDARIES: Use the list of leafs in boundaries_corner_prolong().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:44:59 -02:00
e4acb7028e BOUNDARIES: Use the list of leafs in boundaries_corner_restrict().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:41:29 -02:00
b1c8bedbf2 BOUNDARIES: Use the list of leafs in boundaries_corner_copy().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:38:55 -02:00
b0e7489c79 BOUNDARIES: Use the list of leafs in boundaries_edge_prolong().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:34:13 -02:00
14b7b0f7ff BOUNDARIES: Use the list of leafs in boundaries_edge_restrict().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:30:29 -02:00
56a05fde98 BOUNDARIES: Use the list of leafs in boundaries_edge_copy().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:26:23 -02:00
3a314e0dd8 BOUNDARIES: Use the list of leafs in boundaries_face_prolong().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:21:46 -02:00
fb84013114 BOUNDARIES: Use the list of leafs in boundaries_face_restrict().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:18:15 -02:00
64dfbe901b BOUNDARIES: Use the list of leafs in boundaries_face_copy().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:14:27 -02:00
193b182022 BOUNDARIES: Reduce some comments.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:08:19 -02:00
f6e7456fa8 BOUNDARIES: Split timers for the boundary update subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 15:05:48 -02:00
1c75056007 BOUNDARIES: Use the list of leafs in boundary_specific().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 14:51:06 -02:00
4198d35b6e BOUNDARIES: Use the list of leafs in boundary_fluxes().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 14:41:12 -02:00
94e8b5ad93 BLOCKS: Make BLOCK_LEAF structure public.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 13:15:29 -02:00
fbedbb21a5 MESH: Regenerate the leaf list after each mesh change.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 13:13:41 -02:00
fa33402072 BLOCKS: Add subroutine to build the list of leafs.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 13:12:21 -02:00
ff68847858 BLOCKS: Add subroutine to clean up the leaf list.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 12:47:32 -02:00
d9666c113c BLOCKS: Add new list to keep track of blocks.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 12:22:03 -02:00
8294b09a33 BLOCKS: Introduce new BLOCK_LEAF structure.
This structure contains only two pointers, one to the next block leaf,
and another to the leaf meta block. It's gonna be use to keep the list
of all leaf meta blocks.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-13 12:18:35 -02:00
a29ec0bea5 INTERPOLATIONS: Remove unused parameters.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-12 17:21:19 -02:00
8424846f9b SCHEMES: Remove multiply by reciprocal in HD Riemann solvers.
Multiply by reciprocal is faster but value unsafe.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-11 16:09:05 -02:00
13d4d6fe71 Revert "EQUATIONS: Avoid multiple divisions. Replace by inverted value."
This reverts commit be7f200bf4da2077b9ed4f0c0d3f622b9bc164d9.

Multiplication by reciprocal decreases precision slightly, by increasing
the performance. This is a known problem. We prefer accurate results,
instead of fast.
2015-01-11 15:59:41 -02:00
b8e708d99f SCHEMES: Slightly optimize riemann_hd_adi_hllc().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-09 18:40:10 -02:00
82b8d51697 SCHEMES: Slightly optimize riemann_hd_adi_hll().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-09 17:32:26 -02:00
be7f200bf4 EQUATIONS: Avoid multiple divisions. Replace by inverted value.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-09 17:31:28 -02:00
8ce17f1942 EQUATIONS: Calculate sums directly instead of using sum().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-09 17:07:10 -02:00
d6c3d4f4fe SCHEMES: There is no need to zero fluxes in update_flux() subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-09 16:15:24 -02:00
e1be1470be BOUNDARIES: Restrict or prolong boundaries only if minlev /= maxlev.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-09 14:21:50 -02:00
568644c61f EVOLUTION: Rewrite slighty update_increment().
This rewrite seems to speed up this subroutine by a factor of 3 in the
2D case.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-09 13:38:18 -02:00
82cdc524e4 TIMERS: Rename itimer to timer.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-08 19:52:25 -02:00
0179ffa23c DRIVER: Print timers which were used at least once.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-08 19:49:46 -02:00
cdfd40d308 TIMERS: Rename ftimer() to tenabled().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-08 19:42:48 -02:00
fbd4c5382c TIMERS: Add flag indicating that timer is locked.
This helps to detect improper use of timers, like when the same timer
was started twice without previously stopping it.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-08 19:39:36 -02:00
f9ee968fb6 TIMERS: Remove variables related to the timer order.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-08 19:25:48 -02:00
2980cf2e81 Fix parameter names in the test problem parameter files.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-07 19:19:43 -02:00
2dfd83f13d COORDINATES: Change the parameter names for number of base blocks.
Now, the number of blocks along each direction is names 'xblocks',
'yblocks', and 'zblocks'.  This should clear up the parameter meaning a
bit.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-07 17:23:03 -02:00
7f71247e2d README: Correct spelling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-06 17:01:34 -02:00
81f1c2bbbf COPYRIGHT: Update year to 2015.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-06 16:01:36 -02:00
076b44a6f5 BOUNDARIES: Use precalculated indices in boundaries_corner_prolong().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-06 14:43:14 -02:00
fde7671103 BOUNDARIES: Use precalculated edge indices in boundaries_edge_prolong().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-06 14:41:09 -02:00
dca109a203 BOUNDARIES: Add comment in block_face_prolong().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-06 14:38:20 -02:00