Skip to content

Commit

Permalink
Reset default maximumStepSize for cross-check (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel authored Jul 9, 2021
1 parent ade902c commit d262b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/fmi-cross-check/importFMUs.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def generateLua(modelName, testFMUDir, resultDir, fmiType):
stopTime = "1.0"
relTol = str(default_tolerance)
absTol = str(default_tolerance)
maximumStepSize = "1e-5"
inputCSV = ""
refOptFile = os.path.join(testFMUDir, modelName + "_ref.opt")
df = pd.read_csv(refOptFile, delimiter=',', index_col=0, header=None)
Expand All @@ -54,6 +53,7 @@ def generateLua(modelName, testFMUDir, resultDir, fmiType):
if not df.loc["AbsTol", 1] == 0:
absTol = str(df.loc["AbsTol", 1])

maximumStepSize = str((float(stopTime) - float(startTime)) / 500)
if "StepSize" in df.index:
if not df.loc["StepSize", 1] == 0:
maximumStepSize = str(df.loc["StepSize", 1])
Expand Down

0 comments on commit d262b75

Please sign in to comment.