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/
Received on 2021-07-02 17:55:12