Commit 5d7e8250 authored by Spencer Sherwin's avatar Spencer Sherwin

Updated addfield->nfields*spacedim

parent 06f49bb2
......@@ -79,10 +79,10 @@ void ProcessGrad::Process(po::variables_map &vm)
int addfields = nfields*spacedim;
int npoints = m_f->m_exp[0]->GetNpoints();
Array<OneD, Array<OneD, NekDouble> > grad(nfields*spacedim);
Array<OneD, Array<OneD, NekDouble> > grad(addfields);
m_f->m_exp.resize(nfields+addfields);
for (i = 0; i < nfields*spacedim; ++i)
for (i = 0; i < addfields; ++i)
{
grad[i] = Array<OneD, NekDouble>(npoints);
}
......
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