Skip to content

Commit a58c6c8

Browse files
authored
select ModelExchange and output-interval for FMPy (#79)
1 parent c36be38 commit a58c6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testmodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def sendExpressionOldOrNew(cmd):
460460
fp.write("%s\n" % fmitmpdir)
461461
if shared.isFMPy(fmisimulator):
462462
fmisimulator = "%s simulate " % fmisimulator
463-
cmd = "%s --start-time %g --stop-time %g --timeout %g --relative-tolerance %g %s.fmu" % (("--output-file %s" % resFile),startTime,stopTime,conf["ulimitExe"],tolerance,conf["fileName"].replace(".","_"))
463+
cmd = "%s --start-time %g --stop-time %g --timeout %g --relative-tolerance %g --interface-type ModelExchange --solver CVode --output-interval %g %s.fmu" % (("--output-file %s" % resFile),startTime,stopTime,conf["ulimitExe"],tolerance,stepSize,conf["fileName"].replace(".","_"))
464464
else: # OMSimulator
465465
cmd = "%s --tempDir=%s --startTime=%g --stopTime=%g --timeout=%g --tolerance=%g %s.fmu" % (("-r=%s" % resFile) if outputFormat != "empty" else "",fmitmpdir,startTime,stopTime,conf["ulimitExe"],tolerance,conf["fileName"].replace(".","_"))
466466
with open(simFile,"w") as fp:

0 commit comments

Comments
 (0)