Numerical solution of a reduced model of collisionless magnetic reconnection in two andthree dimensions