Menu

#1 Change Segment.p* to Segment.pnums[*]

open
nobody
None
5
2009-06-02
2009-06-02
No

Compilation of version 4.9.9 failed due to missing instance variable in the class Segment. As far as i can tell, the Segment class has been updated to use pnums[0] and [1].

Grepping my changes i modified these lines which gave me errors;
libsrc/meshing/parallelmesh.cpp:224: seg.pnums[0] = glob2loc_vert_ht.Get (int(segmbuf[ii++])); // Micket-fix
libsrc/meshing/parallelmesh.cpp:225: seg.pnums[1] = glob2loc_vert_ht.Get (int(segmbuf[ii++])); // Micket-fix
libsrc/meshing/parallelmesh.cpp:242: if ( seg.pnums[0] >0 && seg.pnums[1] > 0 ) // Micket-fix
libsrc/meshing/parallelmesh.cpp:1236: segmbuf[dest][segi[dest]++] = seg.pnums[0]; // Micket-fix
libsrc/meshing/parallelmesh.cpp:1237: segmbuf[dest][segi[dest]++] = seg.pnums[1]; // Micket-fix

but this change is untested, as i'm still struggling with some bugs in the build system (soon to be reported)

Discussion