619 Commits

Author SHA1 Message Date
Grzegorz Kowal
4e54018330 Perform the refinement step only if maxlev > 1. 2011-04-26 12:37:25 -03:00
Grzegorz Kowal
e43f5a76e4 Mark the point of restart in the integrals file. 2011-04-26 12:22:50 -03:00
Grzegorz Kowal
6acbc9dc3b Fix forcing term in subroutine evolve_rk2(). 2011-04-26 11:50:57 -03:00
Grzegorz Kowal
f4631876fc Store integrals after the initiation of a problem. 2011-04-26 11:38:16 -03:00
Grzegorz Kowal
1729a53b67 Allow for appending the integrals for restarted jobs. 2011-04-26 11:37:27 -03:00
Grzegorz Kowal
2c715155e0 Small correction of the initial info printing. 2011-04-26 10:41:10 -03:00
Grzegorz Kowal
72ca908bc6 Add forcing terms after the main update.
- change order of calculating terms; first perform the main update
   of the conserved variables, then add forcing and source terms; in
   this way we do not change time step which determines the stability of
   scheme before the conserved variables enter Riemann solver; this is
   especially important in highly supersonic simulations, when in the
   presence of very low density, even small change of velocity can make
   the scheme numerically unstable;
2011-04-26 10:36:16 -03:00
Grzegorz Kowal
3409368815 Prevent from creating local extrema in MP reconstructions. 2011-04-26 09:19:09 -03:00
Grzegorz Kowal
a39a88a72d Change total cover blocks to maximum cover blocks. 2011-04-25 22:22:32 -03:00
Grzegorz Kowal
037723c1f0 Improve printing info about resolution and block structure. 2011-04-25 19:01:56 -03:00
Grzegorz Kowal
0ff433e16b Rename the code from Godunov-AMR to AMUN. 2011-04-25 13:44:34 -03:00
Grzegorz Kowal
8c6ebc3768 Improve program and module setup information formatting. 2011-04-25 13:31:41 -03:00
Grzegorz Kowal
de2be2f4dd Recalculate block coordinates after changing maxlev. 2011-04-24 20:36:13 -03:00
Grzegorz Kowal
fa01b0e205 Fix correction of FLUX in Makefile. 2011-04-24 09:59:45 -03:00
Grzegorz Kowal
09d477cb9c After the main loop store only restart files.
- in this way we keeps consistency in the file numbering;
2011-04-24 09:56:58 -03:00
Grzegorz Kowal
1237cbc5c8 Find the maximum speed only after problem initialization.
- this step is not required after job restart, since time and time
   steps are stored in the restart files;
2011-04-24 09:45:24 -03:00
Grzegorz Kowal
6bb85024d5 Restore random generator seeds during job restart.
- implement new subroutine read_attribute_vector_integer_h5() to read
   an integer vector attribute;
2011-04-24 09:42:27 -03:00
Grzegorz Kowal
92265694eb Correct get_seeds() and add set_seeds() subroutines. 2011-04-24 09:12:32 -03:00
Grzegorz Kowal
9688dfbe2f Correct setting the number of seeds in init_generator(). 2011-04-24 09:07:59 -03:00
Grzegorz Kowal
042a520be7 Store random number generator seed in HDF5 files.
- the number of seeds and seed values must be stored in the restart
   file in order to restart a job properly and guarantee unchanged
   generation of random numbers after restart;
2011-04-24 09:02:35 -03:00
Grzegorz Kowal
4de25ba527 Correct the next file number after restart. 2011-04-23 23:34:18 -03:00
Grzegorz Kowal
a60b17998d Store position of meta block in restart files, as well. 2011-04-23 23:31:06 -03:00
Grzegorz Kowal
10a4d6b09f Move forcing and integrals initialization before problem setup. 2011-04-23 23:11:22 -03:00
Grzegorz Kowal
e25bc4f573 Merge branch 'master' into 'job_restart'.
Conflicts:
	src/driver.F90
