Skip to content
Snippets Groups Projects
Commit 81bc0258 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't loop if we don't have enough RAM

parent b43da713
No related branches found
No related tags found
No related merge requests found
Pipeline #4872 passed
...@@ -15,15 +15,12 @@ DefineConstant[ ...@@ -15,15 +15,12 @@ DefineConstant[
Name "Input/41Source type in stator", Highlight "Blue"}, Name "Input/41Source type in stator", Highlight "Blue"},
Flag_Cir_RotorCage = { (Flag_SrcType_Stator==2), Choices{0,1}, Flag_Cir_RotorCage = { (Flag_SrcType_Stator==2), Choices{0,1},
Name "Input/40Use circuit in rotor cage", ReadOnly (Flag_SrcType_Stator==1)} Name "Input/40Use circuit in rotor cage", ReadOnly (Flag_SrcType_Stator==1)}
slip = { 0, Min 0., Max 1, Step 0.02, Loop (Flag_AnalysisType == 2), slip = { 0, Min 0., Max 1, Step 0.02, Loop (Flag_AnalysisType == 2 && TotalMemory > 4096),
Name "Input/30Slip", Highlight "AliceBlue", Visible (Flag_AnalysisType == 2)} Name "Input/30Slip", Highlight "AliceBlue", Visible (Flag_AnalysisType == 2)}
]; ];
Flag_Cir = (Flag_SrcType_Stator==2); Flag_Cir = (Flag_SrcType_Stator==2);
If(Flag_AnalysisType!=2)
UndefineConstant[ "Input/30Slip" ];
EndIf
variableFrequencyLoop = slip; variableFrequencyLoop = slip;
DefineConstant[ DefineConstant[
......
...@@ -15,16 +15,12 @@ DefineConstant[ ...@@ -15,16 +15,12 @@ DefineConstant[
Name "Input/41Source type in stator", Highlight "Blue"}, Name "Input/41Source type in stator", Highlight "Blue"},
Flag_Cir_RotorCage = { 0 , Choices{0,1}, Flag_Cir_RotorCage = { 0 , Choices{0,1},
Name "Input/40Use circuit in rotor cage", ReadOnly (Flag_SrcType_Stator==1)} Name "Input/40Use circuit in rotor cage", ReadOnly (Flag_SrcType_Stator==1)}
slip = { 0, Min 0., Max 1, Step 0.05, Loop (Flag_AnalysisType == 2), slip = { 0, Min 0., Max 1, Step 0.05, Loop (Flag_AnalysisType == 2 && TotalMemory > 4096),
Name "Input/30Slip", Highlight "AliceBlue", Visible (Flag_AnalysisType == 2)} Name "Input/30Slip", Highlight "AliceBlue", Visible (Flag_AnalysisType == 2)}
]; ];
Flag_Cir = (Flag_SrcType_Stator==2); Flag_Cir = (Flag_SrcType_Stator==2);
// this not necessary anymore (thanks to the new behavior of Visibility)
If(Flag_AnalysisType!=2)
UndefineConstant[ "Input/30Slip" ];
EndIf
variableFrequencyLoop = slip; variableFrequencyLoop = slip;
DefineConstant[ DefineConstant[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment