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

189 commits

Author SHA1 Message Date
Sam Leitner
ee563ab1f7 new cart plugin 2013-02-05 12:48:30 -06:00
Oliver Hahn
41aca84102 ramses output: fixed support for refinement masks, added passive scalar masks 2013-01-23 21:52:08 +01:00
Oliver Hahn
eb30a6014f fixed an arithmetic precision issue when computing the ellipsoid region 2013-01-23 00:05:05 +01:00
Oliver Hahn
65ed455e36 gadget2 plugin: empty part of header is now initialized to zero, this makes it compatible with non-public gadget-2 and 3 2013-01-22 22:10:02 +01:00
Oliver Hahn
2705f78e69 fixed correction for previous grid shift when centering velocities via explicit shift 2013-01-08 17:14:02 +01:00
Oliver Hahn
2f4794e408 initial support for explicit shift compensation with center_vel, center_vel_posfinal... 2013-01-08 17:11:32 +01:00
Oliver Hahn
83e381f5cb some code cleanup 2012-12-17 10:33:18 +01:00
Oliver Hahn
f36f73fba4 added back support for regions of fixed dimension 2012-12-17 10:01:28 +01:00
Oliver Hahn
1f6059943e changed region code to have 1 cell additional bounding around ellipsoid
ramses output working with masks, needs more testing
2012-12-15 00:53:01 +01:00
Oliver Hahn
3b89c9b5cc grafic output plugin now writes out RAMSES nmls with mask support
the old nmls can be written by setting output/ramses_old_nml=yes
instead of output/ramses_nml=yes
2012-12-14 15:26:20 +01:00
Oliver Hahn
ce5a0253d5 fixed correct mask restriction for RAMSES/grafic 2012-12-14 15:00:25 +01:00
Oliver Hahn
3d548c3083 fixed a bug when using boxy high-res regions
fixed a bug when particles for ellipsoid generations have shift
2012-12-12 22:40:12 +01:00
Oliver Hahn
2e0fad972b fixed correct name for RAMSES refinement maps 2012-12-11 03:26:17 +01:00
Oliver Hahn
0db06e159c fixed a bug in the ellipsoid bounding box calculation 2012-12-11 03:14:36 +01:00
Oliver Hahn
77a6920ed1 added support to account for shifting of region defining particles when initializing from zoomed sim 2012-12-11 02:48:52 +01:00
Oliver Hahn
d1022359e9 added untested support for output of refinement mask with RAMSES 2012-12-11 02:40:40 +01:00
Oliver Hahn
ce3b5d3029 accuracy fixes to ellipsoid determination 2012-12-11 02:31:06 +01:00
Oliver Hahn
7cbfb01605 updates and fixes to refinement region infrastructure
support for gadget preliminary tests ok
2012-12-11 02:11:04 +01:00
Oliver Hahn
1df02fcbf6 started infrastructure for more advanced high-res regions (not cuboid)
added implementation for minimal enclosing ellipsoid
2012-12-09 16:42:47 +01:00
Oliver Hahn
025c9fbad0 bit of cleanup in the ART plugin, avoid a few compiler warnings 2012-12-09 16:42:00 +01:00
Oliver Hahn
f4556c30b3 merge 2012-11-20 16:06:49 +01:00
Oliver Hahn
fd9759e866 ENZO-plugin: added higher precision of refinement region position output to ENZO parameter file 2012-11-20 16:06:24 +01:00
Jose Onorbe
c85b99f9cd - Some corrections to avoid warnings during compilation.
- Added information about initial temperature for the baryons in the log.
- Modified output file names when doing a baryon run.
- Corrected bug of hubble constant units in header. Did not affect dark matter only results.
2012-11-14 14:28:04 -08:00
Michael Kuhlen
f98688bd23 Added the option to write out tipsy files in native binary format, which is much faster to read in than the XDR encoded default. Choose this option by setting 'tipsy_native = yes' under [output]. 2012-11-14 13:01:58 -08:00
Michael Kuhlen
94f863917c Unified tabbing (whitespace) in plugins/output_tipsy.cc (BSD-style with 4-space indentation). 2012-11-14 10:59:22 -08:00
Jose Onorbe
c1bb82e30b - Some corrections to avoid warnings during compilation.
- Added information about initial temperature for the baryons in the log.
- Modified output file names when doing a baryon run.
- Corrected bug of hubble constant units in header. Did not affect dark matter only results.
2012-10-31 00:54:31 -07:00
Oliver Hahn
b6e86bb6fb Merged in ohahn/music-iodevel (pull request #2) 2012-10-25 14:14:16 +02:00
Oliver Hahn
e505f97b9a fixed compatibility with gcc 4.7, unistd.h needs to be explicitly included 2012-10-16 10:13:14 +02:00
Oliver Hahn
d9fbe83bbc added new parameter [setup]/ref_dims=NX,NY,NZ to explicitly specify the resoluti
on of the high resolution region.
added output of comoving size of high-res region to screen
added output of densest point also when using the generic output plugin
2012-09-28 15:17:25 +02:00
Jose Onorbe
8ccd7c7dfe Implemented baryon output for ART module. Still under testing.
Done some cleaning and commenting in all the ART module code.
2012-09-11 16:30:20 -07:00
jonorbeb
f45bed11a9 Dark matter only art module tested and working ok. Units checked and ok.
All previous questions solved.
Still waiting for one last zoom test (moderate resolution 512^3) to compare it with
gadget results but full box and low res zoom look ok.

We should start thinking in the baryon format output.
2012-09-04 20:28:22 -07:00
Oliver Hahn
9275aa4529 added output of density extrema to ENZO plugin 2012-08-24 12:11:17 -07:00
jonorbe
bf38faaf23 Swap endianness option fully enabled for ART module: header, particle data and pt files. 2012-08-19 16:43:31 -07:00
Oliver Hahn
8040f40104 Gadget-2 plugin: added new parameters for length and mass units, allowed gadget coarse particle type to be specified in parameter file. Fixed bug that H0 instead of h was written to Gadget header. 2012-08-19 13:38:49 -07:00
Oliver Hahn
9b34875aa5 added change of endianness to data arrays in ART plugin, header etc. still need to be adjusted 2012-08-17 17:38:35 -07:00
jonorbe
ab24981135 - Fixed velocity units conversion. Still final test needed.
- Header ascii variable can be set in the config file.
- astep variable for ART has to be given in the config file.
2012-07-31 01:36:58 -07:00
jonorbe
c7e6cd5825 ART module for dm-only operative. Right now the module generates all the files necessary with the correct format and (re-check mandatory) units. Therefore, ICs generated should run!
Here I write a list of to-do things:

- Find a clever way to set the char array in header. Should be set in the config file and then probably use some getValue?
- Re-check velocity units
- How important is the EKIN parameter of the header to start ART. We are not calculating it. It could be done when writing the files but seems to much work taking into account that it is probably calculated at each timestep.
- astep parameter: clarification on how is set/chosen for the initial conditions. It is important for subsequent steps or ART auto-regulates the next steps?
- Need some clarifications for zoom-in simulations:
	+ which NROWC and NGRIDC is used (now using levelmin, but levelmax?)
        + Number of files. Not clear if all together in one or one for each level (in the last case we will need to do some important changes in the module)
- Confirm our current format is standard for all ART versions.
2012-07-27 20:17:12 -07:00
Oliver Hahn
3806e940c6 added code outline to read DM temporary particle files and assemble them 2012-07-27 12:27:27 -07:00
jonorbe
39025f7173 Assigning correct values to the parameters in header file. 2012-07-27 11:43:58 -07:00
Oliver Hahn
bc7d5de346 added baryon support to tipsy output plugin 2012-07-23 12:17:24 -07:00
Oliver Hahn
2ed1414fba added correct averaging of SPH+DM particles in coarse region 2012-07-23 12:16:05 -07:00
Oliver Hahn
448796873d added temp file output for DM data in ART plugin 2012-07-20 19:36:59 -07:00
Oliver Hahn
c3f5a14438 made art plugin compilable 2012-07-20 19:27:33 -07:00
Oliver Hahn
b7dd1cd8e3 added baryons to tipsy file output plugin 2012-07-20 19:17:18 -07:00
jonorbe
6d43639fc6 changes output_art.cc 2012-07-19 20:26:19 +02:00
jonorbe
aa80db066a Changes is output_art.cc 2012-07-19 19:41:57 +02:00
jonorbe
e121d9547c Some changes in output_art.cc 2012-07-19 19:14:34 +02:00
jonorbe
bb700ebd7c Added output_art.cc file. 2012-07-19 18:31:29 +02:00
Oliver Hahn
f10f8f9a6c version freeze for Santa Cruz Code Comparison Project 2012-07-11 17:15:45 -07:00
Oliver Hahn
3c12876d5e Added a temporary workaround for the 'music' transfer function plugin that
catches cases where the transfer functions become negative at very large k.
2011-09-07 22:28:39 -07:00
Oliver Hahn
06d1f88aa2 Gadget plugin: Fixed an overflow bug when using more than 2048**3 particles and baryons. 2011-09-06 17:08:36 -07:00
Oliver Hahn
cfc16f509d Added new option cosmology/z0norm to 'linger++' plugin. This allows to choose
the normalization at z=0 or the linearly scaled from z_ini.
2011-09-06 16:39:41 -07:00
Oliver Hahn
e7f8c2e1ec Added a first DM only version of a tipsy output plugin.
Credits go to Kyle Stewart and Shea Garrison-Kimmel.
2011-09-02 15:21:55 -07:00
Oliver Hahn
e6137dcf07 Fixed a bug that prevented the 'MUSIC' transfer function plugin to be used when
also the 'LINGER++' one was present (they used the same class name, so which one
was actually used depended on the compile order rather than the user choice).
2011-08-29 16:12:14 -07:00
Oliver Hahn
29822726ec Removed option "shift_back" for Gadget2 output as it can cause problems with zoom sims overlapping the periodic boundaries. 2011-08-29 14:00:47 -07:00
Oliver Hahn
ebd300f2fa Some more bugfixes for Gadget-2 output with very large grids.
Verified to work with 2048**3.
2011-06-09 12:08:24 -07:00
Oliver Hahn
6bc18e1aaf More 64 bit compliance fixes for output plugins.
Gadget-2 output plugin now can write multiple output files.
Saved a bit of memory in main loop
2011-06-08 20:58:42 -07:00
Oliver Hahn
03fb47cc3d Added support for very large arrays to enzo output plugin.
Enzo plugin now writes in slabs rather than in one monoloithic block (saving memory).
2011-06-03 18:41:39 -07:00
Oliver Hahn
e470be5da7 added support for new linger++ transfer function file format
cleaned up a bit of code
2011-06-02 11:12:44 -07:00
Oliver Hahn
b7756e22a0 full64bitcompliance 2011-06-01 11:01:24 -07:00
Oliver Hahn
df3ee81111 Fixed a bug in the ENZO output plugin for non-cubical subgrids when used in conjunction with PartitionNestedGrids=1 2011-04-27 10:46:44 -07:00
Oliver Hahn
af2f45763d Fixed a bug for Gadget2 output with baryons that caused low-res DM particles to have the wrong mass
when using more than two levels
2011-04-15 10:04:40 -07:00
Oliver Hahn
731641524c Added output of particle displacement file names to template parameter file in enzo output plugin. 2011-04-12 09:55:34 -07:00
Oliver Hahn
7cef5e69cc Fixed a bug when the transfer function tables contain negative values by clipping them off 2011-04-07 16:19:16 -07:00
Oliver Hahn
76a7a0559e Fixed a bug introduced with the last "fix", where a conversion to size_t fails. 2011-03-16 17:20:06 -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
8afc1f9b4a * fixed a bug in 'music' transfer function, where spline tables where not allocated correctly
* fixed a warning message of an unsigned loop variable with openmp in poisson.cc
2011-02-23 02:20:04 -08:00
Oliver Hahn
fdd12c3d9c minor fixes (mainly constraints) 2010-12-16 12:05:03 +01:00
Oliver Hahn
ff5d87273c Some minor fixes. No longer uses FFT to compute 2LPT terms when in unigrid mode and
when using deconolve=true (default=true).
2010-12-13 08:47:01 -08:00
Oliver Hahn
fa8cde6d29 Fixed a bug that cause negative grid offsets in some cases when overlapping with box edges. 2010-11-24 14:37:19 -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
2ea869e85a Fixed a bug where memory was deallocated that shouldn't be
Re-enabled the staggering for SPH particles.
2010-11-17 21:24:21 -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
485d6f2a4e Gadget2 plugin: Important Bugfix. Bug introduced two versions ago that caused the first particle
to have zero mass, which caused Gadget to choose a zero time step.
2010-11-10 22:56:46 -08:00
Oliver Hahn
f3364e9877 * Added support for velocity potentials for baryons and CDM
* Added new transfer function type 'music' which reads in a file with
  density and velocity transfer functions for baryons and CDM.
* Powerspectrum evolution in two-fluid sim appears to scale as
  predicted now at the per cent level
* Tool to compute velocity transfer functions is not included as of
  now. Let's see..
* Velocity potentials are not yet supported with 2LPT.
2010-11-02 23:35:57 -07:00
Oliver Hahn
dec2181626 Some more 64bit related fixes.
Fixed a bug in the Gadget-2 output that was left from an unfinished modification.
2010-10-26 21:42:49 -07:00
Oliver Hahn
c98e030c7c Updated MUSIC internal array access to 64bit compatibility.
Added support for FFTW3 (can be switched on in the Makefile), needed for
64bit compatible FFTs.
2010-10-26 11:37:31 -07:00
Oliver Hahn
332362ce0c Added buffered writing for Gadget-2 I/O plugin that prevents overflows of STL ofstream operations.
Buffer block size can be set by [output]/gadget_blksize, default is 2**20=1048576 so that the
buffer contains 8*2**20 bytes for doubles = 8MB for one write/read operation
2010-10-15 23:11:10 -07:00
Oliver Hahn
62b765002a fixed a bug in the RAMSES output plugin when grids are not cubical 2010-10-05 11:22:14 -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
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
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
41cbe38098 Fixed a bug that caused absolute grid offsets to be wrong.
Only affected enzo outputs with 'overlap!=0' at the moment.
2010-07-28 11:47:22 -07:00
Oliver Hahn
83f5fb9f39 Some fixes to the ENZO output plug-in
Added a fixed 'RefineBy=2' to ENZO parameter files.
Increased field width and precision for grid coordinates.
2010-07-28 01:02:47 -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
c48c73488a Initial commit, beta version release candidate 2010-07-02 11:49:30 -07:00