1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-18 15:53:45 +02:00
Commit graph

574 commits

Author SHA1 Message Date
Matthieu Schaller
cc1709304a Add md5sum filter to the outputs of the SWIFT plugin 2021-05-30 00:20:40 +02:00
Matthieu Schaller
ba3a82aea1 Always write out a mass array in the SWIFT plugin even if the masses are constant 2021-05-29 23:21:31 +02:00
Adrian Jenkins
57e6c6300d Corrected bug that chose the wrong Fourier grid size for the case
where the particle grid is not a power of two times the descriptor
S-value.
2021-05-27 14:27:40 +01:00
Adrian Jenkins
c13fdc0572 Added a transpose step at the bottom of pan_mpi_routines.c.
Fixed an error when fdim !=1 - not currently relevant to this version,
but will allow the code to use - say 1/8th as much memory for storing
the Panphasia coefficients - at the cost of less accurate reproduction
of the phases close to the Nyquist frequency of the Fourier grid.
2021-05-17 14:29:17 +01:00
Oliver Hahn
316b187166 added old PANPHASIA to the new plugin, which can now deal with both old and new descriptors 2021-05-14 22:42:04 +02:00
Oliver Hahn
6a40a29eda PANPHASIA_HO plugin now executes calls formerly in main.c on a Grid_FFT object, result is Fourier interpolated back to size required by monofonic, modes are passed through to LPT module, not tested yet 2021-05-14 15:57:31 +02:00
Oliver Hahn
8aec696340 fixed memset out of bounds (missing factor 1/2) 2021-05-14 15:42:04 +02:00
Oliver Hahn
0ffa733344 moved all routines from main.c to the plugin, added external as included path 2021-05-14 13:57:57 +02:00
Adrian Jenkins
a787014b5f Edit plugin for panphasia_ho to pass descriptor and particle load grid.
Please enter the commit message for your changes. Lines starting
2021-05-11 14:55:51 +01:00
Adrian Jenkins
5a7aeffabe Edited main.c to receive the descriptor and particle load grid,
and to choose the correct relative level for the Panphasia field.
2021-05-11 14:51:53 +01:00
Adrian Jenkins
974900dc81 Added define statements for USE_PRECISION_FLOAT to make both the FFTW
and Panphasia routines either both single precision or both double
precision.

