| /petsc/src/mat/impls/shell/ |
| H A D | shell.c | 15 Mat_Shell *shell = (Mat_Shell *)A->data; in MatShellPreZeroRight() local 19 if (shell->zrows) { in MatShellPreZeroRight() 20 PetscCall(VecSet(shell->zvals_w, 0.0)); in MatShellPreZeroRight() 21 … PetscCall(VecScatterBegin(shell->zvals_sct_c, x, shell->zvals_w, INSERT_VALUES, SCATTER_FORWARD)); in MatShellPreZeroRight() 22 PetscCall(VecScatterEnd(shell->zvals_sct_c, x, shell->zvals_w, INSERT_VALUES, SCATTER_FORWARD)); in MatShellPreZeroRight() 23 PetscCall(VecPointwiseMult(shell->zvals_w, shell->zvals_w, shell->zvals)); in MatShellPreZeroRight() 25 if (shell->zcols) { in MatShellPreZeroRight() 26 if (!shell->right_work) PetscCall(MatCreateVecs(A, &shell->right_work, NULL)); in MatShellPreZeroRight() 27 PetscCall(VecCopy(x, shell->right_work)); in MatShellPreZeroRight() 28 PetscCall(VecISSet(shell->right_work, shell->zcols, 0.0)); in MatShellPreZeroRight() [all …]
|
| /petsc/src/mat/impls/composite/ |
| H A D | mcomposite.c | 33 Mat_Composite *shell; in MatDestroy_Composite() local 38 PetscCall(MatShellGetContext(mat, &shell)); in MatDestroy_Composite() 39 next = shell->head; in MatDestroy_Composite() 47 PetscCall(VecDestroy(&shell->work)); in MatDestroy_Composite() 49 if (shell->Mvctx) { in MatDestroy_Composite() 50 for (i = 0; i < shell->nmat; i++) PetscCall(VecDestroy(&shell->lvecs[i])); in MatDestroy_Composite() 51 PetscCall(PetscFree3(shell->location, shell->larray, shell->lvecs)); in MatDestroy_Composite() 52 PetscCall(PetscFree(shell->larray)); in MatDestroy_Composite() 53 PetscCall(VecDestroy(&shell->gvec)); in MatDestroy_Composite() 54 PetscCall(VecScatterDestroy(&shell->Mvctx)); in MatDestroy_Composite() [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex65.c | 36 static PetscErrorCode MyDMShellCreate(MPI_Comm comm, DM da, DM *shell) in MyDMShellCreate() argument 39 PetscCall(DMShellCreate(comm, shell)); in MyDMShellCreate() 40 PetscCall(DMShellSetContext(*shell, da)); in MyDMShellCreate() 41 PetscCall(DMShellSetCreateMatrix(*shell, CreateMatrix)); in MyDMShellCreate() 42 PetscCall(DMShellSetCreateGlobalVector(*shell, CreateGlobalVector)); in MyDMShellCreate() 43 PetscCall(DMShellSetCreateLocalVector(*shell, CreateLocalVector)); in MyDMShellCreate() 44 PetscCall(DMShellSetRefine(*shell, Refine)); in MyDMShellCreate() 45 PetscCall(DMShellSetCoarsen(*shell, Coarsen)); in MyDMShellCreate() 46 PetscCall(DMShellSetCreateInterpolation(*shell, CreateInterpolation)); in MyDMShellCreate() 47 PetscCall(DMShellSetCreateRestriction(*shell, CreateRestriction)); in MyDMShellCreate() [all …]
|
| H A D | ex15.c | 43 SampleShellPC *shell; /* user-defined preconditioner context */ in main() local 168 PetscCall(SampleShellPCCreate(&shell)); in main() 172 PetscCall(PCShellSetContext(pc, shell)); in main() 240 PetscErrorCode SampleShellPCCreate(SampleShellPC **shell) in SampleShellPCCreate() argument 247 *shell = newctx; in SampleShellPCCreate() 271 SampleShellPC *shell; in SampleShellPCSetUp() local 275 PetscCall(PCShellGetContext(pc, &shell)); in SampleShellPCSetUp() 280 shell->diag = diag; in SampleShellPCSetUp() 302 SampleShellPC *shell; in SampleShellPCApply() local 305 PetscCall(PCShellGetContext(pc, &shell)); in SampleShellPCApply() [all …]
|
| /petsc/src/ksp/pc/impls/shell/ |
| H A D | shellpc.c | 89 PC_Shell *shell = (PC_Shell *)pc->data; in PCShellSetContext() local 95 if (flg) shell->ctx = ctx; in PCShellSetContext() 101 PC_Shell *shell = (PC_Shell *)pc->data; in PCSetUp_Shell() local 104 …PetscCheck(shell->setup, PetscObjectComm((PetscObject)pc), PETSC_ERR_USER, "No setup() routine pro… in PCSetUp_Shell() 105 PetscCallBack("PCSHELL callback setup", (*shell->setup)(pc)); in PCSetUp_Shell() 111 PC_Shell *shell = (PC_Shell *)pc->data; in PCApply_Shell() local 115 …PetscCheck(shell->apply, PetscObjectComm((PetscObject)pc), PETSC_ERR_USER, "No apply() routine pro… in PCApply_Shell() 117 PetscCallBack("PCSHELL callback apply", (*shell->apply)(pc, x, y)); in PCApply_Shell() 126 PC_Shell *shell = (PC_Shell *)pc->data; in PCMatApply_Shell() local 130 …PetscCheck(shell->matapply, PetscObjectComm((PetscObject)pc), PETSC_ERR_USER, "No apply() routine … in PCMatApply_Shell() [all …]
|
| /petsc/share/petsc/ |
| H A D | Makefile.user | 45 CFLAGS_OTHER := $(shell pkg-config --cflags-only-other $(PACKAGES)) 46 CFLAGS := $(shell pkg-config --variable=cflags_extra $(PACKAGES)) $(CFLAGS_OTHER) 47 CXXFLAGS := $(shell pkg-config --variable=cxxflags_extra $(PACKAGES)) $(CFLAGS_OTHER) 48 FFLAGS := $(shell pkg-config --variable=fflags_extra $(PACKAGES)) 49 CPPFLAGS := $(shell pkg-config --cflags-only-I $(PACKAGES)) 51 CC := $(shell pkg-config --variable=ccompiler $(PACKAGES)) 52 CXX := $(shell pkg-config --variable=cxxcompiler $(PACKAGES)) 53 FC := $(shell pkg-config --variable=fcompiler $(PACKAGES)) 54 LDFLAGS := $(shell pkg-config --libs-only-L --libs-only-other $(PACKAGES)) $(shell pkg-config --var… 55 LDFLAGS += $(patsubst -L%, $(shell pkg-config --variable=ldflag_rpath $(PACKAGES))%, $(shell pkg-co… [all …]
|
| /petsc/src/dm/impls/shell/ |
| H A D | dmshell.c | 36 DM_Shell *shell = (DM_Shell *)dm->data; in DMGlobalToLocalBeginDefaultShell() local 39 …PetscCheck(shell->gtol, ((PetscObject)dm)->comm, PETSC_ERR_ARG_WRONGSTATE, "Cannot be used without… in DMGlobalToLocalBeginDefaultShell() 40 PetscCall(VecScatterBegin(shell->gtol, g, l, mode, SCATTER_FORWARD)); in DMGlobalToLocalBeginDefaultShell() 60 DM_Shell *shell = (DM_Shell *)dm->data; in DMGlobalToLocalEndDefaultShell() local 63 …PetscCheck(shell->gtol, ((PetscObject)dm)->comm, PETSC_ERR_ARG_WRONGSTATE, "Cannot be used without… in DMGlobalToLocalEndDefaultShell() 64 PetscCall(VecScatterEnd(shell->gtol, g, l, mode, SCATTER_FORWARD)); in DMGlobalToLocalEndDefaultShell() 87 DM_Shell *shell = (DM_Shell *)dm->data; in DMLocalToGlobalBeginDefaultShell() local 90 …PetscCheck(shell->ltog, ((PetscObject)dm)->comm, PETSC_ERR_ARG_WRONGSTATE, "Cannot be used without… in DMLocalToGlobalBeginDefaultShell() 91 PetscCall(VecScatterBegin(shell->ltog, l, g, mode, SCATTER_FORWARD)); in DMLocalToGlobalBeginDefaultShell() 111 DM_Shell *shell = (DM_Shell *)dm->data; in DMLocalToGlobalEndDefaultShell() local [all …]
|
| /petsc/src/snes/linesearch/impls/shell/ |
| H A D | linesearchshell.c | 51 SNESLineSearch_Shell *shell = (SNESLineSearch_Shell *)linesearch->data; in SNESLineSearchShellSetApply() local 57 shell->ctx = ctx; in SNESLineSearchShellSetApply() 58 shell->func = func; in SNESLineSearchShellSetApply() 83 SNESLineSearch_Shell *shell = (SNESLineSearch_Shell *)linesearch->data; in SNESLineSearchShellGetApply() local 91 if (func) *func = shell->func; in SNESLineSearchShellGetApply() 92 if (ctx) *(void **)ctx = shell->ctx; in SNESLineSearchShellGetApply() 99 SNESLineSearch_Shell *shell = (SNESLineSearch_Shell *)linesearch->data; in SNESLineSearchApply_Shell() local 103 …PetscCheck(shell->func, PetscObjectComm((PetscObject)linesearch), PETSC_ERR_USER, "SNESLineSearchS… in SNESLineSearchApply_Shell() 104 PetscCall((*shell->func)(linesearch, shell->ctx)); in SNESLineSearchApply_Shell() 110 SNESLineSearch_Shell *shell = (SNESLineSearch_Shell *)linesearch->data; in SNESLineSearchDestroy_Shell() local [all …]
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | runjobs.py | 33 check_output(r'git diff-index --quiet HEAD --', shell=True) 40 check_output('git fetch', shell=True).decode('utf-8') 41 branch = check_output('git rev-parse --abbrev-ref HEAD', shell=True).decode('utf-8').strip() 42 …base = check_output('git merge-base ' + branch + ' remotes/origin/' + branch, shell=True).decode… 43 aref = check_output('git rev-parse ' + branch, shell=True).decode('utf-8').strip() 44 …bref = check_output('git rev-parse remotes/origin/' + branch, shell=True).decode('utf-8').strip() 61 …try: commit = check_output('git rev-list -1 HEAD .gitlab-ci.yml', shell=True).decode('utf-8').stri… 119 output = check_output('git add .gitlab-ci.yml', shell=True) 121 …DRAFT: CI: Temporary commit, remove before merge! Runs only jobs: '+' '.join(jobs)+'"', shell=True) 123 … commit, remove before merge! Runs all jobs immediately, no unpause needed at GitLab"', shell=True) [all …]
|
| H A D | generateetags.py | 76 …ss.run('etags -a -o '+etagfile+' '+' '.join(frlist), capture_output = True, shell=True, check=True) 87 …=yes --langmap=c:+.cu -I PeNS,PeOP -a -f '+ctagfile+' '+' '.join(frlist), shell=True, stdout=DEVNU… 89 …status = subprocess.call('/usr/local/bin/ctags -a -f '+ctagfile+' '+' '.join(frlist), shell=True, … 91 …status = subprocess.call('ctags -a -f '+ctagfile+' '+' '.join(frlist), shell=True, stdout=DEVNULL,… 183 …-v \(^\(systems/\|share/petsc/datafiles/\)\|/output/\|\.\(png\|pdf\|ps\|ppt\|jpg\)$\)', shell=True)
|
| /petsc/src/snes/impls/shell/ |
| H A D | snesshell.c | 89 SNES_Shell *shell = (SNES_Shell *)snes->data; in SNESShellSetContext() local 95 if (flg) shell->ctx = ctx; in SNESShellSetContext() 101 SNES_Shell *shell = (SNES_Shell *)snes->data; in SNESSolve_Shell() local 104 …PetscCheck(shell->solve, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_WRONGSTATE, "Must call … in SNESSolve_Shell() 106 PetscCall((*shell->solve)(snes, snes->vec_sol)); in SNESSolve_Shell() 112 SNES_Shell *shell = (SNES_Shell *)snes->data; in SNESShellSetSolve_Shell() local 115 shell->solve = solve; in SNESShellSetSolve_Shell() 129 SNES_Shell *shell; in SNESCreate_Shell() local 142 PetscCall(PetscNew(&shell)); in SNESCreate_Shell() 143 snes->data = (void *)shell; in SNESCreate_Shell()
|
| /petsc/src/tao/shell/ |
| H A D | taoshell.c | 28 Tao_Shell *shell = (Tao_Shell *)tao->data; in TaoShellSetSolve() local 32 shell->solve = solve; in TaoShellSetSolve() 88 Tao_Shell *shell = (Tao_Shell *)tao->data; in TaoShellSetContext() local 94 if (flg) shell->ctx = ctx; in TaoShellSetContext() 100 Tao_Shell *shell = (Tao_Shell *)tao->data; in TaoSolve_Shell() local 103 …PetscCheck(shell->solve, PetscObjectComm((PetscObject)tao), PETSC_ERR_ARG_WRONGSTATE, "Must call T… in TaoSolve_Shell() 105 PetscCall((*shell->solve)(tao)); in TaoSolve_Shell() 143 Tao_Shell *shell; in TaoCreate_Shell() local 154 PetscCall(PetscNew(&shell)); in TaoCreate_Shell() 155 tao->data = (void *)shell; in TaoCreate_Shell()
|
| /petsc/src/ksp/ksp/tests/ |
| H A D | ex45.c | 16 DM shell; in main() local 31 PetscCall(DMShellCreate(c, &shell)); in main() 32 PetscCall(DMSetFromOptions(shell)); in main() 33 PetscCall(DMSetUp(shell)); in main() 34 PetscCall(KSPSetDM(ksp, shell)); in main() 41 PetscCall(DMDestroy(&shell)); in main()
|
| /petsc/src/binding/petsc4py/demo/legacy/poisson3d/ |
| H A D | poisson3d.c | 14 Del2Mat shell; in main() local 36 shell.N = n; in main() 37 PetscMalloc((n+2)*(n+2)*(n+2)*sizeof(PetscScalar),&shell.F); in main() 38 PetscMemzero(shell.F, (n+2)*(n+2)*(n+2)*sizeof(PetscScalar)); in main() 39 MatShellSetContext(A, &shell); in main() 60 PetscFree(shell.F); in main()
|
| /petsc/src/dm/field/impls/shell/ |
| H A D | dmfieldshell.c | 23 DMField_Shell *shell = (DMField_Shell *)field->data; in DMFieldDestroy_Shell() local 26 if (shell->destroy) PetscCall((*shell->destroy)(field)); in DMFieldDestroy_Shell() 179 DMField_Shell *shell = (DMField_Shell *)field->data; in DMFieldShellSetDestroy() local 183 shell->destroy = destroy; in DMFieldShellSetDestroy() 242 DMField_Shell *shell; in DMFieldCreate_Shell() local 245 PetscCall(PetscNew(&shell)); in DMFieldCreate_Shell() 246 field->data = shell; in DMFieldCreate_Shell() 254 DMField_Shell *shell; in DMFieldCreateShell() local 262 shell = (DMField_Shell *)b->data; in DMFieldCreateShell() 263 shell->ctx = ctx; in DMFieldCreateShell()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex21.c | 130 PetscBool shell; /* Use DMShell to wrap sections */ member 141 …nsBool("-shell", "Use DMShell to wrap sections", "ex12.c", options->shell, &options->shell, NULL)); in ProcessOptions() 252 if (user.shell) { in main() 268 if (user.shell) { in main() 313 if (user.shell) { in main() 388 if (user.shell) { in main() 422 if (user.shell) { in main() 437 if (user.shell) { in main() 448 if (user.shell) { in main() 463 if (user.shell) { in main()
|
| /petsc/src/ksp/pc/impls/eisens/ |
| H A D | eisen.c | 10 Mat shell, A; member 87 pc->mat = eis->shell; in PCPreSolve_Eisenstat() 132 PetscCall(MatDestroy(&eis->shell)); in PCReset_Eisenstat() 195 PetscCall(MatCreate(PetscObjectComm((PetscObject)pc), &eis->shell)); in PCSetUp_Eisenstat() 196 PetscCall(MatSetSizes(eis->shell, m, n, M, N)); in PCSetUp_Eisenstat() 197 PetscCall(MatSetType(eis->shell, MATSHELL)); in PCSetUp_Eisenstat() 198 PetscCall(MatSetUp(eis->shell)); in PCSetUp_Eisenstat() 199 PetscCall(MatShellSetContext(eis->shell, pc)); in PCSetUp_Eisenstat() 200 PetscCall(MatShellSetOperation(eis->shell, MATOP_MULT, (PetscErrorCodeFn *)PCMult_Eisenstat)); in PCSetUp_Eisenstat() 201 …if (set && sym) PetscCall(MatShellSetOperation(eis->shell, MATOP_MULT_TRANSPOSE, (PetscErrorCodeFn… in PCSetUp_Eisenstat() [all …]
|
| /petsc/src/dm/partitioner/tests/output/ |
| H A D | ex33_shell_nsize-1_nparts-1.out | 2 type: shell 16 type: shell 34 type: shell
|
| H A D | ex33_shell_nsize-1_nparts-2.out | 2 type: shell 17 type: shell 36 type: shell
|
| H A D | ex33_shell_nsize-1_nparts-3.out | 2 type: shell 18 type: shell 38 type: shell
|
| H A D | ex33_shell_nsize-2_nparts-1.out | 2 type: shell 19 type: shell 40 type: shell
|
| H A D | ex33_shell_nsize-2_nparts-2.out | 2 type: shell 21 type: shell 44 type: shell
|
| H A D | ex33_shell_nsize-2_nparts-3.out | 2 type: shell 23 type: shell 48 type: shell
|
| H A D | ex33_shell_nsize-3_nparts-2.out | 2 type: shell 25 type: shell 52 type: shell
|
| /petsc/src/binding/petsc4py/demo/legacy/ode/ |
| H A D | vanderpol.py | 185 shell = IJacShell(ode) variable 186 Jim.setPythonContext(shell) 192 shell = IJacPShell(ode) variable 193 JimP.setPythonContext(shell) 199 shell = JacShell(ode) variable 200 Jex.setPythonContext(shell) 206 shell = JacPShell(ode) variable 207 JexP.setPythonContext(shell)
|