PB write error!

hello,everyone, I want to output the data to a file and I wrote following code,
{
ofstream out(“setaf.txt”);
out<<setaf[];
}
savemesh(th2,“th2.msh”)
the procedure exect due to “PB write error”. what’s wrong with it and how to fix it?

Did you figure this out? I’m dealing with this error right now as well.

Ok I figured out the problem that was happening for me, you have to save mesh with a .mesh file extension.

1 Like

Thank you so much! I meet the same problem, after use your approach, the code run correctly!

1 Like