1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00
Commit graph

31 commits

Author SHA1 Message Date
Oliver Hahn
2236b9f29b fixed some code causing compiler warnings 2012-11-20 16:02:32 +01:00
Oliver Hahn
19cc12a603 moved all omp function calls into #ifndef SINGLETHREAD_FFTW so that the code also compiles on non-openmp compilers 2012-03-28 12:38:31 -07:00
Oliver Hahn
d6da7b16fc More 64 bit compliance changes.
New convergence criterium for multi-grid (No longer reduction of initial residual by X, but rel. error of X).
2011-06-01 18:05:12 -07:00
Oliver Hahn
aac5720a41 more fixes to ensure 64bit compliance throughout the code 2011-06-01 11:25:53 -07:00
Oliver Hahn
088fb32c23 Fixed some compiler warnings (and possibly errors with GCC 4.3) 2011-03-16 15:33:03 -07:00
Oliver Hahn
61a460b3b6 * Fixed a compiler error with hybrid poisson solve when using single precision
* Some minor code cleanup
2011-02-22 14:17:34 -08:00
Oliver Hahn
c927462924 Fixed a bug that caused the baryon velocity field to be not shifted in the SPH
case when a transfer function with no velocity info was used.
2010-11-18 22:30:16 -08:00
Oliver Hahn
8d9068852e * IMPORTANT: removed code left over from testing that caused suppression of small scale perturbations
* added baryon staggering for SPH
* added 2LPT for baryons/DM two-component fluid
* cleaned up some code
2010-11-16 16:41:40 -08:00
Oliver Hahn
27fe21e3d4 Migrated several implementations to .cc files.
Some minor bugfixes.
No longer use Akima splines, use cubic splines in tabulated transfer functions
Added more ocnstraint infrastructure.
2010-11-12 15:05:45 -08:00
Oliver Hahn
c09f2adbe4 Random numbers are now only generated once. Can choose between memory caching and disk caching of random numbers
in conf file (option '[random]/disk_cache={yes|no}').
2010-10-04 18:57:24 -07:00
Oliver Hahn
1dee46e390 Fixed a bug that caused k-mode averaging not to be used when it should be in some cases.
Disabled staggered particles for Gadget temporarily.
2010-10-01 15:18:06 -07:00
Oliver Hahn
745f9dc543 Added a strictly conservative cubic spline interpolation.
This reduces errors further below 1e-4 in the entire interior.
2010-09-30 16:05:59 -07:00
Oliver Hahn
ad709d7400 Various minor fixes.
* Fixed a bug in the coarse grid density correction that lead to a shift in the correction in some rare cases
* Fixed a bug in restricting fine grid noise when the double size fine grid (for FFT) is actually larger than the domain.
* Added new log file routines that use printf syntax
* Added log file output to most parts of the code
* Removed the stats file output, it is now appended to the log file
2010-09-29 15:42:07 -07:00
Oliver Hahn
e424f3c205 Some fixes
* Fixed a normalisation bug in the hybrid Poisson solver
* Added calculation of the exact T(r=0) by summing modes rather than by analytical integration
* Fixed a bug in the deconvolution that caused the Nyquist mode to be excluded in the deconv.
* Fixed a bug in the random number generator when using single thereaded FFTW.
2010-09-28 15:58:41 -07:00
Oliver Hahn
fcc53f6edf Massive code cleanup
New conservative transfer function scheme.
New random number generator that preserves coarse Fourier modes instead of applying Hoffman-Ribak
Some minor bugs fixed.
2010-09-24 16:14:09 -07:00
Oliver Hahn
275753ede2 Many minor changes
* Moved hybrid poisson solver from convolution_kernel.cc to poisson.cc
* Fine-tuned deconvolution schemes for various running modes
* Added lots of doxygen documentation
2010-08-31 21:59:31 -07:00
Oliver Hahn
af02e4ef4e Added new fine-grid hybrid poisson solver. This can be turned on with '[poisson]/fft_fine=yes'. Needs more testing though.
Also added a cut-off for baryons when using CAMB tabulated transfer functions to reduce ringing.
2010-08-21 19:43:21 -07:00
Oliver Hahn
28701c3d8e Added some logging infra structure. 2010-08-14 18:19:48 -07:00
Oliver Hahn
ae0d833155 Fixed a bug that caused grid shifts to be wrong in some cases when using
levelmin_TF>levelmin
2010-08-14 16:51:17 -07:00
Oliver Hahn
5d3b66e96a Added new interpolation scheme for long-range component.
The LR part is now interpolated directly to fine grids from coarse grids not
involving intermediate grids. This improves accuracy for >=2 levels.
2010-08-10 15:51:49 -07:00
Oliver Hahn
67d3038e25 Fixed a bug that caused an error message when reading random values from
file and only using one unigrid level.
2010-08-06 10:23:45 -07:00
Oliver Hahn
b3622955e8 Added a new averaged transfer function for coarse grids. This beats down errors there and
improves the solution.

