I am currently working on a 3D model of uwgeodynamics, whose surface processes need to be coupled to badlands, and I want to give the region a different K value.
When running the code, I noticed that I would be placements at function apply_XY_displacements
This is because it is trying to assign a two-dimensional array to a one-dimensional array.
Combined with the code before and after this function, I think this paragraph is calculating properties for the new node in TIN, so I changed Tevals to a 3D array(line 911):
Tevals= numpy.zeros((len(zvals), ids.shape[1], lay))
Change the Tevals assignment to(line 918):
Tevals[:, k, :] = mTe[ids[:, k], :]
Average instead(line 934):
Teavg[:, k] = numpy.average(Tevals[:, :, k], weights=weights, axis=1)
It is now ready to run successfully from apply_XY_displacements
However, in flow.erodibility[1GIDs] in checkpoints, Th and Ke values contain addPts, resulting in the following errors:
I think this may have to do with the assignment to flow.erodibility in the _rebuild_mesh because mapero.erodibility is still a one-dimensional array without addPts and the assignment is not the same as the module above.

But I don't know much about the logic of this block and would like some help.
Thank you for your time. I appreciate any help and look forward to the reply.
I am currently working on a 3D model of uwgeodynamics, whose surface processes need to be coupled to badlands, and I want to give the region a different K value.
When running the code, I noticed that I would be placements at function apply_XY_displacements
This is because it is trying to assign a two-dimensional array to a one-dimensional array.
Combined with the code before and after this function, I think this paragraph is calculating properties for the new node in TIN, so I changed Tevals to a 3D array(line 911):
Tevals= numpy.zeros((len(zvals), ids.shape[1], lay))
Change the Tevals assignment to(line 918):
Tevals[:, k, :] = mTe[ids[:, k], :]
Average instead(line 934):
Teavg[:, k] = numpy.average(Tevals[:, :, k], weights=weights, axis=1)
It is now ready to run successfully from apply_XY_displacements
However, in flow.erodibility[1GIDs] in checkpoints, Th and Ke values contain addPts, resulting in the following errors:
I think this may have to do with the assignment to flow.erodibility in the _rebuild_mesh because mapero.erodibility is still a one-dimensional array without addPts and the assignment is not the same as the module above.

But I don't know much about the logic of this block and would like some help.
Thank you for your time. I appreciate any help and look forward to the reply.