37 Commits

Author SHA1 Message Date
3dc8f57fb5 DRIVER: Use bcells instead of im, jm, km.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-02-04 17:57:06 -02:00
eb7b5aa775 DRIVER, HELPERS: Print problem name in the main program part.
Also add print_parameter_string() to module HELPERS.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 18:33:04 -02:00
cb2b0c60ef HELPERS: Add module with helper subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 18:22:54 -02:00
4eb292c67d DRIVER: Small change in welcome message and MPI process number.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 15:34:39 -02:00
0582774e10 SHAPES, DRIVER: Add print_shapes().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 15:32:34 -02:00
a97bbc736f INTERPOLATIONS, DRIVER: Add print_interpolations().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 15:17:21 -02:00
122d228248 SCHEMES, DRIVER: Add print_schemes().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 14:58:40 -02:00
63bde5a72b EVOLUTION, DRIVER: Add print_evolution().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 14:45:07 -02:00
d32f7bb21a REFINEMENTS, DRIVER: Add print_refinement().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 12:47:15 -02:00
838ec1e465 BOUNDARIES, DRIVER: Add print_boundaries().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 12:29:48 -02:00
cf3fbf6902 DRIVER, SOURCES, EQUATIONS: Add print_sources().
Also add magnetized flag in EQUATIONS to indicate if the equations
system is magnetized. This helps to reduce printing some unnecessary
info.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 12:20:18 -02:00
e7d5d00da8 DRIVER, IO: Move precise_snapshot variable to IO module.
Also improve a bit print_io().

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 12:06:26 -02:00
6c23e9af19 DRIVER: Reorganize the initialization/finalization of modules.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 18:13:24 -02:00
feb14685bc DRIVER: Initialize refinement after domains.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 17:49:40 -02:00
09f032faba DOMAINS, DRIVER: Initialize and finalize domains module.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 17:46:57 -02:00
ea993ed8d0 BLOCKS, DRIVER: Initialize block dimensions in initialize_blocks().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 17:26:24 -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
2ecdf030d6 DRIVER, EQUATIONS: Separate equation info from initialization.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 15:54:02 -02:00
7a2d694629 DRIVER, IO: Initialize I/O after reading parameters.
Use it to handle parameters from restart snapshots. Also separate
printing I/O parameters from I/O module initialization.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 15:07:50 -02:00
0f0e14dfed DRIVER: Organize IO and mesh initialization and finalization.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 11:02:57 -02:00
220e881b58 DRIVER: Initialize evolution, schemes, interpolations after shapes.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 10:56:20 -02:00
908b94c482 DRIVER: Initialize shapes after refinement.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 10:52:08 -02:00
86bf933f05 DRIVER: Initialize refinement after boundaries.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 10:47:47 -02:00
e045c30e1a DRIVER: Initialize blocks and boundaries after coordinates.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 10:45: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
b0953016a5 DRIVER, SOURCES: Initialize sources after equations.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 10:05:36 -02:00
4aa92643ab DRIVER, PROBLEMS, IO: Initiate problems earlier.
Also store the problem name in the restart snapshot.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 09:59:09 -02:00
2ae8cd14f1 DRIVER: Move initialize_equations() to be called earlier.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-29 09:25:15 -02:00
bdddceae06 DRIVER: Print timings at the end and remove error info.
The error info is not complete and probably broken. It should be
rewritten.

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