12 bool printElementNumber,
bool printSICN,
bool printSIGE,
13 bool printGamma,
bool printDisto,
bool saveAll,
16 FILE *fp =
Fopen(name.c_str(),
"w");
18 Msg::Error(
"Unable to open file '%s'", name.c_str());
46 names +=
"\"Elementary Entity\"";
48 if(printElementNumber) {
53 names +=
"\"Element Number\"";
91 fprintf(fp,
"View \"Statistics\" {\n");
92 fprintf(fp,
"T2(1.e5,30,%d){%s};\n", (1 << 16) | (4 << 8), names.c_str());
94 std::vector<GEntity *> entities;
96 for(std::size_t i = 0; i < entities.size(); i++)
97 if(saveAll || entities[i]->physicals.size())
98 for(std::size_t j = 0; j < entities[i]->getNumMeshElements(); j++)
99 entities[i]->getMeshElement(j)->writePOS(
100 fp, printElementary, printElementNumber, printSICN, printSIGE,
101 printGamma, printDisto, scalingFactor, entities[i]->tag());