MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / checkDirection

Method checkDirection

SRC/element/zeroLength/ZeroLength.cpp:1890–1898  ·  view source on GitHub ↗

Check that direction is in the range of 0 to 5

Source from the content-addressed store, hash-verified

1888
1889// Check that direction is in the range of 0 to 5
1890void
1891ZeroLength::checkDirection( ID &dir ) const
1892{
1893 for ( int i=0; i<dir.Size(); i++)
1894 if ( dir(i) < 0 || dir(i) > 5 ) {
1895 opserr << "WARNING ZeroLength::checkDirection - incorrect direction " << dir(i) << " is set to 0\n";
1896 dir(i) = 0;
1897 }
1898}
1899
1900
1901// Set basic deformation-displacement transformation matrix for 1d

Callers 1

ZeroLengthMethod · 0.95

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected