You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am studying Velociraptor and have tried to run the example sample_dmcosmological_6dfof_subhalo_tidal_debris on a small DM only simulation run with Gadget-4. The snapshot has been saved using gadget2 binary format compatibility. The first issue is that the implementation of the g2 binary format on gadget4 has changed, and the block for "little h" is now used for storing other information regarding the tree. I have then changed the code slightly in two points:
On gadgetitems.h I have changed the header structure to:
INTEGER npart[NGTYPE];
double mass[NGTYPE];
double time;
double redshift;
int flag_sfr;
int flag_feedback;
INTEGER npartTotal[NGTYPE];
int flag_cooling;
int num_files;
double BoxSize;
double Omega0;
double OmegaLambda;
double HubbleParam;
double Hubble;
INTEGER npartTotalHW[NGTYPE];
int flag_entropy_ICs;
int flag_stellar_age;
int flag_metals;
char fill[256-64- 68- 28- 24- 64- 24 - 58-64-34]; / fills to 256 Bytes, here calculation is based on 6 gadget particle types with default header stuff*/
(...)
As G4 will write other info instead of h on both HubbleParam and Hubble, I commented the line: opt.h=header[ifirstfile].HubbleParam; on ReadGadget, to not overwrite the value I declare on cfg file.
However, when running, the code returns me Segmentation Fault while searching for substructures. I am attaching here the log files, the cfg file used, and the produced output files. Any ideas on how to investigate this issue further?
The code has been compiled with:
cmake3 -DGSL_INCLUDE_DIR=$GSL_INC -DGSL_LIBRARY=$GSL_LIB/libgsl.so -DGSL_CBLAS_LIBRARY=$GSL_LIB/libgslcblas.so -DVR_GADGET_HEAD2=ON -DVR_OPENMP=ON -DVR_MPI=ON ..
make all
The code has been run with:
stf -i /beegfs/tcastro/gadget4/runs/convergence.sdumont/256p3smoothing2/snapdir_004/snap_004 -s 16 -Z 1 -o 256p3smoothing2 -C sample_dmcosmological_6dfof_subhalo_tidal_debris.cfg
The text was updated successfully, but these errors were encountered:
TiagoBsCastro
changed the title
Segmentation fauld when running sample_dmcosmological_6dfof_subhalo_tidal_debris on G4
Segmentation fault when running sample_dmcosmological_6dfof_subhalo_tidal_debris on G4
Jan 17, 2021
Hi Tiago, I will have a detailed look but one thing you could try is the development branch that has a few fixes to handle some issues that could propagate later as a seg fault in master (could will at least be more informative).
Hi Pelahi, thanks for the fast reply. Running it on the development branch after implementing the changes I have mentioned before, runs fine. Let me know if there is anything you want me to pack for you/run myself in order to understand it better.
Dear all,
I am studying Velociraptor and have tried to run the example sample_dmcosmological_6dfof_subhalo_tidal_debris on a small DM only simulation run with Gadget-4. The snapshot has been saved using gadget2 binary format compatibility. The first issue is that the implementation of the g2 binary format on gadget4 has changed, and the block for "little h" is now used for storing other information regarding the tree. I have then changed the code slightly in two points:
On gadgetitems.h I have changed the header structure to:
INTEGER npart[NGTYPE];
double mass[NGTYPE];
double time;
double redshift;
int flag_sfr;
int flag_feedback;
INTEGER npartTotal[NGTYPE];
int flag_cooling;
int num_files;
double BoxSize;
double Omega0;
double OmegaLambda;
double HubbleParam;
double Hubble;
INTEGER npartTotalHW[NGTYPE];
int flag_entropy_ICs;
int flag_stellar_age;
int flag_metals;
char fill[256-64- 68- 28- 24- 64- 24 - 58-64-34]; / fills to 256 Bytes, here calculation is based on 6 gadget particle types with default header stuff*/
(...)
As G4 will write other info instead of h on both HubbleParam and Hubble, I commented the line: opt.h=header[ifirstfile].HubbleParam; on ReadGadget, to not overwrite the value I declare on cfg file.
However, when running, the code returns me Segmentation Fault while searching for substructures. I am attaching here the log files, the cfg file used, and the produced output files. Any ideas on how to investigate this issue further?
The code has been compiled with:
cmake3 -DGSL_INCLUDE_DIR=$GSL_INC -DGSL_LIBRARY=$GSL_LIB/libgsl.so -DGSL_CBLAS_LIBRARY=$GSL_LIB/libgslcblas.so -DVR_GADGET_HEAD2=ON -DVR_OPENMP=ON -DVR_MPI=ON ..
make all
The code has been run with:
stf -i /beegfs/tcastro/gadget4/runs/convergence.sdumont/256p3smoothing2/snapdir_004/snap_004 -s 16 -Z 1 -o 256p3smoothing2 -C sample_dmcosmological_6dfof_subhalo_tidal_debris.cfg
tcastro.zip
Many thanks!
The text was updated successfully, but these errors were encountered: