bugpyFormex - Bugs: bug #55966, Mesh.partitionByConnection fails...

 
 

bug #55966: Mesh.partitionByConnection fails when splitting meshes of discconnected single elements

Submitter:  francesco <francio>
Submitted:  Wed 20 Mar 2019 04:36:59 PM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Functionality error Status:  Fixed
Privacy:  Public Assigned to:  bverheg
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 20 Mar 2019 06:48:11 PM UTC, comment #1: 

This has been fixed in aaa1489b.

Benedict Verhegghe <bverheg>
Group administrator
Wed 20 Mar 2019 04:36:59 PM UTC, original submission:  

In the example attached I tested few cases.

The error I receive is

Traceback (most recent call last):
  File "/home/francesco/FEops/test_pyformex/A3-testpartition.py", line 15, in <module>
    line1_split=line1.partitionByConnection()
  File "/home/francesco/pyformex/pyformex/mesh.py", line 1170, in partitionByConnection
    p = self.frontWalk(level=level, startat=startat, frontinc=0, partinc=1, maxval=nparts)
  File "/home/francesco/pyformex/pyformex/mesh.py", line 1115, in frontWalk
    return self.adjacency(level).frontWalk(startat=startat, frontinc=frontinc, partinc=partinc, maxval=maxval)
  File "/home/francesco/pyformex/pyformex/mesh.py", line 1067, in adjacency
    return elems.adjacency()
  File "/home/francesco/pyformex/pyformex/connectivity.py", line 1013, in adjacency
    adj = Adjacency(adj)
  File "/home/francesco/pyformex/pyformex/adjacency.py", line 273, in _new_
    ar = _reduceAdjacency(ar).view(clas)
  File "/home/francesco/pyformex/pyformex/adjacency.py", line 125, in _reduceAdjacency
    adj[adj == np.arange(n).reshape(n, -1)] = -1 # remove the item i
ValueError: cannot reshape array of size 0 into shape (0,newaxis)

francesco <francio>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #46594:  A3-testpartition.py added by francio (582B - text/x-python)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bverheg (Posted a comment)
  • -email is unavailable- added by francio (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-20 bverheg Open/ClosedOpen Closed
    2019-03-20 bverheg StatusNone Fixed
        Assigned toNone bverheg
    2019-03-20 francio Attached File- Added A3-testpartition.py, #46594

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code