182 Commits

Author SHA1 Message Date
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
be4f40e354 DRIVER: Clean up unnecessary code.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-02-20 15:19:57 -03:00
eef631de50 RANDOM: Rewrite seed numbers handling.
The array of seed numbers makes sense only when OpenMP is used. With
MPI on, the length of seed vector on each MPI process is equal to the
number of OpenMP threads. For no OpenMP, only one seed number per MPI
process is used.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-02-09 16:44:19 -02:00
68e5aea50e DRIVER: Print the progress info no more than once per second.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-05 11:36:36 -02:00
38c857c851 Remove all references to PATHSCALE compiler.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-05 11:15:35 -02:00
2c32139d8c Update copyright info.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-04 12:13:09 -02:00
a3ce8c409e IO: Add finalize_io() subroutine.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-09-05 09:53:47 -03:00
5a10b9384d DRIVER: Print problem header.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-05-11 09:54:12 -03:00
76c6f3c67c DRIVER: Initialize USE_PROBLEM after COORDINATES.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 13:43:26 -03:00
d57b5aed69 USER_PROBLEM: Add user interface to define its problem.
In this way the user can define his problem, i.e. the initial setup, the
shape update, the gravitational acceleration profile, in one module.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 11:02:59 -03:00
2a202605b0 BOUNDARIES: Pass time and dt to boundary_variables().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-07 16:02:01 -03:00
e00a70b477 GRAVITY: Add new module to handle gravitational forces.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-03 18:15:15 -03:00
5c4248581f Update the year.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-03 17:51:42 -03:00
84a3f1e687 COPYRIGHTS: Update year.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2016-11-18 11:09:19 -02:00
af3ba85029 DRIVER: Reduce iterm from read_restart_snapshot().
If reading from only some files failed, we should let know all processes
about it, so they terminate in a proper way.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2016-11-18 10:58:49 -02:00
cc6642c17b DRIVER: Use iterm instead of iret in read_restart_snapshot().
In this way the last message will indicate where the problem is.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2016-11-18 10:12:51 -02:00
275856c587 DRIVER: Do not open termination timer before it is needed.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2016-11-18 10:09:22 -02:00
b0e8c97401 IO: Add return flag to the snapshot restart.
If there is any problem with reading the restart snapshots, we just quit
instead of starting a dump uninitialized run.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2016-11-18 10:04:38 -02:00
1b8add50eb MESH: Fix block statistics calculation after job restart.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-12-18 06:55:32 -02:00
0179ffa23c DRIVER: Print timers which were used at least once.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-08 19:49:46 -02:00
81f1c2bbbf COPYRIGHT: Update year to 2015.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-06 16:01:36 -02:00
fe39a8a981 DRIVER: Fix signals handling for GNU and Intel compilers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-12-24 15:04:24 -02:00
02a67e86b2 DRIVER: Print information about the number of MPI processes used.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-08-09 09:31:52 -03:00
9ae7ef065b DRIVER, IO: Make sure thrs is set before using it.
Variable thrs was used before it was calculated for the first time. This
patch fixes it.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-08-04 11:08:32 -03:00
70a0b137b6 DRIVER: Make sure we compare the same data types.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-08-04 09:54:49 -03:00
9ac290f980 DRIVER: Change real variables to double precision.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-08-04 09:14:53 -03:00
7500981dbe DRIVER: Update boundaries just after problem initialization.
Otherwise we can get some kind of mass leaking problem, like in the case
of Kelvin-Helmholtz test.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-06-11 23:06:28 -03:00
b4d2055f8b OPERATORS: Add initialization/finalization subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-05-28 18:21:16 -03:00
8ac8248279 SOURCES: Add initial version of source terms module.
This contains only point mass gravitational acceleration so far, as an
example.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-04-29 18:35:58 -03:00
22f71ac94e DRIVER: Set the maximum number of iterations to a huge number.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-04-02 15:25:08 -03:00
73cbed8192 PROBLEMS: Rewrite module.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-02-07 13:57:28 -02:00
e0ca4b0392 SHAPES: Add new module to handle shapes embedded in domain.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-02-07 12:12:27 -02:00
29a1aa67d7 DRIVER: Add missing comma.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-30 17:55:41 -02:00
cddf77613e BLOCKS: Rewrite initialize_blocks() and finalize_blocks().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-15 10:33:37 -02:00
2983ba0580 INTEGRALS: Rewrite module. Add profiling.
Now, after restarting a job, a new integrals file is created.  Integrals
are stored after interval controlable by the parameter
'integrals_interval'. Also profiling has been added to measure time
spent on the integrals calculation.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-10 12:42:18 -02:00
1e7cb2a72c DRIVER: Store mesh statistics after restart as well.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-09 12:50:05 -02:00
08353c6fca IO: Implement restart snapshot intervals.
Using the runtime parameter 'restart_interval', which is a value
expressed in hours, we can control how often the restart snapshot is
written.  This is useful for long runs if we want to reduce the risk of
loosing too many processor hours.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-09 12:13:26 -02:00
b196256479 IO: Modify the way the job restart is handled by the code.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-09 11:22:23 -02:00
578ddbf7ea IO: Rename public subroutines *_data() to *_snapshot().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-09 09:29:22 -02:00
c01e0760fe DRIVER, IO: Implement precise snapshot times.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-08 18:07:54 -02:00
8009d6ff5c EVOLUTION: Rename n and t to step and time, respectively.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-08 17:34:15 -02:00
f08b917208 DRIVER: Increase nrun for the restarted jobs.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-08 17:08:08 -02:00
3443dc18aa IO: Rewrite subroutine read_data_h5().
The new version of subroutine read_data_h5() allows for restart a job
more efficiently with flexibility of changing the number of used
processes, both smaller or larger than the number of restart files.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-08 16:53:26 -02:00
4fd23fb32b IO: Rename restart_job() to read_restart_data().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-08 11:38:18 -02:00
75f756238b DRIVER: Correct loop termination conditions.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-08 11:14:50 -02:00
3f6e61e08e DRIVER: Remove cruft.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-06 13:42:47 -02:00
8c59513f0c DRIVER: Fix execution time calculation.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-06 13:40:11 -02:00
79bc31c918 DRIVER: Rewrite execution timing printing.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-06 11:37:27 -02:00
eb65443039 BOUNDARIES: Rewrite initialize_boundaries().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-02 17:18:42 -02:00
b20d11a159 TIMERS: Add timer counters.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-02 12:48:58 -02:00