]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
[FORUM][Windows] SF #1512 relax precision to 1e-9 on windows
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Mon, 30 Sep 2024 14:03:58 +0000 (16:03 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 30 Sep 2024 14:04:48 +0000 (16:04 +0200)
products/meshio.pyconf
products/patches/meshio-5.3.5.p02.nastran_fID_1512.patch [new file with mode: 0644]

index 6d87618fa2b2a2e95a36a8555860c536d1498b28..b3ce9fdc5c6857e43d976345362b3abeeb2e4f00 100644 (file)
@@ -49,7 +49,7 @@ version_5_3_5_win :
 {
    compil_script: "meshio-5.3.5.bat"
    archive_info : {archive_name : "meshio-5.3.5.tar.gz"}
-   patches : ['meshio-5.3.5.p01.gmsh_ansys.patch']
+   patches : ['meshio-5.3.5.p01.gmsh_ansys.patch', 'meshio-5.3.5.p02.nastran_fID_1512.patch']
    properties :
    {
      incremental : "yes"
diff --git a/products/patches/meshio-5.3.5.p02.nastran_fID_1512.patch b/products/patches/meshio-5.3.5.p02.nastran_fID_1512.patch
new file mode 100644 (file)
index 0000000..dcf10bb
--- /dev/null
@@ -0,0 +1,11 @@
+--- meshio-5.3.5_ref/src/meshio/nastran/_nastran.py    2024-01-31 16:09:01.000000000 +0100
++++ meshio-5.3.5_dev/src/meshio/nastran/_nastran.py    2024-09-30 15:59:26.751404661 +0200
+@@ -410,7 +410,7 @@
+         -0.1234 --> "-1.234E-1"
+         3.1415926535897932 --> "3.14159265359E+0"
+     """
+-    out = np.format_float_scientific(value, exp_digits=1, precision=11).replace(
++    out = np.format_float_scientific(value, exp_digits=1, precision=9).replace(
+         "e", "E"
+     )
+     assert len(out) <= 16