Hello, I ran into a crash when attempting to use the copy constructor of a ChSystem, and I found the reason why in ChSystem.cpp.
if using something like : ChSystemNSC* copied_sys = new ChSystemNSC(original); The copy constructor calls the function SetTimestepperType (line 108). In this function we test if the timestepper type is the same as the one we want to set by comparing it with GetTimestepperType (line 461), which is simply calling copied_sys->timestepper->GetType(), without any kind of check. This produces a crash, as the timestepper for this is empty at this point. I'm sorry I'm not familiar enough with GitHub to open an issue there, but I still wanted to report this. -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/d7d7fb38-f36c-486f-84ed-e97db413e2d6n%40googlegroups.com.
