163 Commits

Author SHA1 Message Date
fedba83d17 EQUATIONS: Implement correction of unphysical cells.
The unphysical cells (those with negative density or pressure) will be
corrected by averaging their states from the values of physical
neighbors.

The option is off by default, but can be turned on by setting:

fix_unphysical_cells = "on"

in the parameter file.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-16 09:57:23 -02:00
8696f15696 IO: Clean up old compression code.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-09-05 12:09:03 -03:00
aeab9f9fe7 MAKEFILE: Organize order of dependencies.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 12:59:56 -03:00
08cca6647e BOUNDARIES, USER_PROBLEM: Add user specific boundary conditions.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 11:46:41 -03:00
dad181b23a USER_PROBLEM, SOURCES: Add user defined source terms.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 11:10:22 -03:00
d57b5aed69 USER_PROBLEM: Add user interface to define its problem.
In this way the user can define his problem, i.e. the initial setup, the
shape update, the gravitational acceleration profile, in one module.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 11:02:59 -03:00
837ec0b8d7 BOUNDARIES: Implement adiabatic hydrostatic boundary conditions.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-07 17:14:58 -03:00
9256b58905 SOURCES: Plug the GRAVITY module in.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-06 11:12:25 -03:00
e00a70b477 GRAVITY: Add new module to handle gravitational forces.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-03 18:15:15 -03:00
a00dc32c71 INTERPOLATIONS: Use tridiag() solver in CRMP5 reconstruction.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-12-08 08:21:39 -02:00
eb118745a1 ALGEBRA: Add tridiagonal linear system solver.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-12-08 08:03:08 -02:00
59ffba724d UTILS: New module with utility subroutines.
The initial version provides assertion subroutines.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-05-27 15:34:23 -03:00
5363c0a722 Merge branch 'master' into srmhd
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>

Conflicts:
	src/makefile
2015-04-24 10:27:36 -03:00
dad7d7bafe Makefile: Remove option to create archive.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-04-23 13:11:37 -03:00
9cc25b790e EQUATIONS: Implement subroutines for special relativity MHD.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-17 11:28:40 -02:00
1930bda0cc ALGEBRA: Add cubic and quartic solvers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-17 09:53:19 -02:00
d203702254 SCHEMES: Implement HLLC Riemann solver for SRHD.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-14 23:08:32 -02:00
fa5173547b ALGEBRA: Add new module which provides algebra subroutines.
The initial module version provides the subroutines to solve quadratic
equation.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-02-14 20:47:04 -02:00
3f537aa93f MPITOOLS: Add exchange_real_arrays().
The new subroutine exchanges two buffers between two processes at the
same time.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-12-03 21:47:41 -02:00
736912f791 REFINEMENT: Add refinement criterion based on current density magnitude.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-09-23 11:24:52 -03:00
f9d3ed87df OPERATORS: Add support for module profiling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-09-19 07:34:04 -03:00
48b962cf54 INTERPOLATIONS: Print warning if nghosts too low for a given method.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-08-07 19:03:58 -03:00
ffba632740 MAKEFILE: Add preprocessor prefix for -D directives.
IBM Fortran does not support preprocessor directives -D directly. They
have to be passed using -WF, compilation flag. Therefore we add a
variable CPPPREFIX to provide this kind of prefix.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-08-04 09:26:36 -03:00
d5625ccb9f SOURCES: Implement resistive source term for MHD.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-05-29 12:04:55 -03:00
b4d2055f8b OPERATORS: Add initialization/finalization subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-05-28 18:21:16 -03:00
9b22d2be7b OPERATORS: Add new module for differential operators.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-05-28 18:09:35 -03:00
8ac8248279 SOURCES: Add initial version of source terms module.
This contains only point mass gravitational acceleration so far, as an
example.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-04-29 18:35:58 -03:00
73cbed8192 PROBLEMS: Rewrite module.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-02-07 13:57:28 -02:00
55de38609d SHAPES: Update module dependencies and spell check.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-02-07 13:50:17 -02:00
e0ca4b0392 SHAPES: Add new module to handle shapes embedded in domain.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-02-07 12:12:27 -02:00
0cc5be4249 BLOCKS: Add module subroutines profiling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 08:42:50 -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
3443dc18aa IO: Rewrite subroutine read_data_h5().
The new version of subroutine read_data_h5() allows for restart a job
more efficiently with flexibility of changing the number of used
processes, both smaller or larger than the number of restart files.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-08 16:53:26 -02:00
696078edee BOUNDARIES: Add module subroutines profiling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-02 17:00:40 -02:00
2dbd70ac72 SCHEMES: Add subroutine profiling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-02 12:32:19 -02:00
0208b3768a INTERPOLATIONS: Add module subroutines profiling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-02 12:12:16 -02:00
f50a070c2c EQUATIONS: Add module subroutines profiling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-02 12:06:35 -02:00
f435a44065 IO: Add module subroutines profiling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-27 18:07:10 -02:00
9d7f4b2196 Makefile: Add missing compilation dependence.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-27 17:37:13 -02:00
7bf2d7f438 REFINEMENT: Add timers to count timing of refinement.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-26 18:04:02 -02:00
7f63bd65be Remove unused preprocessor flags.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-19 19:09:01 -02:00
360fc7a0c6 PROBLEMS: Rewrite blast problem.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 16:09:47 -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
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
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
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
1bd066f56f Remove dependency of the module VARIABLES.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 21:36:35 -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