| /petsc/src/sys/memory/ |
| H A D | mtr.c | 102 TRSPACE *head, *lasthead; in PetscMallocValidate() local 107 head = TRhead; in PetscMallocValidate() 109 if (head && head->prev) { in PetscMallocValidate() 112 …rPrintf)("Root memory header %p has invalid back pointer %p\n", (void *)head, (void *)head->prev)); in PetscMallocValidate() 115 while (head) { in PetscMallocValidate() 116 if (head->specialcookie != COOKIE_VALUE) { in PetscMallocValidate() 119 PetscCall((*PetscErrorPrintf)("Memory at address %p is corrupted\n", (void *)head)); in PetscMallocValidate() 122 a = (char *)(((TrSPACE *)head) + 1); in PetscMallocValidate() 128 a = (char *)(((TrSPACE *)head) + 1); in PetscMallocValidate() 129 nend = (PetscInt *)(a + head->size); in PetscMallocValidate() [all …]
|
| /petsc/src/mat/utils/ |
| H A D | freespace.c | 27 PetscErrorCode PetscFreeSpaceContiguous(PetscFreeSpaceList *head, PetscInt *space) in PetscFreeSpaceContiguous() argument 32 while (*head) { in PetscFreeSpaceContiguous() 33 a = (*head)->more_space; in PetscFreeSpaceContiguous() 34 PetscCall(PetscArraycpy(space, (*head)->array_head, (*head)->local_used)); in PetscFreeSpaceContiguous() 35 space = PetscSafePointerPlusOffset(space, (*head)->local_used); in PetscFreeSpaceContiguous() 36 PetscCall(PetscFree((*head)->array_head)); in PetscFreeSpaceContiguous() 37 PetscCall(PetscFree(*head)); in PetscFreeSpaceContiguous() 38 *head = a; in PetscFreeSpaceContiguous() 60 PetscErrorCode PetscFreeSpaceContiguous_LU(PetscFreeSpaceList *head, PetscInt *space, PetscInt n, P… in PetscFreeSpaceContiguous_LU() argument 71 while (*head) { in PetscFreeSpaceContiguous_LU() [all …]
|
| /petsc/src/sys/utils/ |
| H A D | segbuffer.c | 18 struct _PetscSegBufferLink *head; member 28 s = seg->head; in PetscSegBufferAlloc_Private() 37 seg->head = newlink; in PetscSegBufferAlloc_Private() 60 struct _PetscSegBufferLink *head; in PetscSegBufferCreate() local 64 PetscCall(PetscMalloc(offsetof(struct _PetscSegBufferLink, u) + expected * unitbytes, &head)); in PetscSegBufferCreate() 65 PetscCall(PetscMemzero(head, offsetof(struct _PetscSegBufferLink, u))); in PetscSegBufferCreate() 67 head->alloc = expected; in PetscSegBufferCreate() 69 (*seg)->head = head; in PetscSegBufferCreate() 95 s = seg->head; in PetscSegBufferGet() 97 s = seg->head; in PetscSegBufferGet() [all …]
|
| /petsc/src/sys/webclient/ |
| H A D | globus.c | 103 char buff[8 * 1024], *ptr, head[1024]; in PetscGlobusAuthorize() local 123 PetscCall(PetscStrncpy(head, "Authorization: Basic ", sizeof(head))); in PetscGlobusAuthorize() 124 …PetscCall(base64_encode((const unsigned char *)buff, (unsigned char *)(head + 21), sizeof(head) - … in PetscGlobusAuthorize() 125 PetscCall(PetscStrlcat(head, "\r\n", sizeof(head))); in PetscGlobusAuthorize() 129 … "nexus.api.globusonline.org/goauth/token?grant_type=client_credentials", head, "application/x-www… in PetscGlobusAuthorize() 166 char head[4096]; in PetscGlobusGetTransfers() local 172 PetscCall(PetscStrncpy(head, "Authorization : Globus-Goauthtoken ", sizeof(head))); in PetscGlobusGetTransfers() 174 PetscCall(PetscStrlcat(head, access_token, sizeof(head))); in PetscGlobusGetTransfers() 180 PetscCall(PetscStrlcat(head, accesstoken, sizeof(head))); in PetscGlobusGetTransfers() 182 PetscCall(PetscStrlcat(head, "\r\n", sizeof(head))); in PetscGlobusGetTransfers() [all …]
|
| H A D | google.c | 124 char head[1024], buff[8 * 1024], *body, *title; in PetscGoogleDriveUpload() local 134 PetscCall(PetscStrncpy(head, "Authorization: Bearer ", sizeof(head))); in PetscGoogleDriveUpload() 135 PetscCall(PetscStrlcat(head, access_token, sizeof(head))); in PetscGoogleDriveUpload() 136 PetscCall(PetscStrlcat(head, "\r\n", sizeof(head))); in PetscGoogleDriveUpload() 137 PetscCall(PetscStrlcat(head, "uploadType: multipart\r\n", sizeof(head))); in PetscGoogleDriveUpload() 171 …PetscCall(PetscHTTPSRequest("POST", "www.googleapis.com/upload/drive/v2/files/", head, "multipart/… in PetscGoogleDriveUpload()
|
| H A D | box.c | 273 char head[1024], buff[8 * 1024], *body, *title; in PetscBoxUpload() local 283 PetscCall(PetscStrncpy(head, "Authorization: Bearer ", sizeof(head))); in PetscBoxUpload() 284 PetscCall(PetscStrlcat(head, access_token, sizeof(head))); in PetscBoxUpload() 285 PetscCall(PetscStrlcat(head, "\r\n", sizeof(head))); in PetscBoxUpload() 286 PetscCall(PetscStrlcat(head, "uploadType: multipart\r\n", sizeof(head))); in PetscBoxUpload() 320 …PetscCall(PetscHTTPSRequest("POST", "www.boxapis.com/upload/drive/v2/files/", head, "multipart/rel… in PetscBoxUpload()
|
| /petsc/config/BuildSystem/config/utilities/ |
| H A D | missing.py | 90 head = self.featureTestMacros() + ''' 105 if not (self.checkCompile(head,code('size_t')) or self.checkCompile(head,code('int'))): 109 if not (self.checkLink(head,code('size_t')) or self.checkLink(head,code('int'))): 116 head = self.featureTestMacros() + ''' 126 if not self.checkCompile(head,code): 131 if not self.checkLink(head,code):
|
| /petsc/src/mat/graphops/order/ |
| H A D | qmdmrg.c | 40 …PetscInt head, inhd, irch, node, mark, ilink, root, j, lnode, nabor, jstop, jstrt, rchsze, mrgsze,… in SPARSEPACKqmdmrg() local 102 head = 0; in SPARSEPACKqmdmrg() 128 qlink[lnode] = head; in SPARSEPACKqmdmrg() 129 head = node; in SPARSEPACKqmdmrg() 132 if (head <= 0) goto L1200; in SPARSEPACKqmdmrg() 133 qsize[head] = mrgsze; in SPARSEPACKqmdmrg() 134 deg[head] = *deg0 + deg1 - 1; in SPARSEPACKqmdmrg() 135 marker[head] = 2; in SPARSEPACKqmdmrg()
|
| /petsc/src/ksp/ksp/tutorials/network/ |
| H A D | ex2.c | 47 Edge *head = NULL, *nnew = NULL, *aux = NULL; in random_network() local 87 if (head == NULL) { in random_network() 88 head = nnew; in random_network() 89 head->next = NULL; in random_network() 90 head->n = nedges; in random_network() 91 head->i = i; in random_network() 92 head->j = j; in random_network() 94 aux = head; in random_network() 95 head = nnew; in random_network() 96 head->n = nedges; in random_network() [all …]
|
| /petsc/src/sys/classes/viewer/impls/string/ |
| H A D | stringv.c | 5 char *head; /* pointer to beginning of unused portion */ member 58 PetscCall(PetscMemcpy(vstr->head, tmp, cshift)); in PetscViewerStringSPrintf() 59 vstr->head[cshift - 1] = '\0'; in PetscViewerStringSPrintf() 60 vstr->head += shift; in PetscViewerStringSPrintf() 98 …PetscCall(PetscViewerStringOpen(PETSC_COMM_SELF, vstr->head, vstr->maxlen - vstr->curlen, sviewer)… in PetscViewerGetSubViewer_String() 108 vstr->head = iviewer->head; in PetscViewerRestoreSubViewer_String() 213 vstr->head = string; in PetscViewerStringSetString()
|
| /petsc/config/ |
| H A D | configure.py | 108 head, tail = name.split('=', 1) 110 name = head.replace('enable-cxx','with-clanguage=C',1) 112 name = head.replace('enable-cxx','with-clanguage=C++',1) 119 head, tail = name.split('=', 1) 121 name = head.replace('disable-cxx','with-clanguage=C++',1) 123 name = head.replace('disable-cxx','with-clanguage=C',1) 131 head, tail = name.split('=', 1) 132 name = head.replace('enable-','with-',1)+'='+tail 137 head, tail = name.split('=', 1) 139 name = head.replace('disable-','with-',1)+'='+tail [all …]
|
| /petsc/src/ksp/pc/impls/composite/ |
| H A D | composite.c | 15 PC_CompositeLink head; member 26 PC_CompositeLink next = jac->head; in PCApply_Composite_Multiplicative() 37 next = jac->head; in PCApply_Composite_Multiplicative() 66 PC_CompositeLink next = jac->head; in PCApplyTranspose_Composite_Multiplicative() 86 next = jac->head; in PCApplyTranspose_Composite_Multiplicative() 106 PC_CompositeLink next = jac->head; in PCApply_Composite_Special() 128 PC_CompositeLink next = jac->head; in PCApply_Composite_Additive() 138 next = jac->head; in PCApply_Composite_Additive() 152 PC_CompositeLink next = jac->head; in PCApplyTranspose_Composite_Additive() 168 PC_CompositeLink next = jac->head; in PCSetUp_Composite() [all …]
|
| /petsc/src/snes/tutorials/network/water/ |
| H A D | waterreaddata.c | 10 PetscScalar *head = pump->headcurve.head, *flow = pump->headcurve.flow; in PumpHeadCurveResidual() local 19 …f[0] += x[0] - x[1] * PetscPowScalar(flow[i], x[2]) - head[i]; … in PumpHeadCurveResidual() 20 …f[1] += (x[0] - x[1] * PetscPowScalar(flow[i], x[2]) - head[i]) * -1 * PetscPowScalar(flow[i], x[2… in PumpHeadCurveResidual() 21 …f[2] += (x[0] - x[1] * PetscPowScalar(flow[i], x[2]) - head[i]) * -1 * x[1] * x[2] * PetscPowScala… in PumpHeadCurveResidual() 33 PetscScalar *head, *flow, *x; in SetPumpHeadCurveParams() local 37 head = pump->headcurve.head; in SetPumpHeadCurveParams() 42 head[1] = 1.33 * head[0]; /* 133% of design head -- From EPANET manual */ in SetPumpHeadCurveParams() 44 head[2] = 0; in SetPumpHeadCurveParams() 60 x[0] = head[1]; in SetPumpHeadCurveParams() 216 reservoir->head = (PetscScalar)v1; in WaterReadData() [all …]
|
| H A D | water.h | 32 PetscScalar head; /* head (ft) */ member 78 PetscScalar head[3]; /* head (ft) */ member
|
| /petsc/src/sys/yaml/src/ |
| H A D | api.c | 120 yaml_queue_extend(void **start, void **head, void **tail, void **end) in yaml_queue_extend() argument 124 if (*start == *head && *tail == *end) { in yaml_queue_extend() 130 *head = (char *)new_start + ((char *)*head - (char *)*start); in yaml_queue_extend() 139 if (*head != *tail) memmove(*start, *head, (char *)*tail - (char *)*head); in yaml_queue_extend() 140 *tail = (char *)*tail - (char *)*head + (char *)*start; in yaml_queue_extend() 141 *head = *start; in yaml_queue_extend()
|
| H A D | yaml_private.h | 421 yaml_queue_extend(void **start, void **head, void **tail, void **end); 458 ((queue).head = (queue).tail = (queue).start, \ 466 (queue).start = (queue).head = (queue).tail = (queue).end = NULL) 469 ((queue).head == (queue).tail) 473 || yaml_queue_extend((void **)&(queue).start, (void **)&(queue).head, \ 481 (*((queue).head++)) 485 || yaml_queue_extend((void **)&(queue).start, (void **)&(queue).head, \ 487 (memmove((queue).head+(index)+1,(queue).head+(index), \ 488 ((queue).tail-(queue).head-(index))*sizeof(*(queue).start)), \ 489 *((queue).head+(index)) = value, \
|
| /petsc/src/snes/impls/composite/ |
| H A D | snescomposite.c | 19 SNES_CompositeLink head; member 50 SNES_CompositeLink next = jac->head; in SNESCompositeApply_Multiplicative() 114 SNES_CompositeLink next = jac->head; in SNESCompositeApply_Additive() 131 next = jac->head; in SNESCompositeApply_Additive() 187 SNES_CompositeLink next = jac->head; in SNESCompositeApply_AdditiveOptimal() 199 next = jac->head; in SNESCompositeApply_AdditiveOptimal() 207 next = jac->head; in SNESCompositeApply_AdditiveOptimal() 312 SNES_CompositeLink next = jac->head; in SNESSetUp_Composite() 347 next = jac->head; in SNESSetUp_Composite() 375 SNES_CompositeLink next = jac->head; in SNESReset_Composite() [all …]
|
| /petsc/src/mat/impls/composite/ |
| H A D | mcomposite.c | 14 Mat_CompositeLink head, tail; member 39 next = shell->head; in MatDestroy_Composite() 81 next = shell->head; in MatMult_Composite_Multiplicative() 143 cur = shell->head; in MatMult_Composite() 152 for (cur = shell->head; cur; cur = cur->next) { in MatMult_Composite() 162 for (cur = shell->head; cur; cur = cur->next) { in MatMult_Composite() 174 for (cur = shell->head; cur; cur = cur->next) { in MatMult_Composite() 204 for (cur = shell->head, j = 0; cur; cur = cur->next, j++) { /* j-th matrix */ in MatMult_Composite() 251 for (cur = shell->head, tot = i = 0; cur; cur = cur->next, i++) { /* i-th matrix */ in MatMult_Composite() 263 for (cur = shell->head, i = 0; cur; cur = cur->next, i++) { in MatMult_Composite() [all …]
|
| /petsc/src/ksp/ksp/utils/lmvm/ |
| H A D | lmbasis.c | 120 VecLink head = basis->work_vecs_available; in LMBasisDestroy() local 122 while (head) { in LMBasisDestroy() 123 VecLink next = head->next; in LMBasisDestroy() 125 PetscCall(VecDestroy(&head->vec)); in LMBasisDestroy() 126 PetscCall(PetscFree(head)); in LMBasisDestroy() 127 head = next; in LMBasisDestroy() 132 VecLink head = basis->work_rows_available; in LMBasisDestroy() local 134 while (head) { in LMBasisDestroy() 135 VecLink next = head->next; in LMBasisDestroy() 137 PetscCall(VecDestroy(&head->vec)); in LMBasisDestroy() [all …]
|
| /petsc/src/ksp/pc/impls/fieldsplit/ |
| H A D | fieldsplit.c | 72 PC_FieldSplitLink head; member 113 PC_FieldSplitLink ilink = jac->head; in PCView_FieldSplit() 171 PC_FieldSplitLink ilink = jac->head; in PCView_FieldSplit_Schur() 229 if (jac->head) PetscCall(KSPView(jac->head->ksp, viewer)); in PCView_FieldSplit_Schur() 232 if (jac->head && jac->kspupper != jac->head->ksp) { in PCView_FieldSplit_Schur() 248 } else if (isdraw && jac->head) { in PCView_FieldSplit_Schur() 256 if (jac->kspupper != jac->head->ksp) cnt++; in PCView_FieldSplit_Schur() 273 PetscCall(KSPView(jac->head->ksp, viewer)); in PCView_FieldSplit_Schur() 275 if (jac->kspupper != jac->head->ksp) { in PCView_FieldSplit_Schur() 294 PC_FieldSplitLink ilink = jac->head; in PCView_FieldSplit_GKB() [all …]
|
| /petsc/lib/petsc/conf/ |
| H A D | rules_util.mk | 270 y1=`curl --connect-timeout 5 --head --silent $${url} | head -n 1`; \ 278 …l=`curl --connect-timeout 5 --head --silent $${url} | grep ocation | sed 's/.*ocation:[[:blank:]]\… 286 b=`curl --connect-timeout 5 --head --silent $${ws}$$l | head -n 1` ; \
|
| /petsc/src/sys/dll/ |
| H A D | reg.c | 200 PetscFunctionListDLAll head; in PetscFunctionListDLAllPush_Private() local 202 PetscCall(PetscNew(&head)); in PetscFunctionListDLAllPush_Private() 203 head->data = fl; in PetscFunctionListDLAllPush_Private() 204 head->next = dlallhead; in PetscFunctionListDLAllPush_Private() 205 dlallhead = head; in PetscFunctionListDLAllPush_Private()
|
| /petsc/src/mat/tests/ |
| H A D | cJSON.c | 1144 cJSON *head = NULL; /* head of the linked list */ in parse_array() local 1177 if (head == NULL) { in parse_array() 1179 current_item = head = new_item; in parse_array() 1199 if (head != NULL) head->prev = current_item; in parse_array() 1202 item->child = head; in parse_array() 1209 if (head != NULL) cJSON_Delete(head); in parse_array() 1259 cJSON *head = NULL; /* linked list head */ in parse_object() local 1286 if (head == NULL) { in parse_object() 1288 current_item = head = new_item; in parse_object() 1320 if (head != NULL) head->prev = current_item; in parse_object() [all …]
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | check-fortran-coverage.sh | 21 petsc_arch=$(find . -maxdepth 1 -type d -name 'arch-*' | head -n1 | sed 's|^\./||')
|
| /petsc/src/benchmarks/ |
| H A D | ssget | 77 PROPS=$(head -$((${MATRIX_ID} + 2)) "${ARCHIVE_LOCATION}/ssstats.csv" \ 193 head -1 "${ARCHIVE_LOCATION}/ssstats.csv"
|