Hey Anil (and whomever else),
We've been running into some issues with this particular line in DVGeoMulti:
|
dIdptTriA = dIdptTriA[:, disp[self.comm.rank] : disp[self.comm.rank + 1], :] |
For us, the allreduce just above this line returns a 2-dimensional array (we're using mpi4py 4.0.0), which gives off this error at line 2021:
IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed
dIdptTriA = dIdptTriA[:, disp[self.comm.rank] : disp[self.comm.rank + 1], :]
As a quick fix, I have found that the following lines fix the problem when placed just before line 2021:
# Make dIdptTriA at least 3D
if len(dIdptTriA.shape) == 2:
dIdptTriA = np.array([dIdptTriA])
Thank you for your time on this.