Searched refs:preimage (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex22.c | 9 PetscReal *preimage, *mapped, *inverted; in testIdentity() local 15 PetscCall(DMGetWorkArray(dm, dimR * numPoints, MPIU_REAL, &preimage)); in testIdentity() 19 for (i = 0; i < dimR * numPoints; i++) PetscCall(PetscRandomGetValueReal(randCtx, &preimage[i])); in testIdentity() 23 PetscReal x = preimage[i * dimR + j]; in testIdentity() 24 PetscReal y = preimage[i * dimR + ((j + 1) % dimR)]; in testIdentity() 26 preimage[i * dimR + ((j + 1) % dimR)] = -1. + (y + 1.) * 0.5 * (1. - x); in testIdentity() 31 PetscCall(DMPlexReferenceToCoordinates(dm, cell, numPoints, preimage, mapped)); in testIdentity() 37 …for (j = 0; j < dimR; j++) max = PetscMax(max, PetscAbsReal(preimage[i * dimR + j] - inverted[i * … in testIdentity() 41 PetscCall(PetscPrintf(PETSC_COMM_SELF, "%+f", (double)preimage[i * dimR + j])); in testIdentity() 62 …tscSNPrintfCount(strBuf + offset, BUFSIZ - offset, "%+f", &count, (double)preimage[i * dimR + j])); in testIdentity() [all …]
|