File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,15 @@ Redistribution::Redistribution(): Handle(){};
2020Redistribution::Redistribution (const FunctionSpace& sourceFunctionSpace, const FunctionSpace& targetFunctionSpace,
2121 const util::Config& config):
2222 Handle ([&]() -> redistribution::detail::RedistributionImpl* {
23- ATLAS_ASSERT (sourceFunctionSpace.type () == targetFunctionSpace.type ());
23+ // If no heterogeneous_redistribution config is set, or if it is not set to "true", assert that
24+ // the source and target function spaces are the same type (default)
25+ std::string isHeteroRedistString = " false" ;
26+ config.get (" heterogeneous_redistribution" , isHeteroRedistString);
27+ bool isHeteroRedist = (isHeteroRedistString == " true" );
28+
29+ if (!isHeteroRedist) {
30+ ATLAS_ASSERT (sourceFunctionSpace.type () == targetFunctionSpace.type ());
31+ };
2432
2533 std::string type = redistribution::detail::RedistributeGeneric::static_type ();
2634 config.get (" type" , type);
You can’t perform that action at this time.
0 commit comments