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
ac7697158a
PYTHON: Fix extras in setup.py.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-12 07:41:15 -03:00
425bcc2f17
PYTHON: Verify binary data hashes if python-xxhash is available.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-12 07:31:12 -03:00
1c76a5b8ca
BLOCKS: Reset fields of allocated datablock to zero.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-12 06:51:54 -03:00
5fc6b8dbe5
RANDOM: Fix bitwise OR in splitmix64(), xoshiro256p(), and jump().
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-11 18:47:19 -03:00
7c1d028805
IO: Store hashes in write_snapshot_xml().
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-11 18:42:05 -03:00
c2294cbe5e
IO: Store hashes with leading zeros in write_restart_snapshot_xml().
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-11 18:29:18 -03:00
5a9ea1dc92
IO: Verify hashes while reading XML+binary restart snapshots.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-11 18:19:33 -03:00
52d899aa72
IO: Store hashes of binary files in XML+binary restar snapshots.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-11 15:19:25 -03:00
cf39fa7292
HASH: Add Fortran implementation of 64-bit xxHash function.
...
The aim of the hash function is to verify consistency of the binary data
written in the snapshots.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-11 14:00:16 -03:00
c5aa43f8ff
FORCING: Correct calculation of the acceleration RMS value.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-09 19:58:39 -03:00
bd1b4724e8
HELPERS: Increase show precision of real parameters to 5 digits.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-08 18:39:03 -03:00
638fba8902
USER_PROBLEM: Print parameters.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-08 18:35:37 -03:00
195d8895b0
FORCING: Rewrite Fourier forcing so both methods use vectors e1 and e2.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-07 19:28:04 -03:00
09612783a7
Revert "FORCING: Take into account solenoidal parameter in e1 and e2 vectors."
...
This reverts commit 0303f4ed84c752324bb5c9195dcab1547c0df4b9.
2020-05-03 19:06:48 -03:00
0303f4ed84
FORCING: Take into account solenoidal parameter in e1 and e2 vectors.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-03 18:20:53 -03:00
15162344f5
FORCING: Driving time and velocity scales are determined from the power.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-03 17:23:48 -03:00
836b1a873c
FORCING: Calculate driving scales from driving power.
...
The driving power and injection scale determine the characteristic time
velocity and acceleration scales.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-03 17:20:45 -03:00
3dce6e683f
PYTHON: Some fixes for 3D runs.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 21:25:43 -03:00
f1c30dffec
EVOLUTION, FORCING: Call update_forcing() only when enabled.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 21:16:46 -03:00
5c554a2b2d
IO: Do not store driving coefficients if nmodes == 0.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 21:06:34 -03:00
add0759308
IO: Handle properly seeds and driving coeffs in HDF5 restart files.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 20:58:27 -03:00
62b835ccf8
README: Add brief info how to read data.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 15:34:33 -03:00
775537cecf
Update README
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 15:24:01 -03:00
e86b9f7339
PYTHON: Add function to read datablocks.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 15:02:44 -03:00
084750da46
PYTHON: Handle properly snapshot chunks with no datablocks.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 13:18:29 -03:00
6978aee6ef
PYTHON: Add class to handle XML-binary snapshots.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 12:53:23 -03:00
13858e6456
IO: Implement XML+binary format of the regular snapshots.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-05-01 11:40:37 -03:00
4550af59d4
IO: Fix mismatch in the XML restart snapshot.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-30 14:31:01 -03:00
59bc5482ea
IO: Fix calling read_snapshot_parameter_h5().
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-30 07:57:34 -03:00
a533978dff
DRIVER: read_snapshot_parameter() is supported independently of HDF5.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-29 17:39:19 -03:00
07e74abfa9
IO: Implement XML+binary format of the restart snapshots.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-29 17:38:41 -03:00
0631962b4d
FORCING: Export the number and coefficients of driving modes.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-29 17:37:41 -03:00
727c711478
PARAMETERS: Add subroutine to return the parameter file.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-29 17:36:54 -03:00
7e6332125f
RANDOM: Export gentype parameter.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-29 17:36:20 -03:00
408f42151d
IO, DRIVER: Store x/y/zblocks separately.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-28 14:40:04 -03:00
63013b25be
DRIVER: Fix compilation with empty OUTPUT flag.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-28 14:31:53 -03:00
586df0bfa6
FORCING: Fix generation of vectors e1 and e2 in Alvelius method.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-28 14:25:15 -03:00
4f9c5015d4
Make.default: Turn off HDF5 by default.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-04-28 14:10:30 -03:00