Skip to content

Commit

Permalink
[FIX] Update PVD recorder to handle one element request per "eleRespo…
Browse files Browse the repository at this point in the history
…nse" input

This change allows the user to request multiple element outputs from a single PVD recorder. Each time the 'eleResponse' keyword is identified it is treated independently of previous requests. The previous implementation resulted in all requests following the keyword to be concatenated and only the first request to actually be output in the PVD recorder with an incorrect name.
  • Loading branch information
DuncanMcGeehan authored Aug 26, 2024
1 parent 98dd9c8 commit cba1325
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions SRC/recorder/PVDRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ void* OPS_PVDRecorder()
}
PVDRecorder::EleData edata;
numdata = OPS_GetNumRemainingInputArgs();
edata.resize(numdata);
for(int i=0; i<numdata; i++) {
edata[i] = OPS_GetString();
}
edata.resize(1);
edata[0] = OPS_GetString();
// opserr << "WARNING - EDATA[i]="<< edata[0].c_str() << "\n";
eledata.push_back(edata);
} else if(strcmp(type, "-dT") == 0) {
numdata = OPS_GetNumRemainingInputArgs();
Expand Down

0 comments on commit cba1325

Please sign in to comment.