Bug fix for red-black relaxation
This commit is contained in:
parent
c4b0f23e53
commit
6978a1dcbf
@ -659,6 +659,10 @@ hypre_NodeRelax( void *relax_vdata,
|
||||
|
||||
if (zero_guess)
|
||||
{
|
||||
if (num_nodesets > 1)
|
||||
{
|
||||
hypre_SStructPVectorSetConstantValues(x, 0.0);
|
||||
}
|
||||
nodeset = nodeset_ranks[p];
|
||||
compute_pkg = compute_pkgs[nodeset];
|
||||
stride = nodeset_strides[nodeset];
|
||||
|
||||
@ -408,6 +408,10 @@ hypre_PointRelax( void *relax_vdata,
|
||||
|
||||
if (zero_guess)
|
||||
{
|
||||
if (num_pointsets > 1)
|
||||
{
|
||||
hypre_StructVectorSetConstantValues(x, 0.0);
|
||||
}
|
||||
pointset = pointset_ranks[p];
|
||||
compute_pkg = compute_pkgs[pointset];
|
||||
stride = pointset_strides[pointset];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user