From bc69cfd19b7f7704dc7a14989ee8e738e97459bd Mon Sep 17 00:00:00 2001 From: Uwe Date: Wed, 27 Jul 2022 01:48:10 +0200 Subject: [PATCH] [FEM] Elmer: a fix for keywords - according to the Elmer solver manual, check keywords have to be quoted --- src/Mod/Fem/femsolver/elmer/sifio.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/Mod/Fem/femsolver/elmer/sifio.py b/src/Mod/Fem/femsolver/elmer/sifio.py index 8ded82eb04..3bce29ce74 100644 --- a/src/Mod/Fem/femsolver/elmer/sifio.py +++ b/src/Mod/Fem/femsolver/elmer/sifio.py @@ -31,7 +31,6 @@ __url__ = "https://www.freecadweb.org" import collections import six - SIMULATION = "Simulation" CONSTANTS = "Constants" BODY = "Body" @@ -57,7 +56,6 @@ _VALID_SECTIONS = ( COMPONENT, ) - _NUMBERED_SECTIONS = ( BODY, MATERIAL, @@ -69,24 +67,21 @@ _NUMBERED_SECTIONS = ( COMPONENT, ) - _SECTION_DELIM = "End" _WHITESPACE = " " _INDENT = " " * 2 _NEWLINE = "\n" - _TYPE_REAL = "Real" _TYPE_INTEGER = "Integer" _TYPE_LOGICAL = "Logical" _TYPE_STRING = "String" _TYPE_FILE = "File" - -WARN = "Warn" -IGNORE = "Ignore" -ABORT = "Abort" -SILENT = "Silent" +WARN = "\"Warn\"" +IGNORE = "\"Ignore\"" +ABORT = "\"Abort\"" +SILENT = "\"Silent\"" def createSection(name):