From efce59dc560ba04e4c8566771cd82053f653a064 Mon Sep 17 00:00:00 2001 From: Gautier Bureau Date: Thu, 2 Feb 2023 16:24:26 +0100 Subject: [PATCH] Fix SA results by forcing DFL to ouputs networks after SA. Signed-off-by: Gautier Bureau --- .../main/java/com/powsybl/dynaflow/DynaFlowSecurityAnalysis.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dynaflow/src/main/java/com/powsybl/dynaflow/DynaFlowSecurityAnalysis.java b/dynaflow/src/main/java/com/powsybl/dynaflow/DynaFlowSecurityAnalysis.java index b31d7701e..904da5989 100644 --- a/dynaflow/src/main/java/com/powsybl/dynaflow/DynaFlowSecurityAnalysis.java +++ b/dynaflow/src/main/java/com/powsybl/dynaflow/DynaFlowSecurityAnalysis.java @@ -126,6 +126,7 @@ private static void writeParameters(SecurityAnalysisParameters securityAnalysisP // TODO(Luma) Take into account also Security Analysis parameters LoadFlowParameters loadFlowParameters = securityAnalysisParameters.getLoadFlowParameters(); DynaFlowParameters dynaFlowParameters = getParametersExt(loadFlowParameters); + dynaFlowParameters.setChosenOutputs(Collections.singletonList(DynaFlowConstants.OutputTypes.STEADYSTATE.name())); DynaFlowConfigSerializer.serialize(loadFlowParameters, dynaFlowParameters, Path.of("."), workingDir.resolve(CONFIG_FILENAME)); }