Check that direction is in the range of 0 to 5
| 1888 | |
| 1889 | // Check that direction is in the range of 0 to 5 |
| 1890 | void |
| 1891 | ZeroLength::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 |