Grzegorz Kowal
3d5582f230
Remove flag CONSERVATIVE from advance_rk2().
2012-07-31 16:04:43 -03:00
Grzegorz Kowal
68dc3de4d9
Move flux update of data blocks to update_fluxes().
2012-07-31 16:02:59 -03:00
Grzegorz Kowal
e3df4f38f2
Update time step after updating primitive variables in advance().
2012-07-31 15:16:25 -03:00
Grzegorz Kowal
eda9cdcf43
Make subroutine find_new_timestep() private.
...
Also call it in initialize_evolution().
2012-07-31 15:13:51 -03:00
Grzegorz Kowal
63d1c8c0b1
Implement subroutines advance() and advance_rk2().
...
Subroutine advance() is a replacement for the subroutine evolve(). It
performs one step variable update by calling the selected integration
method. So far only 2nd order Runge-Kutta is supported, which is
implemented in subroutine advance_rk2().
Subroutine advance_rk2() advances the conservative variables by one step
using the 2nd order Runge-Kutta method with the boundary update after
each substep. This results in the reduced number of ghost zones, for
example 2 instead of 4, as in the previous version.
2012-07-31 15:04:40 -03:00
Grzegorz Kowal
b337e89f88
Merge branch 'master' into new_time_advance
2012-07-31 14:37:34 -03:00
Grzegorz Kowal
771c769c70
Fix the flux boundary update.
2012-07-31 14:37:05 -03:00
Grzegorz Kowal
2e26d47362
Add two arrays of conserved variables to the block structure.
...
In these two arrays we store temporary states during the Runge-Kutta
integration. The new pointer %u in the block structure points to the
current array of the conservative variables.
2012-07-31 14:14:42 -03:00
Grzegorz Kowal
b09f21351a
Remove variable conversion and dependency on SCHEME from module IO.
2012-07-28 14:21:39 -03:00
Grzegorz Kowal
bff5db8b71
Rewrite the blast problem.
2012-07-28 14:11:07 -03:00
Grzegorz Kowal
0f57b01d61
Rewrite main program in driver.F90.
2012-07-28 13:48:15 -03:00
Grzegorz Kowal
f5347db830
Rename initialize_mpi() and finalize_mpi() subroutines.
2012-07-28 12:29:44 -03:00
Grzegorz Kowal
50429d322d
First step of the rewrite of the main program.
2012-07-28 12:24:12 -03:00
Grzegorz Kowal
f74412ccd7
Correct comments in module PROBLEMS.
2012-07-28 12:13:58 -03:00
Grzegorz Kowal
f74146691c
Remove completely dependencies and module CONFIG.
2012-07-28 12:12:35 -03:00
Grzegorz Kowal
03bace4603
Move iterm from CONFIG to common block.
2012-07-28 12:03:17 -03:00
Grzegorz Kowal
4cca807172
Remove module dependency of EVOLUTION on CONFIG.
2012-07-28 11:47:14 -03:00
Grzegorz Kowal
287e3690eb
Remove IO module dependency on CONFIG.
2012-07-28 08:43:11 -03:00
Grzegorz Kowal
ecc715b535
Use primitive variables in the refinement criterion check.
2012-07-27 22:47:39 -03:00
Grzegorz Kowal
d230bc369e
Update primitive variables for each block after each time advance.
2012-07-27 22:33:18 -03:00
Grzegorz Kowal
06d5f3178c
Add new subroutine update_primitive_variables().
2012-07-27 22:28:29 -03:00
Grzegorz Kowal
087b9bc282
Rewrite the blast problem setup.
2012-07-27 22:13:52 -03:00
Grzegorz Kowal
b2ed1c4207
Deallocate primitive variable in deallocate_datablock().
2012-07-27 22:03:57 -03:00
Grzegorz Kowal
18b4de6458
Add array Q in the data block structure to store primitive variables.
2012-07-27 21:45:35 -03:00
Grzegorz Kowal
5b2d79a0c4
Remove dependency of PROBLEMS on module SCHEME.
2012-07-27 21:42:10 -03:00
Grzegorz Kowal
fcac1db487
Move domain subroutines to new module DOMAINS.
2012-07-27 21:37:57 -03:00
Grzegorz Kowal
d5e720fb5c
Move refinement check to new module REFINEMENT.
2012-07-27 21:28:59 -03:00
Grzegorz Kowal
92462e76b9
Rewrite module PROBLEMS.
...
Heavy rewrite of the module PROBLEMS in order to remove the dependency
on module CONFIG and improve the cleariness of the module.
2012-07-27 21:13:43 -03:00
Grzegorz Kowal
07048dca7d
Update makefile after file problem.F90 rename.
2012-07-27 19:27:42 -03:00
Grzegorz Kowal
789c332ca1
Rename file problem.F90 to problems.F90.
2012-07-27 19:24:08 -03:00
Grzegorz Kowal
fc72250516
Rename module PROBLEM to PROBLEMS and update dependencies.
2012-07-27 19:23:11 -03:00
Grzegorz Kowal
d2a6ebcb8b
Remove dependency on CONFIG from module BOUNDARIES.
2012-07-27 17:18:24 -03:00
Grzegorz Kowal
10d65b727a
Slightly rewrite module EVOLUTION.
2012-07-27 17:01:21 -03:00
Grzegorz Kowal
6f6ecbb592
Rewrite a bit the module FORCING.
2012-07-27 16:55:32 -03:00
Grzegorz Kowal
9596b29671
Use module COORDINATES in INTEGRALS.
2012-07-27 16:49:46 -03:00
Grzegorz Kowal
7f38a53bb2
Rewrite module INTERPOLATIONS and initialize in main program.
2012-07-27 16:46:36 -03:00
Grzegorz Kowal
87dd287a8f
Update makefile after file interpolation.F90 rename.
2012-07-27 16:40:06 -03:00
Grzegorz Kowal
25f48de5dd
Rename file interpolation.F90 to interpolations.F90.
2012-07-27 16:37:31 -03:00
Grzegorz Kowal
18886475fc
Rename module INTERPOLATION to INTERPOLATIONS.
2012-07-27 16:36:51 -03:00
Grzegorz Kowal
dbd38c9399
Remove dependency of module SCHEME on CONFIG.
2012-07-27 16:30:55 -03:00
Grzegorz Kowal
28ec2b9144
Initialize module EQUATIONS in the main program.
2012-07-27 16:29:30 -03:00
Grzegorz Kowal
7e8f4757bd
Remove RESISTIVITY from module SCHEME.
2012-07-27 16:23:18 -03:00
Grzegorz Kowal
57967cb022
Remove support for viscosity from module SCHEME.
2012-07-27 16:21:24 -03:00
Grzegorz Kowal
4fd6ed0f84
Add new module EQUATIONS.
...
This module handles variable conversion for a given set of equations.
2012-07-27 16:18:02 -03:00
Grzegorz Kowal
e1b79a34d0
Use variables from COORDINATES in module INTERPOLATION.
2012-07-27 16:07:50 -03:00
Grzegorz Kowal
24c261afb5
Use variables from COORDINATES in module SCHEME.
2012-07-27 16:06:27 -03:00
Grzegorz Kowal
20b300ab74
Use variables from COORDINATES in module MESH.
...
Remove dependency on module CONFIG.
2012-07-27 16:02:07 -03:00
Grzegorz Kowal
b01ddcf0ad
Prepare block indices in initialize_coordinates().
2012-07-27 16:01:01 -03:00
Grzegorz Kowal
c8f0383fc0
Update comments in finalize_coordinates().
2012-07-27 15:14:05 -03:00
Grzegorz Kowal
91fb4324be
Rewrite initialize_coordinates().
...
The coordinate dimensions and bounds have been moved to module
COORDINATES. In the rewritten subroutine initialize_coordinates() the
block dimensions and domain bounds are obtained from module PARAMETERS,
and then all other module variables are initialized.
2012-07-27 15:10:31 -03:00