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

565 commits

Author SHA1 Message Date
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
Oliver Hahn
da12cb1cb9 Merged in develop (pull request #17)
Develop
2020-12-10 01:24:04 +00:00
Oliver Hahn
b6f4036353 fixed forgotten factor of 1/2 in panphasia phase shift (bug introduced in last commit) has no consequences besides tiny global shift 2020-12-10 02:03:49 +01:00
Oliver Hahn
3ce9198406 removed deprecated old binary format Gadget-2 plugin 2020-12-10 02:02:19 +01:00
Oliver Hahn
f61e26ab9f added phase shift from cell center to cell corner of panphasia field (change suggested by Adrian Jenkins) 2020-12-03 13:23:37 +01:00
Oliver Hahn
09074d43b3 fixed some bugs that can sometimes appear for combinations of some grid resolutions and/or numbers of mpi tasks 2020-11-16 23:20:52 +01:00
Oliver Hahn
9ac083db86 copy paste fix 2020-11-14 13:47:37 +01:00
Oliver Hahn
a467476327 made parallel recv dependent on whether mpi supports threading 2020-11-13 17:20:24 +01:00
Oliver Hahn
1bca9990dd fixed dealias communication bug for some combinations of resolution and mpi tasks 2020-11-13 15:52:20 +01:00
Oliver Hahn
955b5987f8 changed old convolution padding routines to use new fourier interpolation routine 2020-11-12 22:40:03 +01:00