parent
6ac5d7d0c8
commit
412a6b1a48
@ -3500,7 +3500,7 @@ hypre_BoomerAMGSetup( void *amg_vdata,
|
||||
if ((smooth_type == 6 || smooth_type == 16) && smooth_num_levels > j)
|
||||
{
|
||||
/* Sanity check */
|
||||
if (hypre_ParVectorNumVectors(f) > 1)
|
||||
if (num_vectors > 1)
|
||||
{
|
||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC,
|
||||
"Schwarz smoothing doesn't support multicomponent vectors");
|
||||
@ -3551,7 +3551,7 @@ hypre_BoomerAMGSetup( void *amg_vdata,
|
||||
return hypre_error_flag;
|
||||
#endif
|
||||
|
||||
if (hypre_ParVectorNumVectors(f) > 1)
|
||||
if (num_vectors > 1)
|
||||
{
|
||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC,
|
||||
"Euclid smoothing doesn't support multicomponent vectors");
|
||||
@ -3580,7 +3580,7 @@ hypre_BoomerAMGSetup( void *amg_vdata,
|
||||
else if ((smooth_type == 4 || smooth_type == 14) && smooth_num_levels > j)
|
||||
{
|
||||
/* Sanity check */
|
||||
if (hypre_ParVectorNumVectors(f) > 1)
|
||||
if (num_vectors > 1)
|
||||
{
|
||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC,
|
||||
"FSAI smoothing doesn't support multicomponent vectors");
|
||||
@ -3611,7 +3611,7 @@ hypre_BoomerAMGSetup( void *amg_vdata,
|
||||
else if ((smooth_type == 5 || smooth_type == 15) && smooth_num_levels > j)
|
||||
{
|
||||
/* Sanity check */
|
||||
if (hypre_ParVectorNumVectors(f) > 1)
|
||||
if (num_vectors > 1)
|
||||
{
|
||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC,
|
||||
"ILU smoothing doesn't support multicomponent vectors");
|
||||
@ -3645,7 +3645,7 @@ hypre_BoomerAMGSetup( void *amg_vdata,
|
||||
return hypre_error_flag;
|
||||
#endif
|
||||
|
||||
if (hypre_ParVectorNumVectors(f) > 1)
|
||||
if (num_vectors > 1)
|
||||
{
|
||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC,
|
||||
"ParaSails smoothing doesn't support multicomponent vectors");
|
||||
@ -3670,7 +3670,7 @@ hypre_BoomerAMGSetup( void *amg_vdata,
|
||||
return hypre_error_flag;
|
||||
#endif
|
||||
|
||||
if (hypre_ParVectorNumVectors(f) > 1)
|
||||
if (num_vectors > 1)
|
||||
{
|
||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC,
|
||||
"Pilut smoothing doesn't support multicomponent vectors");
|
||||
|
||||
@ -953,7 +953,7 @@ hypre_FSAISetup( void *fsai_vdata,
|
||||
HYPRE_Int max_nonzeros_diag_G; /* Max. number of nonzeros in G_diag */
|
||||
|
||||
/* Sanity check */
|
||||
if (hypre_ParVectorNumVectors(f) > 1)
|
||||
if (f && hypre_ParVectorNumVectors(f) > 1)
|
||||
{
|
||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC, "FSAI doesn't support multicomponent vectors");
|
||||
return hypre_error_flag;
|
||||
|
||||
@ -42,6 +42,13 @@ hypre_FSAISolve( void *fsai_vdata,
|
||||
HYPRE_Int iter, my_id;
|
||||
HYPRE_Real old_resnorm, resnorm, rel_resnorm;
|
||||
|
||||
/* Sanity check */
|
||||
if (hypre_ParVectorNumVectors(b) > 1)
|
||||
{
|
||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC, "FSAI doesn't support multicomponent vectors");
|
||||
return hypre_error_flag;
|
||||
}
|
||||
|
||||
HYPRE_ANNOTATE_FUNC_BEGIN;
|
||||
|
||||
hypre_MPI_Comm_rank(comm, &my_id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user