else if (omit_zeroing_entries==false)
{
const int ierr = vector->PutScalar(0.);
- (void) ierr;
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
}
}
const int ierr = vector->Import(V.trilinos_vector(), data_exchange, Insert);
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
}
else
vector.reset(new Epetra_FEVector(V.trilinos_vector()));
#if DEAL_II_TRILINOS_VERSION_GTE(11,11,0)
Epetra_Import data_exchange (vector->Map(), down_V.trilinos_vector().Map());
int ierr = vector->Import(down_V.trilinos_vector(), data_exchange, Epetra_AddLocalAlso);
- (void) ierr;
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
#else
// In versions older than 11.11 the Import function is broken for adding
// Hence, we provide a workaround in this case
Epetra_Import data_exchange(dummy.Map(), down_V.trilinos_vector().Map());
int ierr = dummy.Import(down_V.trilinos_vector(), data_exchange, Insert);
- (void) ierr;
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
ierr = vector->Update(1.0, dummy, 1.0);
- (void) ierr;
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
#endif
}
double result(0.);
const int ierr = vector->Dot(down_V.trilinos_vector(), &result);
- (void) ierr;
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
return result;
}
const int ierr = vector->Update(a, down_V.trilinos_vector(), 1.);
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
}
const int ierr = vector->Update(a, down_V.trilinos_vector(), b,
down_W.trilinos_vector(), 1.);
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
}
const int ierr = vector->Multiply(1.0, down_scaling_factors.trilinos_vector(),
*vector, 0.0);
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
}
// Otherwise, just update
int ierr = vector->Update(a, down_V.trilinos_vector(), 0.);
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
}
}
double norm(0.);
int ierr = vector->Norm1(&norm);
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
return norm;
}
double norm(0.);
int ierr = vector->Norm2(&norm);
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
return norm;
}
double norm(0.);
int ierr = vector->NormInf(&norm);
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
return norm;
}
int ierr = vector->ExtractView(&val, &leading_dimension);
Assert(ierr==0, ExcTrilinosError(ierr));
+ (void) ierr;
out.precision (precision);
if (scientific)
out.setf(std::ios::scientific, std::ios::floatfield);