Grzegorz Kowal
abc98f8369
Implement positivity fix subroutine in module INTERPOLATIONS.
2012-08-01 16:42:45 -03:00
Grzegorz Kowal
88bbafeeb4
Rename module SCHEME to SCHEMES and rewrite it completely.
2012-08-01 16:38:10 -03:00
Grzegorz Kowal
4006de5584
Update makefile after the rename of file scheme.F90.
2012-08-01 12:59:27 -03:00
Grzegorz Kowal
02fc228cd6
Rename file scheme.F90 to schemes.F90.
2012-08-01 12:58:19 -03:00
Grzegorz Kowal
bbed8c41e5
Rewrite module EVOLUTION. Move update_interval() to SCHEME.
...
Improve subroutine comments and remove unused code.
2012-08-01 12:56:52 -03:00
Grzegorz Kowal
2413de249f
Move maxspeed() to module EQUATIONS.
2012-08-01 12:16:38 -03:00
Grzegorz Kowal
fca524da42
Remove all remaining and unused evolution subroutines.
2012-07-31 17:43:11 -03:00
Grzegorz Kowal
abc6c263b0
Remove subroutine evolve().
2012-07-31 17:40:34 -03:00
Grzegorz Kowal
ec16790010
Use fluxspeed() from module EQUATIONS in SCHEME.
2012-07-31 17:02:29 -03:00
Grzegorz Kowal
c15296df8e
In Riemann solvers use prim2cons() from module EQUATIONS.
2012-07-31 16:57:39 -03:00
Grzegorz Kowal
bc57d406d1
Use primitive variables in maxspeed() and remove cons2prim().
2012-07-31 16:55:00 -03:00
Grzegorz Kowal
db606cfa1a
Use primitive variables in the Riemann solvers.
...
There is no need to convert conservative variables to primitive ones,
since they are already up to date, so pass primitive variables directly
to Riemann solvers in subroutine update_flux().
2012-07-31 16:49:14 -03:00
Grzegorz Kowal
272b40ddbb
Move primitive variable update for all blocks to update_variables().
2012-07-31 16:38:16 -03:00
Grzegorz Kowal
e0860d9afb
Move variable interval calculation to update_interval().
2012-07-31 16:23:20 -03:00
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