You could use a boost archive, and save the triangulation to a binary file using operator << (and >> to load it), i.e.:
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
...
std::ofstream file(filename, std::ios::binary | std::ios::trunc);
boost::archive::binary_oarchive oa(file);
oa << tria;
and then restore it with
std::ifstream file(filename, std::ios::binary);
boost::archive::binary_iarchive ia(file);
ia >> tria;
Alternatively, use the method GridOut::write_vtu and GridIn::read_vtu.
Best,
Luca.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/CAE1SiMC7FgY6KdxsV5LNp4vePfYs136A%2BiXdLKjHc%3D%3D0pipgcQ%40mail.gmail.com.