Exact solution of a vertex model ind dimensions