2850 Commits

Author SHA1 Message Date
ec7d12260e FORCING: Adjust forcing modes for domain smaller than unity.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-16 13:41:43 -03:00
c06bce0ee0 CMAKE: Allow enabling/disabling FMA only on x86_64 architecture.
By default disable FMA on x86_64.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-11 17:45:57 -03:00
22104fb867 FORCING: Fix region of turbulence driving.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-07 19:56:47 -03:00
caa0a1bcdb STATISTICS: Fix averaging of the boundary fluxes.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-24 10:06:36 -03:00
5c8d13f385 STATISTICS: Remove unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-24 08:54:03 -03:00
fbfc1983e6 STATISTICS: Implement mass and energy conservation terms calculation.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-23 22:42:17 -03:00
b953ebed09 Merge branch 'master' into statistics-rework 2022-10-23 18:46:03 -03:00
f539dbe3bb PYTHON: Increase amunpy version to 0.9.9.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-23 15:56:43 -03:00
41bfe45764 PYTHON: Correct calculation of electric field.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-23 15:55:08 -03:00
296da6a63e STATISTICS: Introduce flags to enable/disable statistics collection.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-17 12:37:20 -03:00
a70a74d231 Revert "CMAKE: Disable FMA optimizations by default."
This reverts commit 94ad4878502dcbd23945dbd03790504989b63c79.

It breaks CI on ARM64 machine.
2022-10-17 11:35:03 -03:00
94ad487850 CMAKE: Disable FMA optimizations by default.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-17 11:32:27 -03:00
5952bcdb34 CMAKE: Turn off OpenMP by default.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-17 11:31:30 -03:00
336a04377b BOUNDARIES: Remove unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-17 11:29:58 -03:00
64c58bb4bd EQUATIONS: Make compiler happy with imported variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-17 11:26:19 -03:00
a09bcfeccb PYTHON: Increase amunpy version to 0.9.8.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-14 12:41:12 -03:00
b2cc87d0aa PYTHON: Fix __complete_variables__().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-14 12:34:30 -03:00
0badf0d143 PYTHON: Increase amunpy version to 0.9.7.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-06 13:08:22 -03:00
9190efe4a8 PYTHON: Add pressure for the isothermal case.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-06 07:58:37 -03:00
3ec21a59cb PYTHON: Fix reading pressure.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-05 22:24:42 -03:00
cd0e6ea675 USEWR_PROBLEM: Fix identation in setup_user_problem().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-09-30 19:12:01 -03:00
cd9b909333 USER_PROBLEM: Correct arguments for update_user_sources().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-09-30 19:09:59 -03:00
dac7a1fcfe CI: Never pull image.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-09-30 18:44:10 -03:00
a8fb5d33c5 Revert "CI: Update image to ubuntu-hpc:latest."
This reverts commit 203d5df7b8ee6448baad9e3b1b19f8dd54ea4277.
2022-09-30 18:40:31 -03:00
203d5df7b8 CI: Update image to ubuntu-hpc:latest.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-09-30 18:29:41 -03:00
07c740ae44 CI: Update image to ubuntu/hpc:latest.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-09-30 18:25:22 -03:00
bdd82ef344 PYTHON: Correct the licence entry in the setup script.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-09-09 11:35:43 -03:00
a8ea128d6a PYTHON: Process version only if explicitely present in XML files.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-07-14 09:18:19 -03:00
5cd0353b37 PYTHON: Fix reading Lorentz factor.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-06-17 16:16:17 -03:00
8e4bd1712d EVOLUTION: Change safety factor to 0.91.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-06-11 00:22:56 -03:00
4af6e99ca8 EVOLUTION: Do not repeat if tolerance reached in embedded methods.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-06-09 18:04:53 -03:00
7c4f5660fa SYSTEM: Rewrite progress printing in evolve_system().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-06-04 15:25:00 -03:00
8d2edeed12 IO: Fix storing and restroring the forcing coefficients.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-31 19:30:51 -03:00
0f104bd033 EQUATIONS: Print the location just once in correct_unphysical_states().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-27 11:59:35 -03:00
cb56db7880 HELPERS: Introduce two print_message variants.
One prints the location, another one just the message.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-27 11:58:06 -03:00
e50e83bb1c EQUATIONS: Adapt unphysical cell info for 2D and 3D.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-27 11:54:32 -03:00
edb3924499 EQUATION: Correct formatting in correct_unphysical_states().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-26 22:34:47 -03:00
aa99145260 EQUATIONS: Print the location of unphysical cell.
Also slightly rewrite and simplify the arguments of
correct_unphysical_states().

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-26 22:21:02 -03:00
2696d5dffb EVOLUTION: Rewrite the handling of unimplemented methods.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 19:20:57 -03:00
94ea7d171d SCHEMES: Remove redundant empty line.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 19:02:56 -03:00
1033b4ede7 INTERPOLATIONS: Rewrite the handling of unimplemented methods.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 18:48:01 -03:00
74737b71f5 SCHEMES: Rewrite the handling of unimplemented Riemann solvers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 18:32:02 -03:00
b0e221e2f3 HELPERS: Print all messages in two lines.
The first line shows the location from which the message was called, and
the second one shows the actual message.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 18:19:57 -03:00
d02c46e6d8 HELPERS: Add function to change the string case.
New functions uppercase() and lowercase() change the input string to the
upper case and lower case, respectively.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 18:17:55 -03:00
4f68d94827 FORCING: Implement driving region for in non-periodic directions.
This allows to control in which region the turbulence perturbation
should be injected.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-04-07 10:33:30 -03:00
fbc04e4996 EVOLUTION: Mark updated blocks as physical in update_variables().
Otherwise, these blocks are considered as non-physical if the
fix_unphysical_cells is on.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 15:40:26 -03:00
95d117cd1a EVOLUTION: Quit update_variables() in case of problems.
The possible failure could take place in the boundary update or
conversion to the conservative variables. In case of a failure, jump
directly to the end part of subroutine in which the %boundary flag is
cleared.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 13:39:58 -03:00
a4890bb240 EQUATIONS: Rewrite slightly correct_unphysical_states().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 13:34:31 -03:00
571e352e5b EVOLUTION: Remove unused variable from check_variables().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 13:12:30 -03:00
9aa74d2343 EVOLUTION: Rewrite update_variables().
After the boundary update, all respective blocks modified by the mesh or
boundary update are required to update their primitive variables. If a
data block contains a non-physical cell, it is corrected by
correct_unphysical_states(), if fix_unphysical_cells is switched on.
As the last steps, the shapes are updated if they are switched on.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 13:07:17 -03:00