Skip to content

Commit

Permalink
Error message if send fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mhscott committed May 20, 2024
1 parent 71957ca commit e9cc9c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SRC/material/uniaxial/backbone/MaterialBackbone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ MaterialBackbone::sendSelf(int cTag, Channel &theChannel)
}

res += theMaterial->sendSelf(cTag, theChannel);

if (res < 0) {
opserr << "MaterialBackbone::sendSelf -- failed to send material" << endln;
return res;
}

return res;
}

Expand Down

0 comments on commit e9cc9c6

Please sign in to comment.