diff --git a/open-reac/src/main/java/com/powsybl/openreac/OpenReacRunner.java b/open-reac/src/main/java/com/powsybl/openreac/OpenReacRunner.java index 860b92c0..6ea11480 100644 --- a/open-reac/src/main/java/com/powsybl/openreac/OpenReacRunner.java +++ b/open-reac/src/main/java/com/powsybl/openreac/OpenReacRunner.java @@ -71,7 +71,7 @@ public static OpenReacResult run(Network network, String variantId, OpenReacPara * @return All information about the run and possible modifications to apply. */ public static OpenReacResult run(Network network, String variantId, OpenReacParameters parameters, OpenReacConfig config, ComputationManager manager, ReportNode reportNode, AmplExportConfig amplExportConfig) { - checkParameters(network, variantId, parameters, config, manager, Reports.createParametersIntegrityReporter(reportNode, network.getId())); + checkParameters(network, variantId, parameters, config, manager, reportNode); AmplModel reactiveOpf = OpenReacModel.buildModel(); OpenReacAmplIOFiles amplIoInterface = new OpenReacAmplIOFiles(parameters, amplExportConfig, network, config.isDebug(), Reports.createOpenReacReporter(reportNode, network.getId(), parameters.getObjective())); AmplResults run = AmplModelRunner.run(network, variantId, reactiveOpf, manager, amplIoInterface); @@ -118,6 +118,6 @@ private static void checkParameters(Network network, String variantId, OpenReacP Objects.requireNonNull(config); Objects.requireNonNull(manager); Objects.requireNonNull(reportNode); - parameters.checkIntegrity(network, reportNode); + parameters.checkIntegrity(network, Reports.createParameterIntegrityReporter(reportNode, network.getId())); } } diff --git a/open-reac/src/main/java/com/powsybl/openreac/Reports.java b/open-reac/src/main/java/com/powsybl/openreac/Reports.java index 7e3494f4..bb27751e 100644 --- a/open-reac/src/main/java/com/powsybl/openreac/Reports.java +++ b/open-reac/src/main/java/com/powsybl/openreac/Reports.java @@ -51,9 +51,9 @@ public static void reportVariableShuntCompensatorsSize(ReportNode reportNode, in .add(); } - public static ReportNode createParametersIntegrityReporter(ReportNode reportNode, String networkId) { + public static ReportNode createParameterIntegrityReporter(ReportNode reportNode, String networkId) { return reportNode.newReportNode() - .withMessageTemplate("openReacParametersIntegrity", "Open reac parameters integrity on network '${networkId}'") + .withMessageTemplate("openReacParameterIntegrity", "Open reac parameter integrity on network '${networkId}'") .withUntypedValue("networkId", networkId) .add(); }