| /petsc/src/ksp/ksp/impls/hpddm/ |
| H A D | hpddm.cxx | 29 KSP_HPDDM *data = (KSP_HPDDM *)ksp->data; in KSPSetFromOptions_HPDDM() local 35 …i = (data->cntl[0] == static_cast<char>(PETSC_DECIDE) ? HPDDM_KRYLOV_METHOD_GMRES : data->cntl[0]); in KSPSetFromOptions_HPDDM() 38 data->cntl[0] = i; in KSPSetFromOptions_HPDDM() 39 …s are stored", "KSPHPDDM", PetscPrecisionTypes, (PetscEnum)data->precision, (PetscEnum *)&data->pr… in KSPSetFromOptions_HPDDM() 40 …data->precision != PETSC_PRECISION___FLOAT128 || PetscDefined(HAVE_REAL___FLOAT128), PetscObjectCo… in KSPSetFromOptions_HPDDM() 41 …data->precision - PETSC_SCALAR_PRECISION) <= 1, PetscObjectComm((PetscObject)ksp), PETSC_ERR_SUP, … in KSPSetFromOptions_HPDDM() 42 …data->precision != PETSC_PRECISION_INVALID && data->precision != PETSC_PRECISION_BFLOAT16, PetscOb… in KSPSetFromOptions_HPDDM() 44 if (data->cntl[0] != HPDDM_KRYLOV_METHOD_NONE) { in KSPSetFromOptions_HPDDM() 45 if (data->cntl[0] != HPDDM_KRYLOV_METHOD_BCG && data->cntl[0] != HPDDM_KRYLOV_METHOD_BFBCG) { in KSPSetFromOptions_HPDDM() 46 i = (data->cntl[1] == static_cast<char>(PETSC_DECIDE) ? HPDDM_VARIANT_LEFT : data->cntl[1]); in KSPSetFromOptions_HPDDM() [all …]
|
| /petsc/share/petsc/saws/js/ |
| H A D | boxTree.js | 18 function getBoxTree(data, endtag, x, y) { argument 20 if(data[endtag] == undefined) 24 var numChildren = getNumChildren(data,endtag); 25 var pc_type = data[endtag].pc_type; 27 var total_size = data[endtag].total_size; 28 var text_size = getTextSize(data,endtag); 31 var visualLoc = data[endtag].visual_loc; 33 var description = getSimpleDescription(data,endtag); 42 if(data[childEndtag] == undefined) 45 var childTotalSize = data[childEndtag].total_size; [all …]
|
| H A D | recordSawsData.js | 3 function recordSawsData(data, sub) { argument 5 …AWs_ROOT_DIRECTORY.directories.PETSc.directories.Options.variables._title.data == "Preconditioner … 6 …irectories.SAWs_ROOT_DIRECTORY.directories.PETSc.directories.Options.variables["-pc_type"].data[0]; 8 ….directories.SAWs_ROOT_DIRECTORY.directories.PETSc.directories.Options.variables["prefix"].data[0]; 14 var parsedInfo = parsePrefix(data, SAWs_prefix); 18 if(data[endtag] == undefined) 19 data[endtag] = new Object(); 21 data[endtag].pc_type = SAWs_pcVal; 22 data[endtag].pc_type_alternatives = SAWs_alternatives.slice(); //deep copy of alternatives 25 …data[endtag].pc_bjacobi_blocks = sub.directories.SAWs_ROOT_DIRECTORY.directories.PETSc.directories… [all …]
|
| H A D | getCmdOptions.js | 4 function getCmdOptions(data,endtag,prefix,option) argument 19 if(data[endtag] == undefined) 22 ret += "-" + prefix + "pc_type " + data[endtag].pc_type + endl; 23 ret += "-" + prefix + "ksp_type " + data[endtag].ksp_type + endl; 25 var pc_type = data[endtag].pc_type; 28 ret += "-" + prefix + "pc_mg_type " + data[endtag].pc_mg_type + endl; 29 ret += "-" + prefix + "pc_mg_levels " + data[endtag].pc_mg_levels + endl; 32 ret += "-" + prefix + "pc_gamg_type " + data[endtag].pc_gamg_type + endl; 33 ret += "-" + prefix + "pc_gamg_levels " + data[endtag].pc_gamg_levels + endl; 36 ret += "-" + prefix + "pc_fieldsplit_type " + data[endtag].pc_fieldsplit_type + endl; [all …]
|
| H A D | drawDiagrams.js | 5 function drawDiagrams(data,endtag,targetEndtag,x,y) { argument 7 if(data["0"].x_extreme == undefined) 8 data["0"].x_extreme = 0; 9 if(data["0"].y_extreme == undefined) 10 data["0"].y_extreme = 0; 12 var numChildren = getNumChildren(data,endtag); 21 if(data[endtag].pc_type == "fieldsplit") { 22 if(x+400 > data["0"].x_extreme) 23 data["0"].x_extreme = x+400; 24 if(y+400 > data["0"].y_extreme) [all …]
|
| H A D | PETSc.js | 60 …._title.data == "Preconditioner (PC) options" || sub.directories.SAWs_ROOT_DIRECTORY.directories.P… 62 ….directories.SAWs_ROOT_DIRECTORY.directories.PETSc.directories.Options.variables["prefix"].data[0]; 68 var data = drawDiagrams(sawsInfo,"0",parsePrefix(sawsInfo,SAWs_prefix).endtag,5,5); 70 if(data != "") { 72 …\" viewBox=\"0 0 " + sawsInfo["0"].x_extreme + " " +sawsInfo["0"].y_extreme + "\">"+data+"</svg>"); 82 …Property("__Block") && (sub.directories.SAWs_ROOT_DIRECTORY.variables.__Block.data[0] == "true")) { 89 sub.directories.SAWs_ROOT_DIRECTORY.variables.__Block.data = ["false"]; 97 sub.directories.SAWs_ROOT_DIRECTORY.variables.__Block.data = ["false"]; 98 …ROOT_DIRECTORY.directories.PETSc.directories.Options.variables.StopAsking.data = ["true"];//this i… 132 if(vKey.indexOf("prefix") != -1 && sub[key].variables[vKey].data[0] == "(null)") [all …]
|
| H A D | matrixTex.js | 6 function getMatrixTex(data, endtag) { argument 8 if(data[endtag] == undefined) 12 if(!data[endtag].logstruc) { 29 var blocks = data[endtag].pc_fieldsplit_blocks; 47 var childTex = getMatrixTex(data, childEndtag); 49 ret += getMatrixTex(data, childEndtag); 71 function getSpecificMatrixTex(data, endtag) { argument 80 if(data[endtag] == undefined) //invalid matrix 83 var pc = data[endtag].pc_type; 84 var ksp = data[endtag].ksp_type; [all …]
|
| H A D | utils.js | 2 function getEndtagByName(data,name,parent) { argument 4 for (var key in data) { 5 if (data.hasOwnProperty(key)) { 6 if(data[key].name == name && key.indexOf(parent) == 0) 14 function getNumChildren(data,parent) { argument 19 for (var key in data) { 20 if (data.hasOwnProperty(key)) {
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | arraynpy.pxi | 107 cdef inline ndarray array_i(PetscInt size, const PetscInt* data): argument 110 if data != NULL: 111 memcpy(PyArray_DATA(ary), data, <size_t>size*sizeof(PetscInt)) 114 cdef inline ndarray array_r(PetscInt size, const PetscReal* data): argument 117 if data != NULL: 118 memcpy(PyArray_DATA(ary), data, <size_t>size*sizeof(PetscReal)) 121 cdef inline ndarray array_b(PetscInt size, const PetscBool* data): argument 124 if data != NULL: 125 memcpy(PyArray_DATA(ary), data, <size_t>size*sizeof(PetscBool)) 128 cdef inline ndarray array_s(PetscInt size, const PetscScalar* data): argument [all …]
|
| /petsc/src/dm/dt/dualspace/impls/lagrange/tests/output/ |
| H A D | ex1_3_simplex_discontinuous_full.out | 9 Interior data is the same as all data 18 Interior data is the same as all data 25 Interior data is the same as all data 34 Interior data is the same as all data 43 Interior data is the same as all data 50 Interior data is the same as all data 68 Interior data is the same as all data 86 Interior data is the same as all data 96 Interior data is the same as all data 114 Interior data is the same as all data [all …]
|
| H A D | ex1_3_wedge_discontinuous_full.out | 9 Interior data is the same as all data 18 Interior data is the same as all data 25 Interior data is the same as all data 34 Interior data is the same as all data 43 Interior data is the same as all data 50 Interior data is the same as all data 74 Interior data is the same as all data 98 Interior data is the same as all data 110 Interior data is the same as all data 134 Interior data is the same as all data [all …]
|
| H A D | ex1_3_tensor_discontinuous_full.out | 9 Interior data is the same as all data 18 Interior data is the same as all data 25 Interior data is the same as all data 34 Interior data is the same as all data 43 Interior data is the same as all data 50 Interior data is the same as all data 80 Interior data is the same as all data 110 Interior data is the same as all data 124 Interior data is the same as all data 154 Interior data is the same as all data [all …]
|
| H A D | ex1_3_wedge_discontinuous_trimmed.out | 11 Interior data is the same as all data 26 Interior data is the same as all data 38 Interior data is the same as all data 53 Interior data is the same as all data 64 Interior data is the same as all data 71 Interior data is the same as all data 102 Interior data is the same as all data 144 Interior data is the same as all data 168 Interior data is the same as all data 210 Interior data is the same as all data [all …]
|
| H A D | ex1_3_simplex_discontinuous_trimmed.out | 10 Interior data is the same as all data 22 Interior data is the same as all data 32 Interior data is the same as all data 44 Interior data is the same as all data 54 Interior data is the same as all data 61 Interior data is the same as all data 82 Interior data is the same as all data 108 Interior data is the same as all data 124 Interior data is the same as all data 150 Interior data is the same as all data [all …]
|
| H A D | ex1_3_tensor_discontinuous_trimmed.out | 12 Interior data is the same as all data 30 Interior data is the same as all data 44 Interior data is the same as all data 62 Interior data is the same as all data 74 Interior data is the same as all data 81 Interior data is the same as all data 123 Interior data is the same as all data 183 Interior data is the same as all data 216 Interior data is the same as all data 276 Interior data is the same as all data [all …]
|
| /petsc/src/snes/impls/al/ |
| H A D | al.c | 43 SNES_NEWTONAL *al = (SNES_NEWTONAL *)snes->data; in SNESNewtonALCheckArcLength() 66 SNES_NEWTONAL *al = (SNES_NEWTONAL *)snes->data; in SNESNewtonALSetCorrectionType_NEWTONAL() 100 SNES_NEWTONAL *al = (SNES_NEWTONAL *)snes->data; in SNESNewtonALSetFunction_NEWTONAL() 139 SNES_NEWTONAL *al = (SNES_NEWTONAL *)snes->data; in SNESNewtonALGetFunction_NEWTONAL() 174 al = (SNES_NEWTONAL *)snes->data; in SNESNewtonALGetLoadParameter_NEWTONAL() 217 al = (SNES_NEWTONAL *)snes->data; in SNESNewtonALComputeFunction_NEWTONAL() 285 SNES_NEWTONAL *data = (SNES_NEWTONAL *)snes->data; in SNESSolve_NEWTONAL() local 295 if (data->correction_type == SNES_NEWTONAL_CORRECTION_EXACT) { in SNESSolve_NEWTONAL() 297 } else if (data->correction_type == SNES_NEWTONAL_CORRECTION_NORMAL) { in SNESSolve_NEWTONAL() 301 data->copied_rhs = PETSC_FALSE; in SNESSolve_NEWTONAL() [all …]
|
| /petsc/src/ksp/pc/impls/hpddm/ |
| H A D | pchpddm.cxx | 25 PC_HPDDM *data = (PC_HPDDM *)pc->data; in PCReset_HPDDM() local 28 if (data->levels) { in PCReset_HPDDM() 29 for (PetscInt i = 0; i < PETSC_PCHPDDM_MAXLEVELS && data->levels[i]; ++i) { in PCReset_HPDDM() 30 PetscCall(KSPDestroy(&data->levels[i]->ksp)); in PCReset_HPDDM() 31 PetscCall(PCDestroy(&data->levels[i]->pc)); in PCReset_HPDDM() 32 PetscCall(PetscFree(data->levels[i])); in PCReset_HPDDM() 34 PetscCall(PetscFree(data->levels)); in PCReset_HPDDM() 36 PetscCall(ISDestroy(&data->is)); in PCReset_HPDDM() 37 PetscCall(MatDestroy(&data->aux)); in PCReset_HPDDM() 38 PetscCall(MatDestroy(&data->B)); in PCReset_HPDDM() [all …]
|
| /petsc/src/sys/fileio/ftn-custom/ |
| H A D | zsysiof.c | 78 PETSC_EXTERN void petscbinaryreadint_(int *fd, void *data, PetscInt *num, PetscInt *count, PetscDat… in petscbinaryreadint_() argument 81 *ierr = PetscBinaryRead(*fd, data, *num, count, *type); in petscbinaryreadint_() 85 PETSC_EXTERN void petscbinaryreadreal_(int *fd, void *data, PetscInt *num, PetscInt *count, PetscDa… in petscbinaryreadreal_() argument 88 *ierr = PetscBinaryRead(*fd, data, *num, count, *type); in petscbinaryreadreal_() 92 PETSC_EXTERN void petscbinaryreadcomplex_(int *fd, void *data, PetscInt *num, PetscInt *count, Pets… in petscbinaryreadcomplex_() argument 95 *ierr = PetscBinaryRead(*fd, data, *num, count, *type); in petscbinaryreadcomplex_() 99 PETSC_EXTERN void petscbinaryreadint1_(int *fd, void *data, PetscInt *num, PetscInt *count, PetscDa… in petscbinaryreadint1_() argument 102 *ierr = PetscBinaryRead(*fd, data, *num, count, *type); in petscbinaryreadint1_() 106 PETSC_EXTERN void petscbinaryreadreal1_(int *fd, void *data, PetscInt *num, PetscInt *count, PetscD… in petscbinaryreadreal1_() argument 109 *ierr = PetscBinaryRead(*fd, data, *num, count, *type); in petscbinaryreadreal1_() [all …]
|
| /petsc/src/sys/tests/ |
| H A D | ex55.py | 9 data = numpy.arange(1000, dtype='i') variable 10 comm.Send([data, MPI.INT], dest=1, tag=77) 12 data = numpy.empty(1000, dtype='i') variable 13 comm.Recv([data, MPI.INT], source=0, tag=77) 17 data = numpy.arange(100, dtype=numpy.float64) variable 18 comm.Send(data, dest=1, tag=13) 20 data = numpy.empty(100, dtype=numpy.float64) variable 21 comm.Recv(data, source=0, tag=13)
|
| /petsc/include/petsc/private/ |
| H A D | petscfptimpl.h | 36 PetscFPT data = PetscFPTData; in PetscFPTDestroy() local 39 if (!data) return PETSC_SUCCESS; in PetscFPTDestroy() 40 PetscCallQ(PetscFree(data->functionpointer)); in PetscFPTDestroy() 41 PetscCallQ(PetscFree(data->functionname)); in PetscFPTDestroy() 42 PetscCallQ(PetscFree(data)); in PetscFPTDestroy() 75 static inline PetscErrorCode PetscFPTAdd(void *key, const char *data) in PetscFPTAdd() argument 77 PetscCheck(data, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Null function name"); in PetscFPTAdd() 81 PetscFPTData->functionname[hash] = (char *)data; in PetscFPTAdd() 86 PetscFPTData->functionname[hash] = (char *)data; in PetscFPTAdd() 100 static inline PetscErrorCode PetscFPTFind(void *key, char const **data) in PetscFPTFind() argument [all …]
|
| /petsc/src/sys/yaml/src/ |
| H A D | loader.c | 186 = event->data.document_start.version_directive; in yaml_parser_load_document() 188 = event->data.document_start.tag_directives.start; in yaml_parser_load_document() 190 = event->data.document_start.tag_directives.end; in yaml_parser_load_document() 192 = event->data.document_start.implicit; in yaml_parser_load_document() 246 parser->document->end_implicit = event.data.document_end.implicit; in yaml_parser_load_nodes() 260 yaml_alias_data_t data; in yaml_parser_register_anchor() local 265 data.anchor = anchor; in yaml_parser_register_anchor() 266 data.index = index; in yaml_parser_register_anchor() 267 data.mark = parser->document->nodes.start[index-1].start_mark; in yaml_parser_register_anchor() 275 alias_data->mark, "second occurrence", data.mark); in yaml_parser_register_anchor() [all …]
|
| H A D | yaml_private.h | 507 (token).data.stream_start.encoding = (token_encoding)) 514 (token).data.alias.value = (token_value)) 518 (token).data.anchor.value = (token_value)) 522 (token).data.tag.handle = (token_handle), \ 523 (token).data.tag.suffix = (token_suffix)) 527 (token).data.scalar.value = (token_value), \ 528 (token).data.scalar.length = (token_length), \ 529 (token).data.scalar.style = (token_style)) 533 (token).data.version_directive.major = (token_major), \ 534 (token).data.version_directive.minor = (token_minor)) [all …]
|
| /petsc/src/vec/vec/impls/nest/ |
| H A D | vecnestimpl.h | 20 …PetscCheck(((Vec_Nest *)(x)->data)->setup_called, PetscObjectComm((PetscObject)x), PETSC_ERR_ARG_W… 21 …PetscCheck(((Vec_Nest *)(y)->data)->setup_called, PetscObjectComm((PetscObject)y), PETSC_ERR_ARG_W… 22 …PetscCheck(((Vec_Nest *)(x)->data)->nb == ((Vec_Nest *)(y)->data)->nb, PetscObjectComm((PetscObjec… 35 …PetscCheck(((Vec_Nest *)(x)->data)->setup_called, PetscObjectComm((PetscObject)(x)), PETSC_ERR_ARG… 36 …PetscCheck(((Vec_Nest *)(y)->data)->setup_called, PetscObjectComm((PetscObject)(y)), PETSC_ERR_ARG… 37 …PetscCheck(((Vec_Nest *)(z)->data)->setup_called, PetscObjectComm((PetscObject)(z)), PETSC_ERR_ARG… 38 …PetscCheck(((Vec_Nest *)(x)->data)->nb == ((Vec_Nest *)(y)->data)->nb, PetscObjectComm((PetscObjec… 39 …PetscCheck(((Vec_Nest *)(x)->data)->nb == ((Vec_Nest *)(z)->data)->nb, PetscObjectComm((PetscObjec…
|
| /petsc/src/benchmarks/ |
| H A D | benchmarkAssembly.py | 43 data = [] 47 data.append(sizes) 48 data.append(np.array(events[event])[:,0]) 49 data.append(style) 50 plot(*data) 57 data = [] 61 data.append(sizes) 63 data.append(np.array(events[event])[:,0]/rows/3) 64 data.append(style) 65 plot(*data) [all …]
|
| /petsc/src/mat/impls/transpose/ |
| H A D | htransm.c | 9 void *data; member 14 MatProductCtx_HT *data = *(MatProductCtx_HT **)ptr; in MatProductCtxDestroy_HT() local 18 if (data->data) PetscCall((*data->destroy)(&data->data)); in MatProductCtxDestroy_HT() 19 if (data->conjugate) PetscCall(MatDestroy(&data->B)); in MatProductCtxDestroy_HT() 20 PetscCall(PetscObjectQuery((PetscObject)data->D, "MatProductCtx_HT", (PetscObject *)&container)); in MatProductCtxDestroy_HT() 22 PetscCall(PetscObjectCompose((PetscObject)data->D, "MatProductCtx_HT", NULL)); in MatProductCtxDestroy_HT() 23 PetscCall(PetscFree(data)); in MatProductCtxDestroy_HT() 31 MatProductCtx_HT *data; in MatProductNumeric_HT() local 36 …PetscCheck(D->product->data, PetscObjectComm((PetscObject)D), PETSC_ERR_PLIB, "Product data empty"… in MatProductNumeric_HT() 40 PetscCall(PetscContainerGetPointer(container, &data)); in MatProductNumeric_HT() [all …]
|