Commit 473e0a90 authored by Douglas Serson's avatar Douglas Serson
Browse files

Eliminate one array in diffusion step

parent f4e223fd
......@@ -78,9 +78,10 @@ namespace Nektar
// Extract pressure and temperature
Array<OneD, NekDouble > pressure (npoints);
m_varConv->GetPressure(inarray, pressure);
m_varConv->GetTemperature(inarray, pressure, inarrayDiff[nvariables-2]);
// (use inarrayDiff[0] as a temporary storage for the pressure)
m_varConv->GetPressure(inarray, inarrayDiff[0]);
m_varConv->GetTemperature(inarray, inarrayDiff[0],
// Extract velocities
for (i = 1; i < nvariables-1; ++i)
Markdown is supported
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