2347 Commits

Author SHA1 Message Date
5faf08f731 SHAPES: Remove unused argument from initialize_shapes().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 14:48:47 -03:00
78d520a87c SOURCES: Remove unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 14:33:42 -03:00
812338f427 OPERATORS: Remove unused argument from initialize_operators().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 14:31:12 -03:00
4363f759af PARAMETERS: Initialize variable in parse_line().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 14:29:33 -03:00
6d518c8327 PROBLEMS: Clean up unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 14:28:13 -03:00
4d619e1699 TIMERS: Correct integer kind for counters.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 14:11:25 -03:00
4b63c17b07 MESH: Remove unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 13:23:40 -03:00
7c47fb1637 DOMAINS: Clean up unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 13:12:23 -03:00
1550ce27a9 COORDINATES: Clean up unused variables for 3D case.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 13:08:13 -03:00
07ee9942e5 BOUNDARIES: Clean up unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 13:04:59 -03:00
0d2ed01c8f ALGEBRA: Rewrite to eliminate compiler warnings.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 11:58:51 -03:00
1e250afb24 INTEGRALS: Clean up unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 10:52:51 -03:00
f9ab0b2015 EVOLUTIONS: Clean up ununsed variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 10:44:36 -03:00
a0acaa9f40 FORCING: Clean up compiler warnings.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 10:40:17 -03:00
ebccb96d0f FORCING, IO: Make conversion to complex numbers double precision.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 10:30:43 -03:00
a6f4e168f3 RANDOM: Clean up compiler warnings.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 10:22:41 -03:00
96595b7012 MPITOOLS: Remove unused variable from finalize_mpitools().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-06 09:55:02 -03:00
961774c7fb EQUATIONS: Make sure Alfven speed is never larger than fast one.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-08-04 11:16:40 -03:00
88138269b7 SCHEMES: Remove 'hlld-m' from the available Riemann solvers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-31 21:12:58 -03:00
0e7f1a3f15 SCHEMES: Use Mignone's isothermal Riemann solver as HLLD.
Remove the modified version which allows for the density jump in the
intermediate state.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-31 21:10:20 -03:00
1b075026b5 CMAKE: Add description, home page and languages to project.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-31 13:21:02 -03:00
85496f7a78 IO: Remove unused procedures and variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-31 12:52:33 -03:00
e057f240bd DRIVER: Fix compiler warnings.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-31 10:51:37 -03:00
7fe1711454 BLOCKS: Remove unused subroutines, variables, and arguments.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-31 10:48:14 -03:00
e1087c6fb7 IO: Intel Fortran need directory=, not file= in INQUIRE.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 17:12:20 -03:00
9c690c5a4d DRIVER: Make signal handling work with GNU, PGI and Intel compilers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 16:15:46 -03:00
11e3a669fe MAKEFILE: Add initial support for CMake.
Just call ccmake <path to AMUN code> and set options.

GNU Fortran, Intel Fortran and PGI Fortran are supported.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 12:58:49 -03:00
cf95264a88 IO: Intel compiler does not accept sizeof() as argument.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 12:41:31 -03:00
98fc748f9b FORCING: Initialize status argument.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 12:05:34 -03:00
ebc24c3f03 IO: Avoid using the same names for variables and modules.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 12:02:13 -03:00
91a1ce442e DRIVER: PGI compiler requires signal definition.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 11:49:43 -03:00
7c55b65bd7 DRIVER, MESH, INTEGRALS: Use predefined preprocessor macros.
GNU Fortran and Intel Fortran define preprocessor macros such
__GFORTRAN__ and __INTEL_COMPILER. Just use them.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 11:06:59 -03:00
947ed1ad78 PARAMETERS: Use Fortran 2003 command line subroutines.
Fortran 2003 introduces procedures to get the number of command line
arguments and the specific argument. Use them instead of iargc() and
getarg() from GNU extension.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 10:23:31 -03:00
31a34c4380 PARAMETERS: Add verbose flag to read_parameters().
Slightly clean up other subroutines.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 10:13:48 -03:00
04169ad0f7 PARAMETERS: Remove subroutine redistribute_parameters().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 10:01:56 -03:00
62e989e0b7 DRIVER: Read parameters' file by all processes.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-30 10:00:12 -03:00
7495681330 PYTHON: Add electric field components and its magnitude.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-20 16:26:21 -03:00
5bd541333c PYTHON: Add vorticity and current density components to AmunXML.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-20 16:11:49 -03:00
84a3ce1572 PYTHON: Change formatting to use .format() in AmunXML class.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-17 16:41:50 -03:00
ad3d9eec93 PYTHON: Add simple progress to AmunXML.dataset().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-07-17 16:37:04 -03:00
4b9aba7d75 PYTHON: Fix reading datasedt for non-square/non-cube domain.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-13 22:06:53 -03:00
5c64df35e5 HASH: Remove obsolete specific xxh64_*() functions.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-13 17:32:04 -03:00
d41ec74665 IO: Use generic xxh64() to calculate all hashes.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-13 17:31:59 -03:00
467609bc00 HASH: Add generic function xxh64().
This function calculates the XXH64 has using a sequence of bytes, or
integer(kind=1) vector.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-13 17:31:48 -03:00
3dbbd0b8b1 HASH: Change kind of local variables.
Local variables remain and offset cannot be larger than the size of
input array, so they can be 4-byte integers.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-13 08:32:27 -03:00
e1e025017a HASH: Rename argument data to input.
Word DATA is reserved in Fortran. Rename this argument, just to avoid
confusion.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-13 07:05:44 -03:00
86c7f87365 HASH: Fix hash calculation in xxh64_integer() for odd length vectors.
If the input data has an odd number of elements, the last 4-byte
element has to be padded by 4-byte structure of zeros.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-13 06:57:26 -03:00
97e572ec94 IO: Make sure bounds have the same domensions while stored and read.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-13 06:49:53 -03:00
ca3580e2ec IO: Fix wrong warning while reading from an XML+binary restart snapshot.
If the forcing is off, the number of forcing modes is zero, but it is
not the same as a wrong number of forcing modes stored in the restart
file.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-13 06:47:38 -03:00
7faf27e3b9 PYTHON: Use the maximum used level instead of maxlev.
This reduces the resolution and memory usage if parameter maxlev is
actually larger than the maximu used level.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-12 14:51:37 -03:00