Home
last modified time | relevance | path

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

/petsc/src/dm/impls/stag/tutorials/
H A Dex2.c185 PetscScalar valRhs; in CreateSystem() local
192 valRhs = uxRef(cArrX[ex][inext], cArrY[ey][icenter]); in CreateSystem()
193 PetscCall(DMStagVecSetValuesStencil(dmSol, rhs, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem()
198 PetscScalar valRhs; in CreateSystem() local
205 valRhs = uyRef(cArrX[ex][icenter], cArrY[ey][inext]); in CreateSystem()
206 PetscCall(DMStagVecSetValuesStencil(dmSol, rhs, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem()
212 PetscScalar valRhs; in CreateSystem() local
219 valRhs = uyRef(cArrX[ex][icenter], cArrY[ey][iprev]); in CreateSystem()
220 PetscCall(DMStagVecSetValuesStencil(dmSol, rhs, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem()
224 PetscScalar valA[7], valRhs; in CreateSystem() local
[all …]
H A Dex3.c209 PetscScalar valRhs; in CreateSystem() local
217valRhs = uxRef(arrCoord[ez][ey][ex][icux_right[0]], arrCoord[ez][ey][ex][icux_right[1]], arrCoord[… in CreateSystem()
218 PetscCall(DMStagVecSetValuesStencil(dmSol, rhs, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem()
223 PetscScalar valRhs; in CreateSystem() local
231valRhs = uyRef(arrCoord[ez][ey][ex][icuy_up[0]], arrCoord[ez][ey][ex][icuy_up[1]], arrCoord[ez][ey… in CreateSystem()
232 PetscCall(DMStagVecSetValuesStencil(dmSol, rhs, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem()
237 PetscScalar valRhs; in CreateSystem() local
245valRhs = uzRef(arrCoord[ez][ey][ex][icuz_front[0]], arrCoord[ez][ey][ex][icuz_front[1]], arrCoord[… in CreateSystem()
246 PetscCall(DMStagVecSetValuesStencil(dmSol, rhs, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem()
253 PetscScalar valRhs; in CreateSystem() local
[all …]
/petsc/src/dm/impls/stag/tests/
H A Dex15.c263 PetscScalar valRhs; in CreateSystem2d() local
270 valRhs = 0.0; /* zero Dirichlet */ in CreateSystem2d()
271 PetscCall(DMStagVecSetValuesStencil(dm, *b, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem2d()
276 PetscScalar valRhs; in CreateSystem2d() local
283 valRhs = 0.0; /* zero Diri */ in CreateSystem2d()
284 PetscCall(DMStagVecSetValuesStencil(dm, *b, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem2d()
290 PetscScalar valRhs; in CreateSystem2d() local
297 valRhs = 0.0; /* zero Diri */ in CreateSystem2d()
298 PetscCall(DMStagVecSetValuesStencil(dm, *b, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem2d()
302 PetscScalar valA[7], valRhs; in CreateSystem2d() local
[all …]
H A Dex18.c296 PetscScalar valRhs; in CreateSystem() local
305 valRhs = bogusScale * uxRef(cArrX[ex][inext], cArrY[ey][icenter]); in CreateSystem()
306 PetscCall(DMStagVecSetValuesStencil(dm, rhs, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem()
312 PetscScalar valRhs; in CreateSystem() local
320 valRhs = uyRef(cArrX[ex][icenter], cArrY[ey][inext]); in CreateSystem()
321 PetscCall(DMStagVecSetValuesStencil(dm, rhs, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem()
328 PetscScalar valRhs; in CreateSystem() local
336 valRhs = uyRef(cArrX[ex][icenter], cArrY[ey][iprev]); in CreateSystem()
337 PetscCall(DMStagVecSetValuesStencil(dm, rhs, 1, &row, &valRhs, INSERT_VALUES)); in CreateSystem()
342 PetscScalar valA[7], valRhs; in CreateSystem() local
[all …]