927 Commits

Author SHA1 Message Date
23fe63639a Merge branch 'master' into reconnection 2014-01-25 16:41:35 -02:00
1ed3747efb EVOLUTION: Turn on the selective update for refined blocks.
Now, the selective update after refinement/derefinement process is on.
Before checking the refinement and update the mesh, We set all blocks to
not be updated. Then, only blocks which are refined or derefined
including all their neighbors, are set to be updated. This reduces the
repeated work, i.e. boundary update and variable conversion, on blocks
which didn't actually change.

After the mesh refinement, boundary and variable update, we mark all
blocks to be updated, so the regular temporal integration process works.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-23 10:58:15 -02:00
d3dc784c5e EVOLUTION: Rewrite subroutine update_variables().
Now, primitive variables are calculated only for the blocks marked to be
updated.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-23 10:56:29 -02:00
a75c3975ec BOUNDARIES: Update boundaries only for marked blocks.
Boundaries are updated between blocks which are set to be update.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-23 10:53:06 -02:00
bd53c20597 BLOCKS: Mark blocks and neighbors for update when (de)refining.
This patch marks all refined or derefined blocks to be updated. All
their face, edge, and corner neighbors are marked for update as well, in
order to keep the boundary consistency.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-23 10:34:42 -02:00
86f98083eb SCHEMES: Fix the Sm=0 case in riemann_mhd_adi_hllc().
Since all components are continuous, return the HLL flux.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-23 10:29:34 -02:00
9c49fd8cc1 SCHEMES: Revert previous flux for Sm=0 and Bx=0.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-23 10:24:53 -02:00
a44c0c25c6 SCHEMES: Fix states when Sm=0 in riemann_mhd_adi_hlld().
When contact dicontinuity wave is not present (Sm=0), all components are
continuous, therefore the flux can be average from outern states.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-23 10:16:44 -02:00
3dd9c42e4a SCHEMES: Fix wrong loop limits in update_flux_mhd_adi().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-22 22:58:50 -02:00
823b958c72 BLOCKS: Add set_blocks_update().
This subroutine marks or unmarks all blocks on the meta block list to be
updated depending on the input argument.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 20:20:44 -02:00
63cc647747 BLOCKS: Add subroutines to mark and unmark block update.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 19:27:14 -02:00
d182934fcf BLOCKS: Rename meta block field %cpu to %process.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 19:20:41 -02:00
aaccd7fff0 BLOCKS: Rename meta block field %coord to %coords.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 19:09:30 -02:00
1956fecad2 BLOCKS: Rename meta block field %config to %conf.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 19:06:31 -02:00
3ec7bdf232 BLOCKS, MESH: Remove checking the meta block structure.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 19:01:41 -02:00
a695f90dd7 BLOCKS: Rewrite metablock_(un)set_leaf().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:58:47 -02:00
d95d4354cc BLOCKS: Rewrite metablock_set_bounds().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:52:00 -02:00
4d0b3c007b BLOCKS: Rename and rewrite metablock_set_coordinates().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:48:36 -02:00
88c6a0f1a6 BLOCKS: Rewrite metablock_set_position().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:43:53 -02:00
ee9595ffe6 BLOCKS: Rename and rewrite metablock_set_refinement().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:40:48 -02:00
afc2407881 BLOCKS: Rename and rewrite metablock_set_configuration().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:34:49 -02:00
7f16adaf48 BLOCKS: Change metablock_set_* subroutines order.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:27:37 -02:00
94f4dfcc5b BLOCKS: Rewrite metablock_set_level().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:23:15 -02:00
243475ee46 BLOCKS: Rename metablock_set_cpu() to metablock_set_process().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:18:07 -02:00
4ec6184026 BLOCKS: Rewrite subroutine metablock_set_id().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:13:06 -02:00
086cef9b6d BLOCKS: Move metablock_* subroutines to public section.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:07:36 -02:00
759fe27e78 BLOCKS: Rewrite function increase_id().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 18:04:01 -02:00
b2dbb01cd8 BLOCKS: Rename datablock_set_dims() to set_block_dimensions().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 17:58:28 -02:00
17b7286345 BLOCKS: Rewrite set/get_last_id(), get_mblocks(), etc.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-16 17:51:03 -02:00
81cd8ccb35 BLOCKS: Move set/get_last_id(), get_mblocks(), get_dblocks().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 17:20:01 -02:00
9c7715bd21 BLOCKS: Use metablock_set_config() in refine_block().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 17:15:16 -02:00
e63697ff43 BLOCKS: Rewrite derefine_block().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 17:09:16 -02:00
ff70d00833 BLOCKS: Rewrite significantly subroutine refine_block().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 16:56:47 -02:00
14109e483b BLOCKS: Move public definitions of (de)refine_block().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 14:50:36 -02:00
951594d4cb BLOCKS: Move (de)refine_block() to public subroutine section.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 14:49:19 -02:00
cce39b5c1c BLOCKS: Add insert_metablock_after/before().
Those two subroutines insert a new meta block after or before the block
which is provided by additional pointer.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 14:13:31 -02:00
cc7fb022c0 BLOCKS: Move subroutines (un)link_blocks().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 12:08:24 -02:00
e9e2f6919f BLOCKS: Rewrite subroutines (de)allocate_datablock().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 12:04:12 -02:00
0ac1f8f2b9 BLOCKS: Add (de)allocate_metablock() to public list.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 11:52:40 -02:00
6f9c267d55 BLOCKS: Rewrite allocate_metablock() and deallocate_metablock().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 11:50:48 -02:00
242abc4ea3 BLOCKS: Rewrite append_datablock() and remove_datablock().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 11:27:03 -02:00
3081ef8b04 BLOCKS: Rewrite append_metablock() and add remove_metablock().
These subroutines not only allocate/deallocate meta blocks, but also
takes care about the appending or removal of the blocks to or from the
meta block list.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 11:10:27 -02:00
cddf77613e BLOCKS: Rewrite initialize_blocks() and finalize_blocks().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 10:33:37 -02:00
55545be6f5 BLOCKS: Rewrite comments of module structures and variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 09:32:58 -02:00
0cc5be4249 BLOCKS: Add module subroutines profiling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 08:42:50 -02:00
0a9490fc7b Merge branch 'master' into reconnection 2014-01-11 18:24:21 -02:00
2983ba0580 INTEGRALS: Rewrite module. Add profiling.
Now, after restarting a job, a new integrals file is created.  Integrals
are stored after interval controlable by the parameter
'integrals_interval'. Also profiling has been added to measure time
spent on the integrals calculation.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-10 12:42:18 -02:00
71418b4041 ERROR: Update module description and correct mispellings.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-10 11:34:51 -02:00
036b8fb6e8 CONSTANTS: Correct mispelling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-10 11:32:27 -02:00
23c93e55a9 CONSTANTS: Update module description.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-10 11:31:29 -02:00