Commit 7e9d60b8 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Merge declaration and initialization in gridGenerate.

parent b28a8119
...@@ -2588,9 +2588,7 @@ int gridGenerate(const grid_t *grid) ...@@ -2588,9 +2588,7 @@ int gridGenerate(const grid_t *grid)
if ( grid->xdef == 2 ) if ( grid->xdef == 2 )
{ {
double xvals[2]; double xvals[2] = { grid->xfirst, grid->xlast };
xvals[0] = grid->xfirst;
xvals[1] = grid->xlast;
gridDefXvals(gridID, xvals); gridDefXvals(gridID, xvals);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment