Searched refs:niNew (Results 1 – 1 of 1) sorted by relevance
338 …tic PetscErrorCode PetscLagNodeIndicesDuplicate(PetscLagNodeIndices ni, PetscLagNodeIndices *niNew) in PetscLagNodeIndicesDuplicate() argument341 PetscCall(PetscNew(niNew)); in PetscLagNodeIndicesDuplicate()342 (*niNew)->refct = 1; in PetscLagNodeIndicesDuplicate()343 (*niNew)->nodeIdxDim = ni->nodeIdxDim; in PetscLagNodeIndicesDuplicate()344 (*niNew)->nodeVecDim = ni->nodeVecDim; in PetscLagNodeIndicesDuplicate()345 (*niNew)->nNodes = ni->nNodes; in PetscLagNodeIndicesDuplicate()346 PetscCall(PetscMalloc1(ni->nNodes * ni->nodeIdxDim, &((*niNew)->nodeIdx))); in PetscLagNodeIndicesDuplicate()347 PetscCall(PetscArraycpy((*niNew)->nodeIdx, ni->nodeIdx, ni->nNodes * ni->nodeIdxDim)); in PetscLagNodeIndicesDuplicate()348 PetscCall(PetscMalloc1(ni->nNodes * ni->nodeVecDim, &((*niNew)->nodeVec))); in PetscLagNodeIndicesDuplicate()349 PetscCall(PetscArraycpy((*niNew)->nodeVec, ni->nodeVec, ni->nNodes * ni->nodeVecDim)); in PetscLagNodeIndicesDuplicate()[all …]