The phenomenon of taking a long time to create a matrix

“When I use the PETSc database in FreeFem++ and encounter a long duration with the function call ‘MatCreate(Vh,A,P1)’, which shows ‘partition of unity build (in 3.259087e+03)’, is this a normal phenomenon?”

What is the size of your problem? How many processes are you using?

I used a more complex mesh.

But I don’t have this problem when using the buildmat function. I wonder what the differences are between the matcreate and buildmat functions.

Could you send a reproducer?