Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ice_dyn_vp: initialize residual vector to zero
The arrays Fx, Fy that hold the residual (Ax - b) are not initialized to sero before being passed to 'residual_vec', and this subroutine only loops through ice points (and not the whole of the arrays). In debug mode, this leads to NaNs being involved in some computations during the 'global_sum_prod' calls used to compute the norm of the residual just after it's computed. This is only triggered in certain tests of the 'decomp_suite'. Initialize the residual vector (arrays Fx and Fy) to zero. This allows the 'decomp_suite' to pass when ran with 'bfbflag = reprosum'.
- Loading branch information