From: Daniel Arndt Date: Wed, 24 Jan 2018 21:43:29 +0000 (+0100) Subject: Fix unused variables in linear algebra source files X-Git-Tag: v9.0.0-rc1~525^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5799%2Fhead;p=dealii.git Fix unused variables in linear algebra source files --- diff --git a/include/deal.II/lac/lapack_templates.h b/include/deal.II/lac/lapack_templates.h index ecec4f7365..332b1f6157 100644 --- a/include/deal.II/lac/lapack_templates.h +++ b/include/deal.II/lac/lapack_templates.h @@ -423,9 +423,9 @@ gemv (const char *, const types::blas_int *, const types::blas_int *, const floa /// Template wrapper for LAPACK functions dtrmv and strmv template inline void -trmv (const char *uplo, const char *trans, const char *diag, - const types::blas_int *N, const number *A, const types::blas_int *lda, - number *x, const types::blas_int *incx) +trmv (const char * /*uplo*/, const char * /*trans*/, const char * /*diag*/, + const types::blas_int * /*N*/, const number * /*A*/, const types::blas_int * /*lda*/, + number * /*x*/, const types::blas_int * /*incx*/) { Assert (false, ExcNotImplemented()); } @@ -553,10 +553,10 @@ potrf (const char *uplo, const types::blas_int *n, float *A, const types::blas_i /// Tempalte wrapper for trcon template inline void -trcon(const char *norm, const char *uplo, const char *diag, - const types::blas_int *n, const number *A, const types::blas_int *lda, - number *rcond, - number *work, types::blas_int *iwork, types::blas_int *info) +trcon(const char * /*norm*/, const char * /*uplo*/, const char * /*diag*/, + const types::blas_int * /*n*/, const number * /*A*/, const types::blas_int * /*lda*/, + number * /*rcond*/, + number * /*work*/, types::blas_int * /*iwork*/, types::blas_int * /*info*/) { Assert (false, ExcNotImplemented()); } diff --git a/source/lac/lapack_full_matrix.cc b/source/lac/lapack_full_matrix.cc index 3f6cd8bfe7..d56b2ea920 100644 --- a/source/lac/lapack_full_matrix.cc +++ b/source/lac/lapack_full_matrix.cc @@ -320,9 +320,9 @@ namespace template - void cholesky_rank1(LAPACKFullMatrix> &A, - const std::complex a, - const Vector> &v) + void cholesky_rank1(LAPACKFullMatrix > &/*A*/, + const std::complex /*a*/, + const Vector > &/*v*/) { AssertThrow(false, ExcNotImplemented()); } diff --git a/source/lac/sparsity_tools.cc b/source/lac/sparsity_tools.cc index 10a8a78c0e..f8dc0bd58d 100644 --- a/source/lac/sparsity_tools.cc +++ b/source/lac/sparsity_tools.cc @@ -150,9 +150,9 @@ namespace SparsityTools } - void get_object_list(void *data, int sizeGID, int sizeLID, + void get_object_list(void *data, int /*sizeGID*/, int /*sizeLID*/, ZOLTAN_ID_PTR globalID, ZOLTAN_ID_PTR localID, - int wgt_dim, float *obj_wgts, int *ierr) + int /*wgt_dim*/, float * /*obj_wgts*/, int *ierr) { SparsityPattern *graph = reinterpret_cast(data); *ierr = ZOLTAN_OK; @@ -171,9 +171,9 @@ namespace SparsityTools } - void get_num_edges_list(void *data, int sizeGID, int sizeLID, + void get_num_edges_list(void *data, int /*sizeGID*/, int /*sizeLID*/, int num_obj, - ZOLTAN_ID_PTR globalID, ZOLTAN_ID_PTR localID, + ZOLTAN_ID_PTR globalID, ZOLTAN_ID_PTR /*localID*/, int *numEdges, int *ierr) { SparsityPattern *graph = reinterpret_cast(data); @@ -193,11 +193,11 @@ namespace SparsityTools - void get_edge_list(void *data, int sizeGID, int sizeLID, - int num_obj, ZOLTAN_ID_PTR globalID, ZOLTAN_ID_PTR localID, - int *num_edges, + void get_edge_list(void *data, int /*sizeGID*/, int /*sizeLID*/, + int num_obj, ZOLTAN_ID_PTR /*globalID*/, ZOLTAN_ID_PTR /*localID*/, + int * /*num_edges*/, ZOLTAN_ID_PTR nborGID, int *nborProc, - int wgt_dim, float *ewgts, int *ierr) + int /*wgt_dim*/, float * /*ewgts*/, int *ierr) { SparsityPattern *graph = reinterpret_cast(data); *ierr = ZOLTAN_OK; @@ -232,7 +232,9 @@ namespace SparsityTools // Make sure that ZOLTAN is actually // installed and detected #ifndef DEAL_II_TRILINOS_WITH_ZOLTAN - (void)sparsity_pattern; + (void) sparsity_pattern; + (void) n_partitions; + (void) partition_indices; AssertThrow (false, ExcZOLTANNotInstalled()); #else @@ -354,7 +356,8 @@ namespace SparsityTools // Make sure that ZOLTAN is actually // installed and detected #ifndef DEAL_II_TRILINOS_WITH_ZOLTAN - (void)sparsity_pattern; + (void) sparsity_pattern; + (void) color_indices; AssertThrow (false, ExcZOLTANNotInstalled()); return 0; #else @@ -398,6 +401,7 @@ namespace SparsityTools global_ids.data(), color_exp.data()); + (void) rc; //Check for error code Assert (rc == ZOLTAN_OK , ExcInternalError());