From 20b2f791e29dd0719c82b2b1845b1689bbe429f1 Mon Sep 17 00:00:00 2001 From: Adrian Insaurralde Avalos Date: Mon, 29 Dec 2025 13:06:34 -0300 Subject: [PATCH] FEM: sanitize NAN format on frd import depending on c runtime lib and possibly locale calculix may format NAN differently so we need to sanitize when importing the results --- src/Mod/Fem/feminout/importCcxFrdResults.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Fem/feminout/importCcxFrdResults.py b/src/Mod/Fem/feminout/importCcxFrdResults.py index 08d413d128..dd4257320d 100644 --- a/src/Mod/Fem/feminout/importCcxFrdResults.py +++ b/src/Mod/Fem/feminout/importCcxFrdResults.py @@ -383,6 +383,9 @@ def read_frd_result(frd_input): for line in frd_file: + # depending on c runtime lib and possibly locale calculix may format NAN differently so we + # need to sanitize the file + line = line.replace("NAN(IND)", "NAN") # Check if we found nodes section if line[4:6] == "2C": nodes_found = True