From b61834f28d16d160005f4319c118c59a104c73fd Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 4 May 2018 16:34:46 -0400 Subject: [PATCH] replace variable length array with fixed size --- src/REPLICA/neb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/REPLICA/neb.cpp b/src/REPLICA/neb.cpp index 35225b3c1e..e16c8c49d8 100644 --- a/src/REPLICA/neb.cpp +++ b/src/REPLICA/neb.cpp @@ -588,7 +588,7 @@ void NEB::print_status() MPI_Allgather(&fnorminf,1,MPI_DOUBLE,&fmaxatomInRepl[0],1,MPI_DOUBLE,roots); } - double one[numall]; + double one[7]; one[0] = fneb->veng; one[1] = fneb->plen; one[2] = fneb->nlen;