Commit 22082e89 authored by Alessandro Bolis's avatar Alessandro Bolis
Browse files

Fixed bug in homogeneous 1D transform


git-svn-id: https://gforge.sci.utah.edu/svn/nektar/trunk@4025 305cdda6-5ce1-45b3-a98d-dfc68c8b3305
parent 1cba82c9
......@@ -366,9 +366,20 @@ namespace Nektar
bool Shuff,
bool UnShuff)
{
int num_dofs;
if(IsForwards)
{
num_dofs = inarray.num_elements();
}
else
{
num_dofs = outarray.num_elements();
}
if(m_useFFT)
{
int num_dofs = inarray.num_elements();
int num_points_per_plane = num_dofs/m_planes.num_elements();
int num_dfts_per_proc = num_points_per_plane/m_comm->GetColumnComm()->GetSize() + (num_points_per_plane%m_comm->GetColumnComm()->GetSize() > 0);
......@@ -412,7 +423,7 @@ namespace Nektar
{
DNekBlkMatSharedPtr blkmat;
if(inarray.num_elements() == m_npoints) //transform phys space
if(num_dofs == m_npoints) //transform phys space
{
if(IsForwards)
{
......
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