1690 Commits

Author SHA1 Message Date
93342fb333 SOURCES: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:32:37 -02:00
9a93239240 SHAPES: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:32:08 -02:00
54f5a6084f SCHEMES: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:31:30 -02:00
da1a8e3d9f REFINEMENT: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:30:45 -02:00
49208321b6 RANDOM: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:30:07 -02:00
c877fa6481 PROBLEMS: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:29:32 -02:00
bb5d8da088 INTERPOLATIONS: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:27:22 -02:00
d8c2331bfe INTEGRALS: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:26:23 -02:00
f392c1644c GRAVITY: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:25:38 -02:00
a853f0b700 EVOLUTION: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:24:53 -02:00
927642bf3e EQUATIONS: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:23:55 -02:00
419cf04363 DOMAINS: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:22:01 -02:00
572ef0f503 COORDINATES: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:21:17 -02:00
e634ef1583 BOUNDARIES: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:19:15 -02:00
305ed8ed13 IO: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:17:10 -02:00
e884804f8c DRIVER: Replace explicit calls to get_parameter_*() with unified one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:06:32 -02:00
9c5841d9f3 PARAMETERS: Add interface for get_parameter_*() subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:05:12 -02:00
26bf99d4c1 DRIVER, EQUATIONS: Reset eqsys and eos for restarted jobs.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 20:21:38 -02:00
fc5db6dd29 DRIVER, IO, COORDINATES: Reset toplev for restarted jobs.
If the job was restart with different maxlev, then
initialize_coordinates() has to know about it, so it generate
appropriate coordinates.

Read maxlev from the restart snapshot, if the job was restarted, and set
toplev as the maximum value between the previous and current maxlev.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 18:56:39 -02:00
6fbd567130 IO: Implement subroutine to read parameters from the restart snapshots.
If we run a job from a restart snapshot and modify some of the
parameters in the parameter file, this could lead to problems. Some
parameters, like the set of equations, equation of state, or block
dimensions, simply cannot be modified. Therefore, any such parameter,
modifies in the parameter file, should be overwritten with the value
from the restart snapshot. The purpose of these subroutines is to read
these parameters from restart snapshots.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 18:19:31 -02:00
01276925ee DRIVER: Add flag to identify if the run is for restarted job.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 15:53:50 -02:00
4f7248533f DRIVER, PARAMETERS: Log problems with parameters file in error output.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 15:45:35 -02:00
cf8f0e8003 MPITOOLS: Implement the return flag for initialize_mpitools().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 15:30:52 -02:00
50cf1b57b7 DRIVER: Print parallelization info just after the code intro.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 15:03:19 -02:00
ec79b9eeca PARAMETERS: Print the name of parameter file in a consistent way.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 14:58:17 -02:00
f8b65842af Move source files from src/ to sources/.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 09:14:20 -02:00
a489837d63 Update copyright info.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 09:06:57 -02:00
21ded794e8 IO: Remove coordinate scaling factors dcor and ucor.
These factors aren't necessary, since the block coordinate is calculate
with respecto the all blocks at given level. Therefore, even if we
change the maximum refinement level during job restart, these coordinate
do not change.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-27 09:47:40 -02:00
d88a1396dd COORDINATES: Update toplev only if it was not changed before.
If we restart a job from a run with different maximum refinement level,
toplev parameter is set from a restart file and coordinate variables are
recreated. Setting toplev to maxlev all the time fails in recreating
correct coordinate variables and results in crashes.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-26 11:35:53 -02:00
a9123e466a PYTHON: Make sure indices are integers in rebin().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-11-07 12:10:28 -02:00
5b28e11182 PYTHON: Rewrite subroutine amun_dataset().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-11-06 12:45:07 -02:00
43e5b0b5f2 PYTHON: Rename amun_coordinates() to amun_coordinate().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-11-06 12:35:30 -02:00
5fa42b71cc PYTHON: Reorganize amun.py.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-11-06 12:34:39 -02:00
8eb5a2550a PYTHON: Add subroutine amun_coordinates() to retrive coordinate items.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-11-06 12:08:53 -02:00
d8b7e73b9f PYTHON: Rewrite amun_attribute().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-11-06 12:02:56 -02:00
25bbb78c63 PYTHON: Use amun_compatible() in all subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-11-06 11:37:29 -02:00
cbe94a21b6 PYTHON: Add amun_compatible() function.
This function returns True or False if the file is an HDF5 file
written in the AMUN code format.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-11-06 11:34:02 -02:00
87dc667040 Add PGI and Intel compilers support to default host file.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-31 11:05:16 -03:00
0a71fbc697 MULTIPLE MODULES: Introduce interfaces for procedure pointers.
This change allows the code to be compiled with the PGI compilers, and
at the same time does not affect the compilation with the GNU compilers.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-29 23:25:11 -03:00
ec1274541b SHAPESPROBLEMS: Add interface for update_shape.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-28 22:53:44 -03:00
e99a5c008e PROBLEMS: Add interface for setup_problem.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-28 22:52:08 -03:00
cf693eb938 EVOLUTION: Use ieee_is_nan from IEEE_ARITHMETIC.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-28 22:49:51 -03:00
9ea880b686 INTEGRALS: Remove IBM case for OPEN statement.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-28 22:42:59 -03:00
1881db4e82 ALGEBRA, INTERPOLATION: Detect maximum real kind automatically.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-28 22:35:01 -03:00
7b9e4192b7 Use scientific format (ES instead of E) for displayed real numbers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-27 19:51:45 -03:00
8c0dd1d7f0 EQUATIONS: Print errors to error unit in fluxspeed_srmhd_adi().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-27 19:22:57 -03:00
32822544b0 INTERPOLATIONS: Return error in prepare_mgp() or prepare_gp() fail.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-27 19:15:21 -03:00
b8b9f6feac ALGEBRA: Return error instead of stopping execution in tridiag().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-27 19:07:29 -03:00
e229e68d25 PARAMETERS: Use error_unit for error reporting.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-27 18:56:58 -03:00
87b66c1ec2 ERROR: Remove module, since it is not used anymore.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-26 23:11:11 -03:00