:wq
2021-05-11 12:26:18 +01:00
Oliver Hahn
69f9772cc5 added call to see if old or new descriptor is used 2021-05-11 11:53:40 +02:00
Oliver Hahn
ffc3334847 changed a char* to const char* 2021-05-11 11:53:17 +02:00
Adrian Jenkins
2d5cc0ac50 Updated code with new panphasia_ho versions the allow the Fourier grid
to be a multiple of the grid of Panphasia cells. Fixed a few format
statements.
2021-05-07 14:30:28 +01:00
Oliver Hahn
73c0957b66 Merge branch 'master' of bitbucket.org:ohahn/monofonic into develop 2021-05-04 22:19:09 +02:00
Oliver Hahn
8137262ea7 bugfixes for RAMSES output with MPI 2021-05-04 22:14:10 +02:00
Oliver Hahn
f7c9d606f7 modified to have a minimally compilable PANPHASIA_HO example inside monofonic 2021-05-02 22:52:21 +02:00
Oliver Hahn
b567ba8e68 first commit PANPHASIA_HO 2021-05-02 22:05:18 +02:00
Matthieu Schaller
515e2b3063 Add more information about what SWIFT parameters not to set in the SWIFT yaml file when using monofonIC outputs 2021-03-29 14:05:07 +02:00
Matthieu Schaller
6ed5afe473 Update README file and example configuration about the SWIFT output plugin. 2021-03-28 23:48:12 +02:00
Matthieu Schaller
d7273c7ae5 Write logging messages to report the writing progress 2021-03-28 23:40:33 +02:00
Matthieu Schaller
17f51ed8f4 Protect the MPI calls with correct ifdef's 2021-03-28 23:23:34 +02:00
Matthieu Schaller
c1f942907a Fix some whitespace problems 2021-03-28 23:19:51 +02:00
Matthieu Schaller
36bf7b0760 Make sure all ranks compute h and u, not just rank 0 2021-03-28 23:14:29 +02:00
Matthieu Schaller
098dafa1ef Fix constant used in the SWIFT i/o plugin to match exactly the value of the physical constants used internally by SWIFT 2021-03-28 22:19:14 +02:00
Matthieu Schaller
5207492b8e In the SWIFT i/o plugin, get each rank to write its data in a round-robin fashion using an offset in the previously-created array 2021-03-28 22:19:14 +02:00
Matthieu Schaller
c1ebf38aa1 Make rank 0 create the arrays in the hdf5 file for the SWIFT i/o plugin. 2021-03-28 22:19:14 +02:00
Matthieu Schaller
7a463aad2e Move the calculation of the temperatures to the constructor of the SWIFT i/o plugin 2021-03-28 22:19:14 +02:00
Matthieu Schaller
a3e6581902 Move the writing of header and other general properties to rank 0 only in the SWIFT i/o plugin 2021-03-28 22:19:14 +02:00
Matthieu Schaller
5aa59719da Merged in update_swift_plugin (pull request #20)
Update swift plugin
2021-03-28 17:55:32 +00:00
Matthieu Schaller
e6b5b6464f Write more information about the IC code to the ICs' header in the SWIFT i/o plugin 2021-03-13 21:26:45 +01:00
Matthieu Schaller
cf7060dc1a Print the initial energy as well as the initial temperature to the screen 2021-02-28 19:31:32 +01:00
Matthieu Schaller
012c306e30 Fix a bug where the wrong file name was used in the output plugin super-class in MPI mode 2021-02-28 19:29:23 +01:00
Matthieu Schaller
e9a6a1aa58 Small fixes 2021-02-28 19:07:58 +01:00
Matthieu Schaller
646968423c Update the units block written to the ICs by the SWIFT plugin to use the same constants as assumed internally by SWIFT. 2021-02-28 19:01:52 +01:00
Matthieu Schaller
408cefa1b3 Write some information about the monofonIC code into the generated IC file 2021-02-28 18:55:25 +01:00
Matthieu Schaller
3a67c50f36 Write the redshift in the header of SWIFT ICs since the code will check that against the value provided in the param file upon startup 2021-02-28 17:56:06 +01:00
Matthieu Schaller
e9ebdc9e5d Extended all the header arrays to have 7 entries in the SWIFT output plugin 2021-02-28 17:49:24 +01:00
Matthieu Schaller
e3606275ad Moved the neutrinos to type 6 in the SWIFT plugin 2021-02-28 17:39:28 +01:00
Matthieu Schaller
622b61cac7 Set the smoothing-lengths to the mean inter-particle separation including the correct h-scaling 2021-02-28 17:33:27 +01:00
Michael Bühlmann
1ef2b417e3 Merged in master (pull request #19)
fix genericio plugin

Approved-by: Oliver Hahn
2020-12-29 09:09:12 +00:00
Michael Buehlmann
c28dc782e3 fix genericio plugin 2020-12-28 23:25:11 -06:00
Oliver Hahn
0c4cb7e5ae final polishing touches to PANPHASIA plugin as suggested by Adrian Jenkins 2020-12-13 11:19:45 +01:00
Oliver Hahn
315790a129 one more tuning of panphasia minimum noise grid size 2020-12-10 17:06:33 +01:00
Oliver Hahn
5dbf6d9398 Merge branch 'master' of https://bitbucket.org/ohahn/monofonic 2020-12-10 15:55:47 +01:00
Oliver Hahn
bce685d102 fixed a compiler error just introduced 2020-12-10 15:55:36 +01:00
Oliver Hahn
d314f63d37 Merged in develop (pull request #18)
allow also uppercase letters in 'true' 'false' parameters in config files
2020-12-10 14:38:24 +00:00
Oliver Hahn
563a6c9f07 added a minimum panphasia resolution 2020-12-10 13:29:07 +01:00
Oliver Hahn
1ce8287be2 allow also uppercase letters in 'true' 'false' parameters in config files 2020-12-10 12:40:10 +01:00
Oliver Hahn
61eced697f fixed that DoBaryonVrel is in category 'setup', not 'cosmology' 2020-12-10 02:28:11 +01:00