alliance-programmers '01
ALC : CVS loginfo, ocp/src/placer


Christophe Alexandre (Christophe.Alexandre@asim.lip6.fr)
Thu, 20 Dec 2001 18:35:45 +0100

=================================================================== Modification le : Thu Dec 20 18:35:30 CET 2001 Par : xtof =================================================================== Update of /users/outil/alliance/cvsroot/alliance/sources/ocp/src/placer In directory bop.lip6.fr:/users/cao/xtof/alliance/sources/ocp/src/placer Modified Files: PCon.cpp PPlacement.cpp Log Message: meilleur traitement des connecteurs ... une coquille dans l'option ring =================================================================== Index: PCon.cpp =================================================================== RCS file: /users/outil/alliance/cvsroot/alliance/sources/ocp/src/placer/PCon.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -r1.3 -r1.4 26d25 < cerr << _con->NAME << " " << GetPosY() << " " << dx << " " << dy << endl; Index: PPlacement.cpp =================================================================== RCS file: /users/outil/alliance/cvsroot/alliance/sources/ocp/src/placer/PPlacement.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -r1.6 -r1.7 364c364 < if (_placeCons) GenerateConsPlacement(); --- > if (_placeCons && !_ringPlaceCons) GenerateConsPlacement(); 686,687d685 < < 1055,1061c1053,1060 < double minx = BBox.GetMinX(); < double miny = BBox.GetMinY(); < double maxx = BBox.GetMaxX(); < double maxy = BBox.GetMaxY(); < < int pos = 0; < int interval = 0; --- > unsigned minx = (unsigned)BBox.GetMinX(); > unsigned miny = (unsigned)BBox.GetMinY(); > unsigned maxx = (unsigned)BBox.GetMaxX(); > unsigned maxy = (unsigned)BBox.GetMaxY(); > > unsigned pos = 0; > unsigned interval = 0; > int spaceLeft = 0; 1064,1065c1063,1065 < interval = (int)((maxx - minx) / (double)(faces[0])); < pos = (int)minx + interval / 2; --- > interval = (maxx - minx) / faces[0]; > spaceLeft = (maxx - minx) % faces[0]; > pos = minx + interval / 2; 1067a1068,1069 > if (spaceLeft-- > 0) > pos += 1; 1074,1075c1076,1078 < interval = (int)((maxy - miny) / (double)(faces[1])); =================================================================== Ce message est envoyé au personnes abonnées à alliance-programmers Pour plus d'information sur cette mailling-list, visitez : http://www-asim.lip6.fr/alliance/mailing-lists/

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 20 December 2001.