ENH: increase precision of points for some mesh conversion applications

This commit is contained in:
Mark Olesen
2016-12-15 21:35:14 +01:00
parent a32a915d2e
commit af74809786
7 changed files with 20 additions and 0 deletions

View File

@ -1143,6 +1143,9 @@ int main(int argc, char *argv[])
repatcher.changePatches(newPatchPtrList);
}
// Set the precision of the points data to 10
IOstream::defaultPrecision(max(10u, IOstream::defaultPrecision()));
mesh.write();
Info<< "End\n" << endl;

View File

@ -1289,6 +1289,9 @@ int main(int argc, char *argv[])
Info << endl;
}
// Set the precision of the points data to 10
IOstream::defaultPrecision(max(10u, IOstream::defaultPrecision()));
mesh.write();
Info<< "End\n" << endl;

View File

@ -574,6 +574,9 @@ polyMesh pShapeMesh
defaultFacesType
);
// Set the precision of the points data to 10
IOstream::defaultPrecision(max(10u, IOstream::defaultPrecision()));
Info << "Writing polyMesh" << endl;
pShapeMesh.removeFiles();
pShapeMesh.write();

View File

@ -154,6 +154,9 @@ int main(int argc, char *argv[])
wordList(0)
);
// Set the precision of the points data to 10
IOstream::defaultPrecision(max(10u, IOstream::defaultPrecision()));
Info<< "Writing mesh ..." << endl;
mesh.removeFiles();

View File

@ -313,6 +313,9 @@ int main(int argc, char *argv[])
patchPhysicalTypes
);
// Set the precision of the points data to 10
IOstream::defaultPrecision(max(10u, IOstream::defaultPrecision()));
Info<< "Writing mesh ..." << endl;
mesh.removeFiles();
mesh.write();

View File

@ -544,6 +544,8 @@ int main(int argc, char *argv[])
);
}
// Set the precision of the points data to 10
IOstream::defaultPrecision(max(10u, IOstream::defaultPrecision()));
Info<< "Writing mesh to " << runTime.constant() << endl << endl;

View File

@ -78,6 +78,9 @@ int main(int argc, char *argv[])
wordList(0)
);
// Set the precision of the points data to 10
IOstream::defaultPrecision(max(10u, IOstream::defaultPrecision()));
Info<< "Writing mesh ..." << endl;
mesh.removeFiles();