Adds WV_DEBUG compile time flag to help debug non-convergence