Skip to content

Commit 4d3a341

Browse files
committed
Add PID check in processEvents for OpenSeesPreprocessor
1 parent 25d556e commit 4d3a341

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

modules/performSIMULATION/openSees/OpenSeesPreprocessor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,8 @@ OpenSeesPreprocessor::processEvents(ofstream &s){
672672
// loop through EDPs and find corresponding EDP
673673

674674
char edpEventName[50];
675+
s << "set pid [getPID]\n";
676+
s << "if {$pid == 0} {\n";
675677

676678
for (int j=0; j<numEDPs; j++) {
677679

@@ -885,6 +887,7 @@ OpenSeesPreprocessor::processEvents(ofstream &s){
885887
}
886888
}
887889
}
890+
s << "}\n"; // end of pid==0
888891

889892
// create analysis
890893
if (analysisType == 1 || analysisType == 2) {

0 commit comments

Comments
 (0)