Different results in serial and parallel run dolfinx

Issue is that you need to use ghost update after doing this command.

    n_bc.vector.ghostUpdate(addv=PETSc.InsertMode.INSERT, mode=PETSc.ScatterMode.FORWARD)

as vector is only the dofs owned by the given processor

Is necessary add the command after interpolation? (e.g., u_bc1.interpolate(u_bc_inlet))

I do not believe so. To be certain you can add it, it should at least not change anything to something wrong.

I add the command after n_bc.vector.set(1.0) and it is working, it was not necessary after u_bc1.interpolate(u_bc_inlet). Thank you again!