Dear chrono users.

I'm almost new to chrono project.
after finishing ChSystemNSC, I saved data as binary archive file.
and then i read it again into ChSystemNSC, but i got an runtime error.
Please refer to below code snippet.

//set up archive out file
std::string binfile = out_dir + "/foo_archive.dat";
ChStreamOutBinaryFile mfileo(binfile.c_str());
ChArchiveOutBinary marchiveoutbinary(mfileo);

// save data into binary file
my_system.ArchiveOUT(marchiveoutbinary);

//then read it again into my_system.
//but, i got an runtime error.
ChStreamInBinaryFile mfilei(binfile.c_str());
ChArchiveInBinary binin(mfilei);
my_system.ArchiveIN(binin);

Thank you.


-- 
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/3c62019a-edbc-45fe-abee-61f490bdf6c5n%40googlegroups.com.

Reply via email to