Lines Matching refs:comm
13 def __init__(self, comm, N): argument
14 self.comm = comm
17 self.n = N // comm.size + int(
18 comm.rank < (N % comm.size)
20 self.start = comm.exscan(self.n)
21 if comm.rank == 0:
27 self.mat = PETSc.Mat().create(comm=comm)
36 lgmap = PETSc.LGMap().create(list(gindices), comm=comm)
41 self.lvec = PETSc.Vec().create(comm=PETSc.COMM_SELF)
45 isg = PETSc.IS().createGeneral(list(gindices), comm=comm)
54 % (comm.rank, self.n, self.N, self.start)
59 for rank in range(comm.size):
60 if rank == comm.rank:
63 comm.barrier()
123 ts = PETSc.TS().create(comm=ode.comm)
157 if ode.comm.rank == 0:
169 if OptDB.getBool('plot_history', True) and ode.comm.rank == 0: