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)
if ( grid->xdef == 2 )
{
double xvals[2];
xvals[0] = grid->xfirst;
xvals[1] = grid->xlast;
double xvals[2] = { grid->xfirst, grid->xlast };
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