Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void Capacitance::add_map (  )  [virtual]

Call this function to tell the element to add its map to the matrix in use

Reimplemented from Element.

Definition at line 48 of file capacitance.cpp.

References Element::b_status, and Matrix::setUse().

{
      if (!b_status) return;
      
      if ( !p_cnode[0]->isGround )
      {
            p_A->setUse( p_cnode[0]->n(), p_cnode[0]->n(), Map::et_unstable, false );
      }
      if ( !p_cnode[1]->isGround )
      {
            p_A->setUse( p_cnode[1]->n(), p_cnode[1]->n(), Map::et_unstable, false );
      }
      
      if ( !p_cnode[0]->isGround && !p_cnode[1]->isGround )
      {
            p_A->setUse( p_cnode[0]->n(), p_cnode[1]->n(), Map::et_unstable, false );
            p_A->setUse( p_cnode[1]->n(), p_cnode[0]->n(), Map::et_unstable, false );
      }
}


Generated by  Doxygen 1.6.0   Back to index