Commit 1f267a16 authored by Spencer Sherwin's avatar Spencer Sherwin
Browse files

Correct bug with initialisation of coeffs before FwdTrans in continous Galerkin Advection routines


git-svn-id: https://gforge.sci.utah.edu/svn/nektar/trunk@4071 305cdda6-5ce1-45b3-a98d-dfc68c8b3305
parent d09fb5ac
///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
//
// File UnsteadyAdvection.cpp
//
......@@ -231,8 +231,7 @@ namespace Nektar
case MultiRegions::eGalerkin:
case MultiRegions::eMixed_CG_Discontinuous:
{
Array<OneD, NekDouble> coeffs(m_fields[0]->GetNcoeffs());
Array<OneD, NekDouble> coeffs(m_fields[0]->GetNcoeffs(),0.0);
for(i = 0; i < nVariables; ++i)
{
m_fields[i]->FwdTrans(inarray[i], coeffs);
......
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