diff --git a/src/RIGID/fix_rigid_small.cpp b/src/RIGID/fix_rigid_small.cpp index cbaef073da..a8b4a5f519 100644 --- a/src/RIGID/fix_rigid_small.cpp +++ b/src/RIGID/fix_rigid_small.cpp @@ -1351,8 +1351,8 @@ void FixRigidSmall::set_xv() vr[4] = 0.5*x0*fc2; vr[5] = 0.5*x1*fc2; - double rlist[][3] = {x0, x1, x2}; - double flist[][3] = {0.5*fc0, 0.5*fc1, 0.5*fc2}; + double rlist[][3] = {{x0, x1, x2}}; + double flist[][3] = {{0.5*fc0, 0.5*fc1, 0.5*fc2}}; v_tally(1,&i,1.0,vr,rlist,flist,b->xgc); } } @@ -1513,8 +1513,8 @@ void FixRigidSmall::set_v() vr[4] = 0.5*x0*fc2; vr[5] = 0.5*x1*fc2; - double rlist[][3] = {x0, x1, x2}; - double flist[][3] = {0.5*fc0, 0.5*fc1, 0.5*fc2}; + double rlist[][3] = {{x0, x1, x2}}; + double flist[][3] = {{0.5*fc0, 0.5*fc1, 0.5*fc2}}; v_tally(1,&i,1.0,vr,rlist,flist,b->xgc); } }