Commit ce938c8a authored by Douglas Serson's avatar Douglas Serson
Browse files

Fix half mode in FieldConvert

parent a8fbc4da
......@@ -281,7 +281,9 @@ struct Field
// Define Homogeneous expansion
int nplanes;
NekDouble lz;
LibUtilities::BasisType btype;
LibUtilities::BasisType btype;
LibUtilities::PointsType ptype =
LibUtilities::eFourierEvenlySpaced;
if (fldfilegiven)
{
......@@ -299,6 +301,11 @@ struct Field
nplanes = 4;
}
}
else if (btype == LibUtilities::eFourierHalfModeRe &&
nplanes == 1)
{
ptype = LibUtilities::ePolyEvenlySpaced;
}
}
else
{
......@@ -310,7 +317,7 @@ struct Field
// Choose points to be at evenly spaced points at
// nplanes points
const LibUtilities::PointsKey Pkey(
nplanes, LibUtilities::eFourierEvenlySpaced);
nplanes, ptype);
const LibUtilities::BasisKey Bkey(btype, nplanes, Pkey);
......
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