Skip to content

Commit

Permalink
Use braces in test
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Nov 18, 2022
1 parent 4e91400 commit 7b05ed9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions include/deal.II/lac/trilinos_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
# include <Epetra_Operator.h>

// for Belos solvers
#ifdef DEAL_II_TRILINOS_WITH_BELOS
# include <BelosBlockCGSolMgr.hpp>
# include <BelosBlockGmresSolMgr.hpp>
# include <BelosEpetraAdapter.hpp>
# include <BelosIteration.hpp>
# include <BelosMultiVec.hpp>
# include <BelosOperator.hpp>
# include <BelosSolverManager.hpp>
#endif
# ifdef DEAL_II_TRILINOS_WITH_BELOS
# include <BelosBlockCGSolMgr.hpp>
# include <BelosBlockGmresSolMgr.hpp>
# include <BelosEpetraAdapter.hpp>
# include <BelosIteration.hpp>
# include <BelosMultiVec.hpp>
# include <BelosOperator.hpp>
# include <BelosSolverManager.hpp>
# endif

# include <memory>

Expand Down Expand Up @@ -732,7 +732,7 @@ namespace TrilinosWrappers



#ifdef DEAL_II_TRILINOS_WITH_BELOS
# ifdef DEAL_II_TRILINOS_WITH_BELOS
/**
* Wrapper around the iterate solver package from the Belos
* packge
Expand Down Expand Up @@ -808,15 +808,15 @@ namespace TrilinosWrappers
const AdditionalData additional_data;
const Teuchos::RCP<Teuchos::ParameterList> &belos_parameters;
};
#endif
# endif

} // namespace TrilinosWrappers



# ifndef DOXYGEN

#ifdef DEAL_II_TRILINOS_WITH_BELOS
# ifdef DEAL_II_TRILINOS_WITH_BELOS
namespace TrilinosWrappers
{
namespace internal
Expand Down Expand Up @@ -1228,7 +1228,7 @@ namespace TrilinosWrappers
}


# ifdef HAVE_BELOS_TSQR
# ifdef HAVE_BELOS_TSQR
virtual void
factorExplicit(Belos::MultiVec<value_type> &,
Teuchos::SerialDenseMatrix<int, value_type> &,
Expand All @@ -1245,7 +1245,7 @@ namespace TrilinosWrappers
Asser(false, ExcNotImplemented());
}

# endif
# endif

private:
/**
Expand Down Expand Up @@ -1434,7 +1434,7 @@ namespace TrilinosWrappers
}

} // namespace TrilinosWrappers
#endif
# endif

# endif

Expand Down
6 changes: 3 additions & 3 deletions tests/cuda/solver_02.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ test(Utilities::CUDA::Handle &cuda_handle)
rhs_dev.import(rhs_host, VectorOperation::insert);

LinearAlgebra::CUDAWrappers::Vector<double> solution_dev(size);
const std::array<std::string, 3> solver_names{"Cholesky",
"LU_dense",
"LU_host"};
const std::array<std::string, 3> solver_names{{"Cholesky"},
{"LU_dense"},
{"LU_host"}};

for (auto solver_type : solver_names)
{
Expand Down

0 comments on commit 7b05ed9

Please sign in to comment.