Searched refs:newn (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/dm/impls/plex/ |
| H A D | plexsection.c | 540 PetscInt n, newn = 0, p, v; in DMCreateLocalSection_Plex() local 554 if ((idx[p] < cStart) || (idx[p] >= cEnd)) ++newn; in DMCreateLocalSection_Plex() 557 if ((idx[p] >= cStart) || (idx[p] < cEnd)) ++newn; in DMCreateLocalSection_Plex() 562 PetscCall(PetscMalloc1(newn, &newidx)); in DMCreateLocalSection_Plex() 563 newn = 0; in DMCreateLocalSection_Plex() 574 if ((idx[p] < cStart) || (idx[p] >= cEnd)) newidx[newn++] = idx[p]; in DMCreateLocalSection_Plex() 577 if ((idx[p] >= cStart) || (idx[p] < cEnd)) newidx[newn++] = idx[p]; in DMCreateLocalSection_Plex() 582 … PetscCall(ISCreateGeneral(PETSC_COMM_SELF, newn, newidx, PETSC_OWN_POINTER, &bcPoints[bc++])); in DMCreateLocalSection_Plex()
|
| H A D | plex.c | 3324 PetscInt d, depth_, i, n, newn, cn, co, start, end; in DMPlexGetConeRecursive() local 3353 PetscCall(PetscSectionGetStorageSize(sections_[d], &newn)); in DMPlexGetConeRecursive() 3354 PetscCall(PetscMalloc1(newn, &newarr)); in DMPlexGetConeRecursive() 3365 … PetscCall(ISCreateGeneral(PETSC_COMM_SELF, newn, newarr, PETSC_OWN_POINTER, &expandedPoints_[d])); in DMPlexGetConeRecursive() 3367 n = newn; in DMPlexGetConeRecursive()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex77.c | 842 PetscInt dim, n, N, newn, newN; in AdvectParticles() local 862 PetscCall(DMSwarmGetLocalSize(sdm, &newn)); in AdvectParticles() 863 lreset = (n != newn || N != newN) ? PETSC_TRUE : PETSC_FALSE; in AdvectParticles()
|