High‐resolution, monotone solution of the adjoint shallow‐water equations