Re: Conflicts between "GADGET2_HEADER" and "MERGERTREE" in the Config.sh

From: Volker Springel <vspringel_at_MPA-Garching.MPG.DE>
Date: Sun, 4 Jul 2021 21:02:30 +0200

Hi Weiguang,

I have made a small change such that the code now compiles if GADGET2_HEADER is used together with MERGERTREE. Tree output is still possible. Still, I can only recommend that new output is produced in hdf5 ('format 3'), and not using the old binary format of gadget2 ('format 1 or 2').

Best,
Volker

> On 2. Jul 2021, at 17:54, Weiguang Cui <cuiweiguang_at_gmail.com> wrote:
>
> Dear all,
>
> It seems that Gadget4 doesn't support having both options "GADGET2_HEADER" and "MERGERTREE" on. Compiling errors are here:
> /build/include -I/fftw3/build/include -Ibuild -Isrc -c src/io/snap_io.cc -o build/io/snap_io.o
> icpc: command line warning #10006: ignoring unknown option '-Wredundant-decls'
> icpc: command line warning #10006: ignoring unknown option '-Wcast-align'
> In file included from src/io/../fof/../data/simparticles.h(26),
> from src/io/../fof/fof.h(19),
> from src/io/snap_io.cc(28):
> src/io/../fof/../data/../mpi_utils/mpi_utils.h(142): warning #1418: external function definition with no prior declaration
> void allreduce_sum(T *glob, int N, MPI_Comm Communicator)
> ^
>
> src/io/snap_io.cc(695): error: class "snap_io::io_header" has no member "Ntrees"
> header.Ntrees = ntot_type[NTYPES];
> ^
>
> src/io/snap_io.cc(702): error: class "snap_io::io_header" has no member "Ntrees"
> header.Ntrees = 0;
> ^
>
> src/io/snap_io.cc(703): error: class "snap_io::io_header" has no member "TotNtrees"
> header.TotNtrees = 0;
> ^
>
> src/io/snap_io.cc(859): error: class "snap_io::io_header" has no member "Ntrees"
> ntot_type[NTYPES] = header.Ntrees;
> ^
>
> src/io/snap_io.cc(946): error: class "snap_io::io_header" has no member "Ntrees"
> read_scalar_attribute(handle, "Ntrees_ThisFile", &header.Ntrees, H5T_NATIVE_UINT64);
> ^
>
> src/io/snap_io.cc(947): error: class "snap_io::io_header" has no member "TotNtrees"
> read_scalar_attribute(handle, "Ntrees_Total", &header.TotNtrees, H5T_NATIVE_UINT64);
> ^
>
> compilation aborted for src/io/snap_io.cc (code 2)
>
> Is this by design? Is it possible to output the merger tree for old Gadget IC files?
> Thank you.
>
> Best,
> Weiguang
>
> -------------------------------------------
> https://weiguangcui.github.io/
>
> -----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send mail to
> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
> A web-archive of this mailing list is available here:
> http://www.mpa-garching.mpg.de/gadget/gadget-list
Received on 2021-07-04 21:02:31

This archive was generated by hypermail 2.3.0 : 2022-09-01 14:03:43 CEST