Skip to content

Commit

Permalink
Merge pull request OpenSees#875 from zhuminjie/HDR
Browse files Browse the repository at this point in the history
HDR elements update command inputs
  • Loading branch information
mhscott authored Jun 9, 2022
2 parents 87146d2 + 227389c commit b44c4a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions SRC/element/HUelements/YamamotoBiaxialHDR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,15 @@ void* OPS_YamamotoBiaxialHDR()
}

// Tp
const char* tparg = OPS_GetString();
if (strcmp(tparg,"1") == 0) {
Tp = 1; // Bridgestone X0.6R (EESD version)
} else {
if (OPS_GetIntInput(&numdata, &Tp) < 0) {
opserr << "WARNING invalid YamamotoBiaxialHDR Tp" << endln;
ifNoError = false;
}
if (Tp != 1) {
// Bridgestone X0.6R (EESD version)
opserr << "WARNING invalid YamamotoBiaxialHDR Tp != 1" << endln;
ifNoError = false;
}

// DDo
if (OPS_GetDoubleInput(&numdata, &DDo) < 0 || DDo <= 0.0) {
Expand Down
2 changes: 1 addition & 1 deletion SRC/element/elastomericBearing/HDR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void *OPS_HDR()
}

if (theEle == 0) {
opserr << "WARNING ran out of memory creating element with tag " << eleTag << endln;
opserr << "WARNING this element only works for 3D problem with 6 dof per node: " << eleTag << endln;
return 0;
}

Expand Down

0 comments on commit b44c4a9

Please sign in to comment.