Searched refs:allWeights (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/dt/space/impls/subspace/ |
| H A D | spacesubspace.c | 282 PetscReal *allPoints, *allWeights, *B, *V; in PetscSpaceSetUp_Subspace() local 312 …PetscCall(PetscMalloc3(numPoints * origDim, &allPoints, numPoints * origNc, &allWeights, numPoints… in PetscSpaceSetUp_Subspace() 334 for (i = 0; i < origNc; i++) allWeights[origNc * offset + i] = 0.0; in PetscSpaceSetUp_Subspace() 337 for (j = 0; j < subNc; j++) allWeights[offset * origNc + i] += qw[j] * Ju[j * origNc + i]; in PetscSpaceSetUp_Subspace() 340 for (i = 0; i < PetscMin(subNc, origNc); i++) allWeights[offset * origNc + i] += qw[i]; in PetscSpaceSetUp_Subspace() 361 …gNc; s++) V[f * origNb + b] += B[(offset * origNb + b) * origNc + s] * allWeights[offset * origNc … in PetscSpaceSetUp_Subspace() 379 PetscCall(PetscFree3(allPoints, allWeights, B)); in PetscSpaceSetUp_Subspace()
|