2011-04-23 21:56:57 -03:00
Grzegorz Kowal
768312ef7f Move initialization of same variables just after read_params(). 2011-04-23 21:54:45 -03:00
Grzegorz Kowal
eaeae39aae Reset neighbor pointers of the refined block.
- this prevents storing wrong neighbors IDs in the HDF5 files;
2011-04-23 21:48:51 -03:00
Grzegorz Kowal
2c928038fb Initiate time estime of program execution. 2011-04-23 21:32:46 -03:00
Grzegorz Kowal
fc8bef3a83 Rewrite big part of update_mesh(). 2011-04-23 17:29:20 -03:00
Grzegorz Kowal
cfdf5002cb Use temporary pointer pchild in refine_block(). 2011-04-23 17:17:11 -03:00
Grzegorz Kowal
4e500af7b3 Store refinenemt flags in the coordinate group of HDF5 file.
- this helps to debug the refinement/derefinement process;
2011-04-22 10:41:22 -03:00
Grzegorz Kowal
ae9112e1f6 Add subroutine check_metablock() to check individual meta blocks. 2011-04-21 14:13:25 -03:00
Grzegorz Kowal
0177811f55 Check subroutine check_mesh() to debug refinement.
- subroutine check_mesh() verifies, before and after the mesh update,
   if the meta blocks pointer fields point to correct blocks;
2011-04-21 08:39:31 -03:00
Grzegorz Kowal
c24e09fedc Move coordinate variables generation to another subroutine. 2011-04-15 00:46:19 +02:00
Grzegorz Kowal
aa80869645 Move generation if the level resolutions to init_blocks(). 2011-04-15 00:25:22 +02:00
Grzegorz Kowal
3df814ab8a Store evolution parameters in the restart files. 2011-04-15 00:09:50 +02:00
Grzegorz Kowal
2d513508db Write restart files at the end of program execution. 2011-04-14 16:16:58 +02:00
Grzegorz Kowal
1e7dec177c Restore metablock structure during job restart. 2011-04-14 16:14:03 +02:00
Grzegorz Kowal
8348f9ca64 Restore all datablocks for job restart. 2011-04-14 15:01:17 +02:00
Grzegorz Kowal
75e31649fc Add block_array array to store pointers to restored blocks. 2011-04-14 14:34:51 +02:00
Grzegorz Kowal
98c8471123 Fix appending new meta and data blocks. 2011-04-14 13:40:04 +02:00
Grzegorz Kowal
2ea08c6205 Store the block dimensions as a global attribute. 2011-04-14 12:46:38 +02:00
Grzegorz Kowal
342858f12b Allocate all datablocks in read_attributes_h5(). 2011-04-14 10:26:43 +02:00
Grzegorz Kowal
a617de78ba Allocate all metablocks in read_attribute_h5(). 2011-04-14 00:37:41 +02:00
Grzegorz Kowal
9b46eb5c61 Move init_blocks() to the driver. 2011-04-14 00:19:45 +02:00
Grzegorz Kowal
9b8f30b222 Read global attributes in read_data_h5(). 2011-04-13 18:55:55 +02:00
Grzegorz Kowal
2bf24510d2 Implement opening and closing files in read_data_hdf5(). 2011-04-12 18:30:39 +02:00
Grzegorz Kowal
33881a02bc Add checking if restart file exists and is in HDF5 format. 2011-04-11 17:03:06 +02:00
Grzegorz Kowal
5d8efdcdb3 Add and call the initial subroutine to restore data from HDF5 file. 2011-04-11 16:27:08 +02:00
Grzegorz Kowal
944e680553 Add new parameter 'nres' to determine the restart file number.
- this parameter determines which restart dump should be read in order
   to restart current job;
2011-04-11 16:08:00 +02:00
Grzegorz Kowal
23ae07b2f6 Add viscous and resistive terms for adiabatic EOS.
- also slightly optimize the dissipation term calculations;
2011-04-05 00:42:24 +02:00