Skip to content

Commit

Permalink
Recorder: return recorder tag
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuminjie committed Nov 4, 2020
1 parent c2965dc commit 71720c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SRC/interpreter/OpenSeesOutputCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ int OPS_Recorder()
}
}

// set recorder tag as result
int size = 1;
int tag = theRecorder->getTag();
if (OPS_SetIntOutput(&size, &tag, true) < 0) {
opserr << "ERROR: failed to return recorder tag\n";
return -1;
}

return 0;
}

Expand Down

0 comments on commit 71720c7

Please sign in to comment.