From 4c36446ffeda245e5741cfa9abeb671e898c14b8 Mon Sep 17 00:00:00 2001 From: Sterling Harper Date: Sat, 17 Feb 2018 17:32:35 -0500 Subject: [PATCH] Remove array initializer braces to support GCC-4.8 --- src/lattice.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lattice.cpp b/src/lattice.cpp index fd89cbf1e7..2902e3e475 100644 --- a/src/lattice.cpp +++ b/src/lattice.cpp @@ -1,5 +1,6 @@ #include "lattice.h" +#include #include #include @@ -7,9 +8,6 @@ #include "hdf5_interface.h" #include "xml_interface.h" -//TODO: this is only inlcuded for constants that should be moved elsewhere -//#include "surface.h" - //TODO: remove this include #include @@ -641,7 +639,7 @@ extern "C" { void lattice_get_indices(Lattice *lat, const double xyz[3], int i_xyz[3]) { - std::array inds {lat->get_indices(xyz)}; + std::array inds = lat->get_indices(xyz); i_xyz[0] = inds[0]; i_xyz[1] = inds[1]; i_xyz[2] = inds[2]; @@ -650,7 +648,7 @@ extern "C" { void lattice_get_local_xyz(Lattice *lat, const double global_xyz[3], const int i_xyz[3], double local_xyz[3]) { - std::array xyz {lat->get_local_xyz(global_xyz, i_xyz)}; + std::array xyz = lat->get_local_xyz(global_xyz, i_xyz); local_xyz[0] = xyz[0]; local_xyz[1] = xyz[1]; local_xyz[2] = xyz[2];