Also fixed another bug related to the previous grid placement correction with align_top,
size corrected grids have to be enforced to have an even offset.
2010-08-05 12:14:41 -07:00
Oliver Hahn
dbaad65c5a MAJOR REV: FIXED 2LPT SIGNS, WHICH WERE ACTUALLY CORRECT!!
Note to myself: don't fix signs while listening to talks!!
Other mods/fixes:
* 2LPT is now supported also with distinct baryon/DM
  power spectra. This creates now an overhead when
  using Eisenstein&Hu or BBKS. But who cares.
* Reverted to determinant formulation of LLA rather than
  second order expansion. This is much more accurate.
* Added baryon density filter. Baryon density field is now
  consistent with CIC DM density. This is achieved by
  convolving with an additional grid cell filter (and
  no deconvolution).
* Tested LLA, skewness is now exact to a few per cent
  but tends to be systematically higher.
* 2LPT needs a bit less memory now in multigrid mode
  (FFT based 2LPT still needs humongous amounts).
* Cleaned up code output.
2010-07-31 05:38:55 -07:00
Oliver Hahn
55170f18d5 Re-enabled optimized unigrid version for cases when trivially possible.
This fixes issue #1
2010-07-29 15:08:09 -07:00
Oliver Hahn
fbebfabdfb Fixed a minus in 2LPT. Fixed an issue with a deconvolution filter.
Code needs cleanup! Added (undocumented) k-space 2LPT.
2010-07-27 15:21:50 -07:00
Oliver Hahn
002763346f major mod: added subgrid deconvolution for DM
* The DM transfer function is now deconvolved with the cell assignment
  function in order to restore power near the Nyquist wavenumber.
* Added an option to change the random number sample cube size
  [random]/cubesize. This should be set >128 to generate un-
  correlated numbers. True fix pending.
* Removed some unused code
* Increased Buffer size for Gadget-2 output plug-in
2010-07-21 01:10:29 -07:00
Oliver Hahn
2383f8b68d Fixed a bug that lead to refinement grid centering being ignored when using levelmin_TF=levelmax.
Fixed a bug with top grid kernel normalization, this reduces errors a bit.
A non-cubic grid is now extended to a cubic grid in the density calculation. This should reduce artefacts due to TF truncation.
Added a new (undocumented and internal) parameter that forces grid centering on the specified refinement region also in unigrid mode. This should in the future also obey that the shift comes in multiples of the top grid cells (which are however unknown).
Fixed a bug in the generic output plugin that caused non-cubic grids to be cut to cubic grids.
2010-07-09 01:01:54 -07:00
Oliver Hahn
d805e99df3 Fixed a bug that prevented levelmin_TF from working properly.
Fixed a missing reduction operation when normalizing convolution kernels in an OpenMP loop.
Some other minor beauty fixes.
2010-07-07 22:15:33 -07:00
Oliver Hahn
689484eb68 Fixed a bug that caused only 4th order gradients to be used.
Fixed a bug causing wrong shift-backs of particle positions for Gadget.
Disabled optimized unigrid mode as it did not work in all circumstances (issue posted).
2010-07-07 15:31:15 -07:00
Oliver Hahn
288749aea9 minor fixes 2010-07-02 16:17:14 -07:00
Oliver Hahn
c48c73488a Initial commit, beta version release candidate 2010-07-02 11:49:30 -07:00