<br><font size=2 face="sans-serif">Vitor,</font>
<br>
<br><font size=2 face="sans-serif">I will try and get time to look at it.
There are linked lists by row and by column so link_==3 means both
already exist so it looks as if my coding may be wrong. If you have
a simple driver to send that would be great as I am busy on other projects
and can't take much time off.</font>
<br>
<br><font size=2 face="sans-serif">John Forrest</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Vitor Barbosa"
<vitorbarbosa@dps.uminho.pt></b> </font>
<br><font size=1 face="sans-serif">Sent by: coin-discuss-bounces@list.coin-or.org</font>
<p><font size=1 face="sans-serif">08/30/2005 01:27 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Discussions about open source software for Operations Research
</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif"><coin-discuss@list.coin-or.org></font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[Coin-discuss] CoinModel</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="Arial">I’m using the CoinModel class and when I
try to delete rows and pack (packRows) them i get an “Assertion failed”
error.</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">When debugging, at line 1141 of CoinModel.cpp
the variable links_ as value 3 so the condition ((links_&1)!=0)
of the if is true:</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial"> if ((links_&1)!=0) {</font>
<br><font size=2 face="Arial"> rowList_ = CoinModelLinkedList();</font>
<br><font size=2 face="Arial"> createList(1);</font>
<br><font size=2 face="Arial"> }</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">When the method createList(1) is called,
(links_&1) ==1 and the assert fails</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">CoinModel::createList(int type) const</font>
<br><font size=2 face="Arial">{</font>
<br><font size=2 face="Arial"> type_=2;</font>
<br><font size=2 face="Arial"> if (type==1) {</font>
<br><font size=2 face="Arial"> assert ((links_&1)==0);</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">What means the value of links_?</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">When i remove the assert it works fine. Is
this assert OK?</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial"> </font><font size=2><tt>_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss<br>
</tt></font>
<br>