diff --git a/applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C b/applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C index f6c84fbb1a1c6710377afed14d1ddb1af58670b4..add9bf03927f9480d5138a453f86c8ceb76fda84 100644 --- a/applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C +++ b/applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C @@ -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; diff --git a/applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C b/applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C index e4c9fb7bf9fc509546a70c0cb4e7813b330a65e1..9239b81a5dba69f9c8a8e3eaed8c17fd2e72a2c8 100644 --- a/applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C +++ b/applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C @@ -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; diff --git a/applications/utilities/mesh/conversion/kivaToFoam/readKivaGrid.H b/applications/utilities/mesh/conversion/kivaToFoam/readKivaGrid.H index d291b8313962e180afbacd589e67919ee5e297f2..6b5fa8621c54f2516951c248418fd2e8d33b8ffc 100644 --- a/applications/utilities/mesh/conversion/kivaToFoam/readKivaGrid.H +++ b/applications/utilities/mesh/conversion/kivaToFoam/readKivaGrid.H @@ -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(); diff --git a/applications/utilities/mesh/conversion/mshToFoam/mshToFoam.C b/applications/utilities/mesh/conversion/mshToFoam/mshToFoam.C index 2bc7e4fd7e59cb01241467386f83eda0957f841c..ac225fd735d61097c69f90c02e4f43aad8bc5e00 100644 --- a/applications/utilities/mesh/conversion/mshToFoam/mshToFoam.C +++ b/applications/utilities/mesh/conversion/mshToFoam/mshToFoam.C @@ -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(); diff --git a/applications/utilities/mesh/conversion/netgenNeutralToFoam/netgenNeutralToFoam.C b/applications/utilities/mesh/conversion/netgenNeutralToFoam/netgenNeutralToFoam.C index c7f8d86a200e11511ff7feb69db73216900a20d2..bb8730370e29c51ac8cf8dcfddc2ce047daca81e 100644 --- a/applications/utilities/mesh/conversion/netgenNeutralToFoam/netgenNeutralToFoam.C +++ b/applications/utilities/mesh/conversion/netgenNeutralToFoam/netgenNeutralToFoam.C @@ -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(); diff --git a/applications/utilities/mesh/conversion/tetgenToFoam/tetgenToFoam.C b/applications/utilities/mesh/conversion/tetgenToFoam/tetgenToFoam.C index b7b80d576c1be37b775fc37a9d8c3bbae98e1403..de11e14a7424f4652ab193e06c643e6ebfadc16b 100644 --- a/applications/utilities/mesh/conversion/tetgenToFoam/tetgenToFoam.C +++ b/applications/utilities/mesh/conversion/tetgenToFoam/tetgenToFoam.C @@ -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; diff --git a/applications/utilities/mesh/conversion/vtkUnstructuredToFoam/vtkUnstructuredToFoam.C b/applications/utilities/mesh/conversion/vtkUnstructuredToFoam/vtkUnstructuredToFoam.C index a338b390b5ff5be76429cbc720bdedf9cf509f26..7780397e2000f428c7733d6466420bb5c530c64e 100644 --- a/applications/utilities/mesh/conversion/vtkUnstructuredToFoam/vtkUnstructuredToFoam.C +++ b/applications/utilities/mesh/conversion/vtkUnstructuredToFoam/vtkUnstructuredToFoam.C @@ -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();