Searched refs:rowsDM (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/ts/tutorials/ |
| H A D | ex50.c | 419 PetscInt *rowsDM; in RHSMatrixLaplaciangllDM() local 445 PetscCall(PetscMalloc1(appctx->param.N, &rowsDM)); in RHSMatrixLaplaciangllDM() 450 for (l = 0; l < appctx->param.N; l++) rowsDM[l] = 1 + (j - xs) * (appctx->param.N - 1) + l; in RHSMatrixLaplaciangllDM() 451 …PetscCall(MatSetValuesLocal(A, appctx->param.N, rowsDM, appctx->param.N, rowsDM, &temp[0][0], ADD_… in RHSMatrixLaplaciangllDM() 453 PetscCall(PetscFree(rowsDM)); in RHSMatrixLaplaciangllDM() 490 PetscInt *rowsDM; in RHSMatrixAdvectiongllDM() local 506 PetscCall(PetscMalloc1(appctx->param.N, &rowsDM)); in RHSMatrixAdvectiongllDM() 508 for (l = 0; l < appctx->param.N; l++) rowsDM[l] = 1 + (j - xs) * (appctx->param.N - 1) + l; in RHSMatrixAdvectiongllDM() 509 …PetscCall(MatSetValuesLocal(A, appctx->param.N, rowsDM, appctx->param.N, rowsDM, &temp[0][0], ADD_… in RHSMatrixAdvectiongllDM() 511 PetscCall(PetscFree(rowsDM)); in RHSMatrixAdvectiongllDM()
|
| /petsc/src/tao/unconstrained/tutorials/ |
| H A D | burgers_spectral.c | 431 PetscInt *rowsDM; in RHSMatrixLaplaciangllDM() local 453 PetscCall(PetscMalloc1(appctx->param.N, &rowsDM)); in RHSMatrixLaplaciangllDM() 458 for (l = 0; l < appctx->param.N; l++) rowsDM[l] = 1 + (j - xs) * (appctx->param.N - 1) + l; in RHSMatrixLaplaciangllDM() 459 …PetscCall(MatSetValuesLocal(A, appctx->param.N, rowsDM, appctx->param.N, rowsDM, &temp[0][0], ADD_… in RHSMatrixLaplaciangllDM() 461 PetscCall(PetscFree(rowsDM)); in RHSMatrixLaplaciangllDM() 492 PetscInt *rowsDM; in RHSMatrixAdvectiongllDM() local 506 PetscCall(PetscMalloc1(appctx->param.N, &rowsDM)); in RHSMatrixAdvectiongllDM() 508 for (l = 0; l < appctx->param.N; l++) rowsDM[l] = 1 + (j - xs) * (appctx->param.N - 1) + l; in RHSMatrixAdvectiongllDM() 509 …PetscCall(MatSetValuesLocal(A, appctx->param.N, rowsDM, appctx->param.N, rowsDM, &temp[0][0], ADD_… in RHSMatrixAdvectiongllDM() 511 PetscCall(PetscFree(rowsDM)); in RHSMatrixAdvectiongllDM()
|
| H A D | spectraladjointassimilation.c | 456 PetscInt *rowsDM; in RHSLaplacian() local 477 PetscCall(PetscMalloc1(appctx->param.N, &rowsDM)); in RHSLaplacian() 482 for (l = 0; l < appctx->param.N; l++) rowsDM[l] = 1 + (j - xs) * (appctx->param.N - 1) + l; in RHSLaplacian() 483 …PetscCall(MatSetValuesLocal(A, appctx->param.N, rowsDM, appctx->param.N, rowsDM, &temp[0][0], ADD_… in RHSLaplacian() 485 PetscCall(PetscFree(rowsDM)); in RHSLaplacian() 507 PetscInt *rowsDM; in RHSAdvection() local 528 PetscCall(PetscMalloc1(appctx->param.N, &rowsDM)); in RHSAdvection() 533 for (l = 0; l < appctx->param.N; l++) rowsDM[l] = 1 + (j - xs) * (appctx->param.N - 1) + l; in RHSAdvection() 534 …PetscCall(MatSetValuesLocal(A, appctx->param.N, rowsDM, appctx->param.N, rowsDM, &temp[0][0], ADD_… in RHSAdvection() 536 PetscCall(PetscFree(rowsDM)); in RHSAdvection()
|