Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 12 of 12) sorted by relevance

/petsc/src/sys/error/
H A Dadebug.c258 char pid[10]; in PetscAttachDebugger() local
270 PetscCall(PetscSNPrintf(pid, PETSC_STATIC_ARRAY_LENGTH(pid), "%d", child)); in PetscAttachDebugger()
285 args[2] = pid; in PetscAttachDebugger()
290 printf("PETSC: Attaching %s to %s %s on %s\n", args[0], args[1], pid, hostname); in PetscAttachDebugger()
297 args[2] = pid; in PetscAttachDebugger()
303 printf("PETSC: Attaching %s to %s %s on %s\n", args[0], args[3], pid, hostname); in PetscAttachDebugger()
310 args[2] = pid; in PetscAttachDebugger()
316 printf("PETSC: Attaching %s to %s %s on %s\n", args[0], args[1], pid, hostname); in PetscAttachDebugger()
323 args[2] = pid; in PetscAttachDebugger()
327 args[5] = pid; in PetscAttachDebugger()
[all …]
/petsc/config/BuildSystem/config/utilities/
H A Ddebuggers.py62 pid = os.fork()
63 if not pid:
69 …) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -p '+str(pid), log = self.log)
72 if re.match(r'Process '+str(pid), line):
79 …) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -a '+str(pid), log = self.log)
82 if re.match(r'Process '+str(pid), line):
89 …= config.base.Configure.executeShellCommand(self.dbx+' -c conftest -pid '+str(pid), log = self.log)
92 if re.match(r'Process '+str(pid), line):
/petsc/src/benchmarks/
H A Ddaemon.py56 pid = os.fork()
60 if (pid == 0): # The first child.
104 pid = os.fork() # Fork a second child.
108 if (pid == 0): # The second child.
/petsc/src/dm/impls/plex/tutorials/
H A Dex17.c9 PetscInt dim, pStart, pEnd, pid; in ComputeVolume() local
22 PetscCall(DMLabelGetValue(dim == 2 ? faceLabel : bodyLabel, p, &pid)); in ComputeVolume()
23 if (pid >= 0) { in ComputeVolume()
30 PetscCall(DMLabelGetValue(dim == 2 ? edgeLabel : faceLabel, p, &pid)); in ComputeVolume()
31 if (pid >= 0) { in ComputeVolume()
/petsc/src/dm/impls/plex/tests/
H A Dex37.c33 PetscInt dim, pStart, pEnd, p, pid; in ComputeVolume() local
45 PetscCall(DMLabelGetValue(dim == 2 ? faceLabel : bodyLabel, p, &pid)); in ComputeVolume()
46 if (pid >= 0) { in ComputeVolume()
53 PetscCall(DMLabelGetValue(dim == 2 ? edgeLabel : faceLabel, p, &pid)); in ComputeVolume()
54 if (pid >= 0) { in ComputeVolume()
/petsc/src/ts/adapt/impls/dsp/
H A Dadaptdsp.c268 PetscReal pid[3] = {1, 0, 0}; in TSAdaptSetFromOptions_DSP() local
279 …y("-ts_adapt_dsp_pid", "PID parameters <kkI,kkP,kkD>", "TSAdaptDSPSetPID", pid, (n = 3, &n), &set)… in TSAdaptSetFromOptions_DSP()
281 if (set) PetscCall(TSAdaptDSPSetPID(adapt, pid[0], pid[1], pid[2])); in TSAdaptSetFromOptions_DSP()
/petsc/config/BuildSystem/
H A DRDict.py670 def serverShutdown(self, pid, delay = shutdownDelay): argument
674 self.shutdownTimer = threading.Timer(delay, self.serverShutdown, [pid], {'delay': 0})
677 … self.writeLogLine('SERVER: Set shutdown timer for process '+str(pid)+' at '+str(delay)+' seconds')
687 …self.writeLogLine('SERVER: Extending shutdown timer for '+str(pid)+' by '+str(RDict.shutdownDelay …
689 self.serverShutdown(pid, RDict.shutdownDelay - idleTime)
691 self.writeLogLine('SERVER: Killing server '+str(pid))
692 os.kill(pid, signal.SIGTERM)
/petsc/src/dm/impls/swarm/
H A Ddata_bucket.c336 PetscErrorCode DMSwarmDataFieldAccessPoint(const DMSwarmDataField gfield, const PetscInt pid, void … in DMSwarmDataFieldAccessPoint() argument
343 PetscCheck(pid >= 0, PETSC_COMM_SELF, PETSC_ERR_USER, "index must be >= 0"); in DMSwarmDataFieldAccessPoint()
344 …PetscCheck(pid < gfield->L, PETSC_COMM_SELF, PETSC_ERR_USER, "index must be < %" PetscInt_FMT, gfi… in DMSwarmDataFieldAccessPoint()
347 *ctx_p = DMSWARM_DATAFIELD_point_access(gfield->data, pid, gfield->atomic_size); in DMSwarmDataFieldAccessPoint()
351 …ssPointOffset(const DMSwarmDataField gfield, const size_t offset, const PetscInt pid, void **ctx_p) in DMSwarmDataFieldAccessPointOffset() argument
361 PetscCheck(pid >= 0, PETSC_COMM_SELF, PETSC_ERR_USER, "index must be >= 0"); in DMSwarmDataFieldAccessPointOffset()
362 …PetscCheck(pid < gfield->L, PETSC_COMM_SELF, PETSC_ERR_USER, "index must be < %" PetscInt_FMT, gfi… in DMSwarmDataFieldAccessPointOffset()
365 *ctx_p = DMSWARM_DATAFIELD_point_access_offset(gfield->data, pid, gfield->atomic_size, offset); in DMSwarmDataFieldAccessPointOffset()
H A Dswarmpic_sort.c167 PetscInt pid, pid_unsorted; in DMSwarmSortGetPointsPerCell() local
177 pid = ctx->pcell_offsets[cell] + p; in DMSwarmSortGetPointsPerCell()
178 pid_unsorted = ctx->list[pid].point_index; in DMSwarmSortGetPointsPerCell()
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcgraph.c569 static inline PetscErrorCode PCBDDCGraphComputeCC_Private(PCBDDCGraph graph, PetscInt pid, PetscInt… in PCBDDCGraphComputeCC_Private() argument
575 const PetscInt *PETSC_RESTRICT subset_idxs = graph->subset_idxs[pid - 1]; in PCBDDCGraphComputeCC_Private()
577 const PetscInt subset_size = graph->subset_size[pid - 1]; in PCBDDCGraphComputeCC_Private()
594 if (!nodes[dof].touched && nodes[dof].subset == pid) { in PCBDDCGraphComputeCC_Private()
604 if (!nodes[dof].touched && nodes[dof].subset == pid) { in PCBDDCGraphComputeCC_Private()
623 if (!nodes[dof].touched && nodes[dof].subset == pid && local_subs[dof] == sid) { in PCBDDCGraphComputeCC_Private()
633 if (!nodes[dof].touched && nodes[dof].subset == pid && local_subs[dof] == sid) { in PCBDDCGraphComputeCC_Private()
647 if (!nodes[dof].touched && nodes[dof].subset == pid && local_subs[dof] == sid) { in PCBDDCGraphComputeCC_Private()
657 if (!nodes[dof].touched && nodes[dof].subset == pid) { in PCBDDCGraphComputeCC_Private()
690 const PetscInt pid = n + 1; /* partition labeled by 0 is discarded */ in PCBDDCGraphComputeConnectedComponentsLocal() local
[all …]
/petsc/src/dm/partitioner/impls/simple/
H A Dpartsimple.c93 const PetscInt pid = ((nid * procs[2] + pk) * procs[1] + pj) * procs[0] + pi; in PetscPartitionerPartition_Simple_Grid() local
101 cellproc[offsets[pid]++] = cid; in PetscPartitionerPartition_Simple_Grid()
/petsc/src/snes/tutorials/
H A Dex56.c300 const PetscInt pid[] = {2}; /* The faces with loading (x=L_x) */ in main() local
323 …PetscCall(DMAddBoundary(dm, DM_BC_NATURAL, "traction", label, Npid, pid, 0, Ncomp, components, NUL… in main()
325 …for (i = 0; i < Npid; ++i) PetscCall(PetscWeakFormSetIndexBdResidual(wf, label, pid[i], 0, 0, 0, f… in main()