From 0cd8c4ad1ae324b127b60927a0d6a6b7e3b11287 Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Wed, 15 Jan 2025 11:07:48 +0100 Subject: [PATCH] fix: CIM::String does not overload operator = Signed-off-by: Niklas Eiling --- dpsim-models/src/CIM/Reader.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dpsim-models/src/CIM/Reader.cpp b/dpsim-models/src/CIM/Reader.cpp index 427d1f9a5..85236c367 100644 --- a/dpsim-models/src/CIM/Reader.cpp +++ b/dpsim-models/src/CIM/Reader.cpp @@ -604,7 +604,7 @@ Reader::mapSynchronousMachine(CIMPP::SynchronousMachine *machine) { if (CIMPP::SynchronousMachineTimeConstantReactance *genDyn = dynamic_cast( obj)) { - if (genDyn->SynchronousMachine->mRID == machine->mRID) { + if (genDyn->SynchronousMachine->mRID.value == machine->mRID.value) { // stator Real Rs = genDyn->statorResistance.value; Real Ll = genDyn->statorLeakageReactance.value; @@ -740,7 +740,7 @@ Reader::mapSynchronousMachine(CIMPP::SynchronousMachine *machine) { if (CIMPP::SynchronousMachineTimeConstantReactance *genDyn = dynamic_cast( obj)) { - if (genDyn->SynchronousMachine->mRID == machine->mRID) { + if (genDyn->SynchronousMachine->mRID.value == machine->mRID.value) { // stator Real Rs = genDyn->statorResistance.value; Real Ll = genDyn->statorLeakageReactance.value; @@ -829,7 +829,7 @@ Reader::mapSynchronousMachine(CIMPP::SynchronousMachine *machine) { if (CIMPP::GeneratingUnit *genUnit = dynamic_cast(obj)) { for (auto syncGen : genUnit->RotatingMachine) { - if (syncGen->mRID == machine->mRID) { + if (syncGen->mRID.value == machine->mRID.value) { // Check whether relevant input data are set, otherwise set default values Real setPointActivePower = 0; Real setPointVoltage = 0; @@ -907,7 +907,7 @@ Reader::mapSynchronousMachine(CIMPP::SynchronousMachine *machine) { if (CIMPP::SynchronousMachineTimeConstantReactance *genDyn = dynamic_cast( obj)) { - if (genDyn->SynchronousMachine->mRID == machine->mRID) { + if (genDyn->SynchronousMachine->mRID.value == machine->mRID.value) { // stator Real Rs = genDyn->statorResistance.value; @@ -1103,7 +1103,7 @@ Real Reader::determineBaseVoltageAssociatedWithEquipment( if (CIMPP::BaseVoltage *baseVolt = dynamic_cast(obj)) { for (auto comp : baseVolt->ConductingEquipment) { - if (comp->name == equipment->name) { + if (comp->name.value == equipment->name.value) { baseVoltage = unitValue(baseVolt->nominalVoltage.value, UnitMultiplier::k); } @@ -1116,7 +1116,7 @@ Real Reader::determineBaseVoltageAssociatedWithEquipment( if (CIMPP::TopologicalNode *topNode = dynamic_cast(obj)) { for (auto term : topNode->Terminal) { - if (term->ConductingEquipment->name == equipment->name) { + if (term->ConductingEquipment->name.value == equipment->name.value) { baseVoltage = unitValue(topNode->BaseVoltage->nominalVoltage.value, UnitMultiplier::k); }