Home
last modified time | relevance | path

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

/petsc/src/snes/utils/
H A Ddmplexsnes.c360 PetscFormKey *reskeys; in DMPlexSNESComputeResidualDS() local
368 PetscCall(PetscMalloc1(Nk, &reskeys)); in DMPlexSNESComputeResidualDS()
369 … for (m = 0; m < Nm; ++m) PetscCall(PetscHMapFormGetKeys(ds->wf->form[resmap[m]], &off, reskeys)); in DMPlexSNESComputeResidualDS()
371 PetscCall(PetscFormKeySort(Nk, reskeys)); in DMPlexSNESComputeResidualDS()
373 if ((reskeys[k].label != reskeys[kp].label) || (reskeys[k].value != reskeys[kp].value)) { in DMPlexSNESComputeResidualDS()
375 if (kp != k) reskeys[k] = reskeys[kp]; in DMPlexSNESComputeResidualDS()
382 DMLabel label = reskeys[k].label; in DMPlexSNESComputeResidualDS()
383 PetscInt val = reskeys[k].value; in DMPlexSNESComputeResidualDS()
395 …PetscCall(DMPlexComputeResidualByKey(plex, reskeys[k], cellIS, PETSC_MIN_REAL, X, NULL, 0.0, F, ct… in DMPlexSNESComputeResidualDS()
398 PetscCall(PetscFree(reskeys)); in DMPlexSNESComputeResidualDS()