Search found 2 matches
- Wed Jul 24, 2013 5:49 am
- Forum: Feature Requests/Future Directions
- Topic: Return Code in Exit Command
- Replies: 5
- Views: 15763
Re: Return Code in Exit Command
thank you very much
- Tue Jul 23, 2013 12:08 pm
- Forum: Feature Requests/Future Directions
- Topic: Return Code in Exit Command
- Replies: 5
- Views: 15763
Re: Return Code in Exit Command
hello everyone,
I'm new in opensees . I want to exit from " for loop command "
please help me ,is the example below true ?
only "EXIT COMMAND "in below is true?
for { set i 3 } { $i <= 10 } {incr i 1 } {;
pattern Plain $i Linear {;
load 52 $h152 $h252 0. 0. 0. $h352
load 53 $h153 $h253 0. 0. 0. $h353
load 54 $h154 $h254 0. 0. 0. $h354
}
analyze $i
set DispCMfile [open Data/DCM.txt r ];
set DCM [read $DispCMfile];
set DCM1 [lindex $D54 2 1];
if {$DCM1 > 0.05 } {;
exit
}
} #end for
I'm new in opensees . I want to exit from " for loop command "
please help me ,is the example below true ?
only "EXIT COMMAND "in below is true?
for { set i 3 } { $i <= 10 } {incr i 1 } {;
pattern Plain $i Linear {;
load 52 $h152 $h252 0. 0. 0. $h352
load 53 $h153 $h253 0. 0. 0. $h353
load 54 $h154 $h254 0. 0. 0. $h354
}
analyze $i
set DispCMfile [open Data/DCM.txt r ];
set DCM [read $DispCMfile];
set DCM1 [lindex $D54 2 1];
if {$DCM1 > 0.05 } {;
exit
}
} #end for