void SlaveDof :: giveMasterDofManArray(IntArray &answer) { IntArray mstrDofManArry; int masterDofs = this->giveNumberOfPrimaryMasterDofs(); answer.preallocate( masterDofs ); answer.resize( 0 ); for (int i = 1; i <= countOfMasterDofs; i++ ) { this->giveMasterDof(i)->giveMasterDofManArray(mstrDofManArry); answer.followedBy(mstrDofManArry); } }
void SlaveDof :: giveEquationNumbers(IntArray &masterEqNumbers, const UnknownNumberingScheme &s) { IntArray mstrEqNmbrs; int masterDofs = this->giveNumberOfPrimaryMasterDofs(); masterEqNumbers.preallocate( masterDofs ); masterEqNumbers.resize( 0 ); for (int i = 1; i <= countOfMasterDofs; i++ ) { this->giveMasterDof(i)->giveEquationNumbers(mstrEqNmbrs, s); masterEqNumbers.followedBy(mstrEqNmbrs); } }
void SlaveDof :: giveDofIDs(IntArray &masterDofIDs) { IntArray temp; int masterDofs = this->giveNumberOfPrimaryMasterDofs(); masterDofIDs.preallocate( masterDofs ); masterDofIDs.resize( 0 ); for (int i = 1; i <= countOfMasterDofs; i++ ) { this->giveMasterDof(i)->giveDofIDs(temp); masterDofIDs.followedBy(temp); } }
void ActiveDof :: giveEquationNumbers(IntArray &masterEqNumbers, const UnknownNumberingScheme &s) { if ( this->isPrimaryDof() ) { masterEqNumbers.resize(1); masterEqNumbers.at(1) = this->giveEquationNumber(s); return; } IntArray mstrEqNmbrs; int countOfMasterDofs = this->giveNumberOfMasterDofs(); masterEqNumbers.preallocate(countOfMasterDofs); masterEqNumbers.clear(); for ( int i = 1; i <= countOfMasterDofs; i++ ) { this->giveMasterDof(i)->giveEquationNumbers(mstrEqNmbrs, s); masterEqNumbers.followedBy(mstrEqNmbrs); } }
void ActiveDof :: giveDofIDs(IntArray &masterDofIDs) { if ( this->isPrimaryDof() ) { masterDofIDs.resize(1); masterDofIDs.at(1) = this->giveDofID(); return; } IntArray mstrDofIDs; int countOfMasterDofs = this->giveNumberOfMasterDofs(); masterDofIDs.preallocate(countOfMasterDofs); masterDofIDs.clear(); for ( int i = 1; i <= countOfMasterDofs; i++ ) { this->giveMasterDof(i)->giveDofIDs(mstrDofIDs); masterDofIDs.followedBy(mstrDofIDs); } }