sorry for the slow reply, have now fixed this r5231
Daniel > On 15 Apr 2015, at 2:20 am, Juan Pablo Farias <[email protected]> wrote: > > is not working for me.. works fine (without particle types) if I label the > column with the types something else, let say "tipo". But when I labelled > like "type" I got this error: > > > read splash.defaults > > reading ALL dumpfiles into memory > >>>>>>>>>>>>>>>>>>>>>>>>>> sampledata.dat <<<<<<<<<<<<<<<<<<<<<<<<<< > > allocating memory: parts = 111 steps = 1 cols = 12 > > reallocating memory: parts = 1110 steps = 1 cols = 12 > *** Error in `splash': free(): invalid next size (fast): 0x0000000001322080 > *** > > Program received signal SIGABRT: Process abort signal. > > Backtrace for this error: > #0 0x7FE0580655F7 > #1 0x7FE058065C3E > #2 0x7FE05736CEAF > #3 0x7FE05736CE37 > #4 0x7FE05736E527 > #5 0x7FE0573ADF73 > #6 0x7FE0573B5585 > #7 0x4A497D in __mem_allocation_MOD_alloc > #8 0x5455B4 in read_data_ > #9 0x4C0244 in __getdata_MOD_get_data > #10 0x5415FB in MAIN__ at splash.f90:? > Aborted (core dumped) > > > any idea? > > JP > > > > > > > > From: Daniel Price [mailto:[email protected]] > To: Juan Pablo Farias [mailto:[email protected]] > Cc: [email protected] > Sent: Tue, 14 Apr 2015 09:45:07 -0300 > Subject: Re: stellar types in splash > > Hi Juan, > > What you suggested was a good idea, so I implemented this: > > r5229 > > Now if you have a column labelled as "type" or "particle type" in the columns > file, then the ascii read will recognise that and use it to set the types for > those particles appropriately. > > Seems to work on the sample data you sent. There is currently no way to set > the name for those types, but this is not a big problem (they are called > "type 1", "type 2" etc. in the menus). > > Let me know if that is what you were after, and thanks for the suggestion. > > Daniel > > > > On 14 Apr 2015, at 2:01 am, Juan Pablo Farias <[email protected]> wrote: > > > > Hi Daniel: > > > > actually I bet is very simple to do it, I just have an extra column with > > the type where 1 means sph particle and 2 stars. > > So what I need is that splash recognize this extra column defined in the > > file "columns" like type or something. > > > > Here you have a sample data. > > > > As a suggestion, I think if there is no obvious way to handle types with > > ascii, at least you should define one for splash. I don't save > > my data with the other formats because is easy for me to work with a binary > > that I know exactly how to handle, and > > use for other calculations. > > So I'm using ascii just to make a nice movie and is very easy to adapt to > > any requirement that splash could have. > > i.e replacing adding a column, concatenate files or whatever. So I think It > > wouldn't be hard for any user to adapt the > > data to visualize it with splash in ascii, specially if we are trying > > splash for the first time. > > > > cheers > > > > JP > > From: Daniel Price [mailto:daniel.price@] > > To: Juan Pablo Farias [mailto:jfarias@] > > Sent: Mon, 13 Apr 2015 04:27:59 -0300 > > Subject: Re: stellar types in splash > > > > Hi Juan, > > > > Thanks for the nice compliments! > > > > Many of the other formats do handle this, just there is no obvious way to > > handle it with the generic ascii read (everyone does it a different way). > > > > However, it is very simple for me to modify one of the existing read > > formats to read your data - just send me a sample file and a description of > > the format (or preferably, a copy of the routine that writes/reads it). > > > > Cheers, > > > > Daniel > > > > > On 10 Apr 2015, at 5:58 am, Juan Pablo Farias <[email protected]> > > > wrote: > > > > > > Hi Daniel: > > > > > > I'm a grad Student from Chile, and I just discovered the advantages of > > > splash code. And is amazing. > > > There is just one thing that I can't figure it out how to do it. > > > > > > As I've been looking into your code, and ascii data only supports one > > > type of particles that is "gas". > > > However I'm wondering If there any way to use stars or sink particles > > > without using another data > > > format i.e.maybe with an extra column in the data with "sink" or "gas" on > > > it. I'm avoiding to modify your code for now. > > > > > > thanks a lot > > > > > > Juan Pablo Farias > > > > <columns><sampledata.dat> -- 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.
