add extra braces around initializer list

clang will toss a warning otherwise
This commit is contained in:
Arne Morten Kvarving
2017-02-15 12:08:36 +01:00
parent 9beae5d47e
commit 5a43bd6617

View File

@@ -266,7 +266,7 @@ void PETScMatrix::initAssembly (const SAM& sam, bool b)
// map from sparse matrix indices to block matrix indices
glb2Blk.resize(SparseMatrix::A.size());
std::vector<std::array<int,2>> eq2b(sam.getNoEquations(), {-1, 0}); // cache
std::vector<std::array<int,2>> eq2b(sam.getNoEquations(), {{-1, 0}}); // cache
for (size_t j = 0; j < cols(); ++j) {
for (int i = IA[j]; i < IA[j+1]; ++i) {
int iblk = -1;