Commit d0373bd6 authored by Dave Moxey's avatar Dave Moxey
Browse files

Merge branch 'fix/OutputInfo' into 'master'

Fix FieldConvert processing of partitions in serial

This MR makes two changes related to using FieldConvert on individual partitions in serial:
- Fix the call to PartitionMesh inside OutputInfo. This was previously using `PartitionMesh(false)`, when the first parameter should be the number of partitions.
- Force FieldConvert to use the `forceoutput` option when using `procid`. If this was not done, whenever `procid != 0` the output would be automatically skipped. 

See merge request !612
parents aa175afd b718e92a
......@@ -13,6 +13,7 @@ v4.3.1
- Fix bug in modified Arnoldi algorithm causing convergence to be reported when
number of vectors is less than `nvec` (!608)
- Fix uninitialised array bug in AssemblyMap (!598)
- Fix FieldConvert processing of partitions in serial (!612)
- Fix use of multi-level static condensation in parallel with periodic
boundary conditions (!614)
......
......@@ -211,6 +211,9 @@ int main(int argc, char* argv[])
f->m_comm = boost::shared_ptr<FieldConvertComm>(
new FieldConvertComm(argc, argv, nprocs,rank));
// Set forceoutput option. Otherwise only procid 0 will write file
vm.insert(std::make_pair("forceoutput", po::variable_value()));
}
else
{
......
......@@ -122,7 +122,7 @@ void OutputInfo::Process(po::variables_map &vm)
LibUtilities::GetMeshPartitionFactory().CreateInstance(
vPartitionerName, vSession);
vMeshPartition->PartitionMesh(false);
vMeshPartition->PartitionMesh(nprocs, true);
// get hold of local partition ids
std::vector<std::vector<unsigned int> > ElementIDs(nprocs);
......
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