24 Commits

Author SHA1 Message Date
e76e875004 Update the copyright year to 2024.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2024-03-07 09:34:43 -03:00
bdd09a044b PARAMETERS: Unify formatting of CLOSE statement too.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2023-12-19 15:39:44 -03:00
f31cb12545 PARAMS: Unify formatting of INQUIRE, READ, and WRITE statements.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2023-12-19 15:33:29 -03:00
b10e8d8db4 PARAMETERS: Access the parameter file as read-only.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2023-12-19 15:24:45 -03:00
0c8cab74a2 IO, PARAMETERS, SYSTEM: Better parameter restoring.
This commit implements a better way (less I/O operations) restoring of
the parameters during the job restart. Some parameters, such as the size
of the block, or the equation system, cannot be changed during the
restart. Such parameters need to be restored from the restart snapshots.
The new way restores these parameters on the MPI master process only,
updates their values if they were changed, and distributes them to other
MPI processes. This way the number of I/O operations is kept to the
minimum (only one process access one file).

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2023-12-18 09:30:07 -03:00
66f5fc5c58 PARAMETERS: Read parameters on master and distribute them.
This commit restores the previous way of processing the parameter file.
It is read and processed on the MPI master process, and then the list
of parameters is distributed to other MPI processes. This way only one
process accesses the parameter file, reducing the number of I/O
operations, which can be significant in the case of multiprocess MPI
jobs.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2023-12-17 21:47:38 -03:00
6847d1c994 PARAMETERS: Rewrite module with use of variable strings.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2023-12-17 18:09:12 -03:00
81de98d9e2 Update the copyright year to 2023.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2023-02-01 18:36:37 -03:00
9829505650 Update copyright year to 2022.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-02 09:51:41 -03:00
0c03c2d3bd PARAMETERS: Remove dependency on HELPERS.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2021-11-16 11:36:26 -03:00
118d643524 PARAMETERS: Initialize status flag in read_parameters().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2021-02-25 20:05:27 -03:00
3d16d5c13d Update copyrights.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2021-02-04 17:35:04 -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
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
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
ad0303d3ba Update copyright.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2020-03-02 13:18:53 -03:00
d8331f64fe PARAMETERS, HELPERS: Use helper subroutines in read_parameters().
Increase the description length to 26 characters.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-30 22:55:07 -02:00
b843baa638 PARAMETERS: Make get_parameter_*() private.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:37:18 -02:00
9c5841d9f3 PARAMETERS: Add interface for get_parameter_*() subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 21:05:12 -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
ec79b9eeca PARAMETERS: Print the name of parameter file in a consistent way.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2019-01-28 14:58:17 -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