Skip to content

Commit f09d0e1

Browse files
authored
Merge pull request #157 from ArnauMiro/156-fixing-hardcoded-ndime
2 parents 8ed0e0b + ecb8949 commit f09d0e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pyLOM/partition_table.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ def new(cls,nparts,nelems,npoints,has_master=False):
126126

127127
@classmethod
128128
@cr('PartTable.from_pyQvarsi')
129-
def from_pyQvarsi(cls,ptable,porder=1,has_master=False):
129+
def from_pyQvarsi(cls,ptable,porder=1,ndime=3,has_master=False):
130130
'''
131131
Create a partition table from a partition table coming
132132
from pyQvarsi
133133
'''
134134
nparts = ptable.n_partitions
135135
ids = np.arange(1,nparts+1,dtype=np.int32)
136136
points = ptable.Points
137-
elements = ptable.Elements*porder**3
137+
elements = ptable.Elements*porder**ndime
138138
return cls(nparts,ids,elements,points,has_master=has_master)
139139

140140
@property

0 commit comments

Comments
 (0)