Commit 8a0edf64 authored by Douglas Serson's avatar Douglas Serson
Browse files

Fix for empty partition with range option

parent d29ea900
......@@ -117,16 +117,18 @@ void ProcessCreateExp::Process(po::variables_map &vm)
}
}
m_f->m_exp.resize(1);
// if Range has been specified it is possible to have a
// partition which is empty so check this and return if
// no elements present.
// partition which is empty so check this and return with empty
// expansion if no elements present.
if (!expansions.size())
{
m_f->m_exp[0] = MemoryManager<MultiRegions::ExpList>::
AllocateSharedPtr();
return;
}
m_f->m_exp.resize(1);
if (fldfilegiven)
{
// Set up Expansion information to use mode order from field
......
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