Title: A finite-element formulation of a variational procedure of wind-field adjustment over complex terrain