744 Commits

Author SHA1 Message Date
2a8eee95c0 BOUNDARIES: Rewrite boundary_restrict().
Make sure that the summation produces symmetric error.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-19 10:09:08 -02:00
70d43808b0 MESH: Rewrite restrict_block().
Make sure that the summation symmetry is preserved.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-19 09:48:53 -02:00
345787270d IO: Rewrite subroutines to store variables.
We store now either primitive 'p' or conservative variables 'c' with or
without ghost cells.  The ghost cells storing is determined by
additional runtime parameter 'include_ghosts'.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-19 07:32:40 -02:00
6bc5fb67c6 IO: Remove unused references in write_variables_h5().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-18 22:19:46 -02:00
38793e5716 IO: Clean up subroutine write_variables_h5().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-18 22:17:49 -02:00
c5eb20b2cf SCHEMES: Implement HLLD solver for adiabatic MHD.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 16:38:25 -02:00
63127e83b1 SCHEMES: Implement HLLC solver for adiabatic MHD.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 16:25:30 -02:00
360fc7a0c6 PROBLEMS: Rewrite blast problem.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 16:09:47 -02:00
e9d48d078f Make MHD equations work.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 15:36:55 -02:00
2f724b0df7 EQUATIONS: Release pointer in finalize_equations().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 14:39:18 -02:00
a347422a3b INTERPOLATIONS: Implement 3rd order WENO reconstruction.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 14:32:27 -02:00
03ca542dfd INTERPOLATIONS: Improve printed methods formatting.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 13:52:05 -02:00
0dc7b24c43 Replace minmod3 with the proper limiter() function.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 12:41:55 -02:00
45f80a0dc7 INTERPOLATIONS: Reimplement TVD method with more limiters.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 12:34:05 -02:00
a59220bac3 EVOLUTION: Remove parameter dtini.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 22:48:48 -02:00
a8e06fa535 INTERPOLATIONS: rewrite module, use procedure pointers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 22:34:29 -02:00
618969e22e Delete cruft after FORCING removal.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 18:13:12 -02:00
3e09fa8088 Remove module FORCING.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 18:10:35 -02:00
a1ceb1c10f Remove source terms directives.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 18:09:35 -02:00
a6c0059b32 Remove remainings of the preprocessor flags EQS and EOS.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 18:04:36 -02:00
e6eed67589 PROBLEMS: Remove setting magnetic field in the blast problem.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 17:55:16 -02:00
e5db34b7c4 IO: Make storing arrays more general.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 17:54:39 -02:00
cd3fb66540 Remove some MHD preprocessor directives.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 17:34:33 -02:00
5c064987e4 DRIVER: Cleanups.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 17:29:15 -02:00
e2c80a5552 TIMERS: Rewrite slightly.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 17:18:56 -02:00
ad15dec7cd COORDINATES: Improve initialization/finalization subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 17:01:22 -02:00
8b11a56312 Clean up GLM dependent code.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 11:09:19 -02:00
071a414969 EVOLUTION: Module rewrite.
The time integration method can be chose now through the runtime
parameter 'time_advance'.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 10:59:25 -02:00
9c6ed6bdbf Slightly organize information printing.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 10:22:51 -02:00
5dc8dba168 SCHEMES: complete rewrite of the module.
Riemann solver is selected now through the runtime parameter
'riemann_solver'.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 10:16:06 -02:00
5b137d1a63 EQUATIONS: export equation system and equation of state.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 00:16:22 -02:00
601a35eeb0 EQUATIONS should be initialized after MPI.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 00:09:15 -02:00
74e5058dd8 Update the year in copyright.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 00:06:30 -02:00
352dd1abb4 Remove module VARIABLES.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 21:36:58 -02:00
1bd066f56f Remove dependency of the module VARIABLES.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 21:36:35 -02:00
f48950aa4d EQUATIONS: Completely rewrite this module.
Now, module EQUATIONS provides a complet interface for equation systems,
including the definition of the number of equations/independent
variables, variable indices and names, conversion subroutines between
primitive and conservative variables, flux and characteristic speed
calculation, and maximum speed determination.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 20:56:37 -02:00
386fd36f5e Update copyright line.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 15:23:28 -02:00
b8a2d02631 PARAMETERS: Add simple formatting checker.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 15:17:30 -02:00
610762d263 Correct double precision flags in default hosts file.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 12:06:45 -02:00
8dcc4d95b7 Remove PREC flag to set the computation precision.
The code by default works only with double precision arithmetics.  Quad
precision arithmetics can be added as an option in the future.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 12:04:29 -02:00
9df9b7fa45 Make the config and host file detection similar to GODUNOV.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 11:58:26 -02:00
Grzegorz Kowal
b7bdcb3982 Implement MC limiter and use it in prolongation. 2012-08-05 22:03:13 -03:00
Grzegorz Kowal
139a4bca00 Rewrite some subroutines of module INTERPOLATIONS. 2012-08-05 19:42:06 -03:00
Grzegorz Kowal
e448cd2dfb Remove unused subroutines from module INTERPOLATIONS. 2012-08-05 18:00:10 -03:00
Grzegorz Kowal
92e67b2f36 Fix an MPI bug in new_time_step().
The maximum level was estimated from the list of data blocks.  If we
have many processors, sometimes all blocks could lay at level smaller
than maxlev, what can cause wrong dx_min estimation and desyncronization
between processors.
2012-08-03 02:48:38 -03:00
Grzegorz Kowal
4669367697 Rewrite subroutine check_refinement_criterion().
These modifications slightly speed up the criterion calculation and
applies new default values of the parameters crefmin and crefmax, which
have been tuned in the blast problem.
2012-08-03 01:37:31 -03:00
Grzegorz Kowal
39afde1328 Check the refinement criterion before storing it in the file.
This step is required, since the mesh can be refined/derefined just
before the snapshot dump.  Since the refinement is checked before the
mesh update, it means that the freshly refined/derefined blocks have
undetermined array %c in their structure.
2012-08-02 23:50:46 -03:00
Grzegorz Kowal
b3a455fa52 Remove unused variables from advance() in EVOLUTION. 2012-08-02 23:45:53 -03:00
Grzegorz Kowal
5629bc1d3f Support strings both with ' and " in the parameter file. 2012-08-02 23:21:57 -03:00
Grzegorz Kowal
6dee6c643a Fix compilation with MPI=Y after recent changes. 2012-08-02 19:26:32 -03:00