11 Commits

Author SHA1 Message Date
1abeec3157 COORDINATES: Replace nh and nd with nghosts_half and nghosts_double.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-02-04 15:59:09 -02:00
48a93a0fb3 COORDINATES: Introduce ncells_half and use it mostly in BOUNDARIES.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-02-04 15:21:47 -02:00
af2c7213f3 COORDINATES: Use ncells instead of in, jn, and kn.
Also rename ng to nghosts.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-02-04 14:43:10 -02:00
43b3581a9e COORDINATES: Replace ir, jr, kr with domain_base_dims(:).
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-02-03 22:31:05 -02:00
67d4f29f29 COORDINATES: Use helper subroutines in print_coordinates().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 22:12:40 -02:00
099d077ab9 COORDINATES: Determine domain periodicity during initialization.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 18:00:09 -02:00
b5d177bc72 COORDINATES, DRIVER: Separate coordinate info from initialization.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 17:02:50 -02:00
2a6062cbd5 DRIVER, COORDINATES, IO: Pass more fixed parameters to initialize_coordinates().
Parameters such block dimensions, the base level dimensions, or the
domain extrema cannot be modified when the job is restarted, so read
them from the restart snapshots.

Also add new subroutine to IO read integer vector attribute from the
HDF5 snapshots.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 10:38:16 -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
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
f8b65842af Move source files from src/ to sources/.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 09:14:20 -02:00