Commit 92512eb3 authored by Douglas Serson's avatar Douglas Serson

Allow use of npz in FC (with holes in the domain)

parent fe1fe999
......@@ -109,7 +109,7 @@ namespace Nektar
(*m_exp).push_back(m_planes[0]->GetExp(j));
}
for(n = 1; n < m_homogeneousBasis->GetNumPoints(); ++n)
for(n = 1; n < m_planes.num_elements(); ++n)
{
m_planes[n] = MemoryManager<ExpList2D>::AllocateSharedPtr(*plane_zero,False);
for(j = 0; j < nel; ++j)
......
......@@ -67,6 +67,9 @@ int main(int argc, char* argv[])
("nprocs", po::value<int>(),
"Used to define nprocs if running serial problem to mimic "
"parallel run.")
("npz", po::value<int>(),
"Used to define number of partitions in z for Homogeneous1D "
"expansions for parallel runs.")
("onlyshape", po::value<string>(),
"Only use element with defined shape type i.e. -onlyshape "
" Tetrahedron")
......
......@@ -254,6 +254,13 @@ void InputXml::Process(po::variables_map &vm)
boost::lexical_cast<string>(vm["part-only-overlapping"].as<int>()));
}
if(vm.count("npz"))
{
cmdArgs.push_back("--npz");
cmdArgs.push_back(
boost::lexical_cast<string>(vm["npz"].as<int>()));
}
int argc = cmdArgs.size();
const char **argv = new const char*[argc];
for (int i = 0; i < argc; ++i)
......
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