diff --git a/FDTD/extensions/operator_ext_excitation.cpp b/FDTD/extensions/operator_ext_excitation.cpp index 32e5835..3e9e641 100644 --- a/FDTD/extensions/operator_ext_excitation.cpp +++ b/FDTD/extensions/operator_ext_excitation.cpp @@ -59,7 +59,7 @@ bool Operator_Ext_Excitation::BuildExtension() vector curr_vDir; double curr_coord[3]; - vector vec_prop = CSX->GetPropertyByType(CSProperties::ELECTRODE); + vector vec_prop = CSX->GetPropertyByType(CSProperties::EXCITATION); if (vec_prop.size()==0) { @@ -67,7 +67,7 @@ bool Operator_Ext_Excitation::BuildExtension() return false; } - CSPropElectrode* elec=NULL; + CSPropExcitation* elec=NULL; CSProperties* prop=NULL; int priority=0; @@ -93,7 +93,7 @@ bool Operator_Ext_Excitation::BuildExtension() for (size_t p=0; pToElectrode(); + elec = prop->ToExcitation(); if (elec==NULL) continue; if (prop->CheckCoordInPrimitive(volt_coord,priority,true)) @@ -130,7 +130,7 @@ bool Operator_Ext_Excitation::BuildExtension() for (size_t p=0; pToElectrode(); + elec = prop->ToExcitation(); if (elec==NULL) continue; if (prop->CheckCoordInPrimitive(curr_coord,priority,true)) @@ -168,7 +168,7 @@ bool Operator_Ext_Excitation::BuildExtension() for (size_t p=0; pToElectrode(); + elec = prop->ToExcitation(); for (size_t n=0; nGetQtyPrimitives(); ++n) { CSPrimitives* prim = prop->GetPrimitive(n);