Hello everybody, I'm trying to use SPLASH for the first time.
I want to read an AMUSE hdf5 particle set generated by GADGET2. However, when I try to read the particle set with amsplash-hdf5 I get this error: splash.defaults not found: using default settings > reading AMUSE HDF5 format > ----------------------- gd_t00000.hdf ----------------------- > npart: 107660 ncolumns: 19 > > allocating memory: parts = 107660 steps = 1 cols = 19 > converting GADGET smoothing length on gas particles to usual SPH > definition (x 0.5) > At line 232 of file ../src/read_data_amuse_hdf5.f90 > Fortran runtime error: Index '0' of dimension 2 of array 'dat' outside of > expected range (1:19) > I commented the following lines in read_data_amuse_hdf5.f90: if (required(ih) .and. size(dat(1,:,:)).ge.ih .and. > npartoftype(1,i).gt.0) then > print "(a)",' converting GADGET smoothing length on gas particles to > usual SPH definition (x 0.5)' > dat(1:npartoftype(1,i),ih,i) = 0.5*dat(1:npartoftype(1,i),ih,i) > endif > After recompiling, amsplash-hdf5 seems to read the hfd5 file correctly. Do you know what could be the issue? Kind regards, Alessandro -- You received this message because you are subscribed to the Google Groups "SPLASH users forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/splash-users. For more options, visit https://groups.google.com/d/optout.
