Skip to content
Snippets Groups Projects
Commit 80df605a authored by JM Etancelin's avatar JM Etancelin
Browse files

fixup for domainless problems with tasks

parent e9653171
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ class Problem(ComputationalGraph):
vprint_banner(msg, at_border=2)
sys.exit(0)
comm = self.mpi_params.comm
if self.domain.has_tasks:
if (not self.domain is None) and self.domain.has_tasks:
comm = self.domain.parent_comm
size = comm.Get_size()
avg_time = comm.allreduce(tm.interval) / size
......@@ -267,7 +267,7 @@ class Problem(ComputationalGraph):
self.profiler_report()
comm = self.mpi_params.comm
if self.domain.has_tasks:
if (not self.domain is None) and self.domain.has_tasks:
comm = self.domain.parent_comm
size = comm.Get_size()
avg_time = comm.allreduce(tm.interval) / size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment