Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 110) sorted by relevance

12345

/petsc/share/petsc/saws/js/
H A Ddefaults.js7 var ret = new Object();
11 ret.pc_type = "fieldsplit";
15 ret.pc_type = "icc";
18 ret.ksp_type = "minres";
21 ret.ksp_type = "cg";
26 ret.pc_type = "bjacobi";
27 ret.ksp_type = "gmres";
34 ret = { variable
41 ret.sub_pc_type = "fieldsplit";
45 ret = { variable
[all …]
H A DmatrixTex.js27 var ret = "";
38ret += "\\color{"+color+"}" + "\\left[" + "\\color{black}" + "\\begin{array}{"+justify+"}";//begin…
42 ret += "* & ";
49 ret += getMatrixTex(data, childEndtag);
52 ret += "A_{" + subscript + "}";
56 ret += "& *";
58 ret += "\\\\"; //add the backslash indicating the next matrix row
61 ret += "\\end{array}\\right]";//close the matrix
62 return ret;
78 var ret = "";//returned value
[all …]
H A DgetCmdOptions.js17 var ret = "";
22 ret += "-" + prefix + "pc_type " + data[endtag].pc_type + endl;
23 ret += "-" + prefix + "ksp_type " + data[endtag].ksp_type + endl;
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;
37 ret += "-" + prefix + "pc_fieldsplit_blocks " + data[endtag].pc_fieldsplit_blocks + endl;
40 ret += "-" + prefix + "pc_bjacobi_blocks " + data[endtag].pc_bjacobi_blocks + endl;
[all …]
H A DdrawDiagrams.js19 var ret = "";
39ret += "<polygon points=\""+x+","+y+" "+(x+400)+","+y+" "+(x+400)+","+(y+400)+" "+x+","+(y+400)+"\…
47 var ret = "";
59ret += "<polygon points=\""+curr_x+","+curr_y+" "+(curr_x+side)+","+curr_y+" "+(curr_x+side)+","+(…
65ret += drawFieldsplit(data,childEndtag, level+1, targetEndtag, curr_x, curr_y, size/numChildren);
71ret += "<image x=\""+(x+size+20)+"\" y=\""+(y+i*side+side/2-13)+"\" width=\"146\" height=\"26\" xl…
72 ret += possible;
84ret += "<circle cx=\""+x_coord+"\" cy=\"" + y_coord + "\" r=\"2\" stroke=\"black\" stroke-width=\"…
87 return ret;
89 ret += drawFieldsplit(data,endtag,0,targetEndtag,x,y,400);
[all …]
H A DboxTree.js23 var ret = ""; //the svg code to return
49ret += getCurve(x + visualLoc.x, y + visualLoc.y, x+text_size.width+data[endtag].indentations[i]+d…
52ret += getBoxTree(data, childEndtag, x+text_size.width+data[endtag].indentations[i], y+elapsedDist…
58ret += getCurve(x + visualLoc.x, y + visualLoc.y, x+elapsedDist+data[childEndtag].visual_loc.x, y+…
61ret += getBoxTree(data, childEndtag, x+elapsedDist, y+text_size.height+data[endtag].indentations[i…
72ret += "<circle id=\"" + "node" + endtag + "\" cx=\"" + (x + visualLoc.x) + "\" cy=\"" + (y + visu…
78ret += "<text x=\"" + (x + visualLoc.x + 1.2*node_radius) + "\" y=\"" + (y + visualLoc.y + 2*node_…
81 return ret;
88 var ret = new Object();
89ret.width = 100;//70 is enough for chrome, but svg font in safari/firefox shows up bigger so we …
[all …]
H A DparsePrefix.js62 var ret = new Object();
63 ret.endtag = endtag;
64 ret.newWord = newWord;
66 return ret;
/petsc/lib/petsc/bin/maint/
H A Dcheck_header_guard.py35 def _strip_empty_lines(self, idx: int, ret: list[str]) -> list[str]:
50 while ret and not ret[idx].strip():
51 entry = ret.pop(idx)
54 return ret
57 def prologue(self, ret: Sequence[str]) -> list[str]:
70 return self._strip_empty_lines(0, ret)
73 def replace(self, last_line: str, line: str, ret: list[str]) -> list[str]:
74 return ret
77 def epilogue(self, last_endif: int, ret: list[str]) -> list[str]:
92 return self._strip_empty_lines(-1, ret)
[all …]
/petsc/include/petsc/private/
H A Dhashset.h68 int ret; \
74 ret = kh_resize(HashT, *hd, kh_size(ht)); \
75 PetscHashAssert(ret == 0); \
77 kh_put(HashT, *hd, key, &ret); \
78 PetscHashAssert(ret >= 0); \
84 int ret; \
90 kh_put(HashT, ht, key, &ret); \
91 PetscHashAssert(ret >= 0); \
105 int ret; \
108 ret = kh_resize(HashT, ht, (khint_t)nb); \
[all …]
H A Dhashmapijv.h34 int ret; in PetscHMapIJVQueryAdd() local
39 iter = kh_put(HMapIJV, ht, key, &ret); in PetscHMapIJVQueryAdd()
40 PetscHashAssert(ret >= 0); in PetscHMapIJVQueryAdd()
41 if (ret) kh_val(ht, iter) = val; in PetscHMapIJVQueryAdd()
43 *missing = ret ? PETSC_TRUE : PETSC_FALSE; in PetscHMapIJVQueryAdd()
H A Dviewerhdf5impl.h27 #define PetscCallHDF5ReturnNoCheck(ret, func, args) \ argument
30 ret = func args; \
34 #define PetscCallHDF5Return(ret, func, args) \ argument
36 PetscCallHDF5ReturnNoCheck(ret, func, args); \
37 …PetscCheck(ret >= 0, PETSC_COMM_SELF, PETSC_ERR_LIB, "Error in HDF5 call %s() Status %d", #func, (…
H A Dhashmapiv.h30 int ret; in PetscHMapIVAddValue() local
35 iter = kh_put(HMapIV, ht, key, &ret); in PetscHMapIVAddValue()
36 PetscHashAssert(ret >= 0); in PetscHMapIVAddValue()
37 if (ret) kh_val(ht, iter) = val; in PetscHMapIVAddValue()
H A Dhashmap.h108 int ret; \
116 ret = kh_resize(HashT, *hd, kh_size(ht)); \
117 PetscHashAssert(ret == 0); \
120 i = kh_put(HashT, *hd, key, &ret); \
121 PetscHashAssert(ret >= 0); \
136 int ret; \
139 ret = kh_resize(HashT, ht, (khint_t)nb); \
140 PetscHashAssert(ret >= 0); \
203 int ret; \
207 iter = kh_put(HashT, ht, key, &ret); \
[all …]
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/
H A D_util.py97 ret: list[str] = fd.readlines()
98 return ret
181 ret = [
189 ret.append('Arguments: '+' '.join([a.displayname for a in cursor.get_arguments()]))
193 ret.append(f'Semantic Parent: {cursor.semantic_parent.displayname}')
197 ret.append(f'Lexical Parent: {cursor.lexical_parent.displayname}')
200 ret.append('Children: '+' '.join([c.spelling for c in cursor.get_children()]))
201 ret.append(get_formatted_source_from_cursor(cursor, num_context=2))
202 ret.append('------------------ AST View: ------------------')
203 ret.extend(view_ast_from_cursor(cursor, **kwargs))
[all …]
H A D_attr_cache.py79 ret = cache[attr] = func(*args, **kwargs)
80 return ret
/petsc/config/BuildSystem/config/
H A Dutil.py56 def examineStderr(self, ret, out, err): argument
57 if ret:
69 ret = self[args] = self.func(*args)
70 return ret
H A Dbase.py138 ret = test(*args,**kargs)
140 return ret
487 …(out, err, ret) = Configure.executeShellCommand(command, checkCommand = report, timeout = timeout,…
491 return (out, err, ret)
500 (out, err, ret) = self.preprocess(codeStr, timeout = timeout)
502 return not ret and not len(err)
544 (out, err, ret) = Configure.executeShellCommand(command, checkCommand = report, log = self.log)
550 return (out, err, ret)
586 … None, codeEnd = None, shared = 0, linkLanguage=None, examineOutput=lambda ret,out,err:None,flag='…
589 …(out, err, ret) = self.outputCompile(includes, body, cleanup = 0, codeBegin = codeBegin, codeEnd =…
[all …]
/petsc/src/dm/impls/forest/p4est/
H A Dpetsc_p4est_package.h25 #define PetscCallP4estReturn(ret, func, args) \ argument
31 ret = func args; \
42 #define PetscCallP4estReturn(ret, func, args) \ argument
45 ret = func args; \
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/
H A D_utility.py37 ret = traceback.format_exception(etype, value, tb, chain=True)
40 ret = traceback.format_exception(exc, chain=True) # type: ignore [call-arg, arg-type]
41 return ret
45 def subprocess_check_returncode(ret: subprocess.CompletedProcess[_T]) -> subprocess.CompletedProces…
64 ret.check_returncode()
75 return ret
102 ret = subprocess.run(*args, capture_output=True, universal_newlines=True, **kwargs)
104 ret = subprocess_check_returncode(ret)
105 return ret
/petsc/src/sys/mpiuni/
H A Dmpi.c218 int ret; in MPI_Comm_free_keyval() local
221 if ((ret = MPI_Attr_dereference_keyval(*keyval))) return ret; in MPI_Comm_free_keyval()
228 int idx = CommIdx(comm), ret; in MPI_Comm_set_attr() local
232 if ((ret = MPI_Comm_delete_attr(comm, keyval))) return ret; in MPI_Comm_set_attr()
233 if ((ret = MPI_Attr_reference_keyval(keyval))) return ret; in MPI_Comm_set_attr()
245 int ret; in MPI_Comm_delete_attr() local
251 …if ((ret = (*attr_keyval[keyval].del)(comm, keyval, save_attribute_val, attr_keyval[keyval].extra_… in MPI_Comm_delete_attr()
253 if ((ret = MPI_Attr_dereference_keyval(keyval))) return ret; in MPI_Comm_delete_attr()
328 int ret = MPI_Comm_delete_attr(*comm, i); in MPI_Comm_free() local
330 if (ret) return ret; in MPI_Comm_free()
[all …]
/petsc/config/BuildSystem/config/packages/
H A Dmpi4py.py55 …output,err,ret = config.base.Configure.executeShellCommand(cleancmd, cwd=self.packageDir, checkC…
56 if ret: raise RuntimeError('Error cleaning mpi4py. Check configure.log')
66 …output,err,ret = config.base.Configure.executeShellCommand(buildcmd, cwd=self.packageDir, checkCo…
67 if ret: raise RuntimeError('Error building mpi4py. Check configure.log')
71 …output,err,ret = config.base.Configure.executeShellCommand(installcmd, cwd=self.packageDir,checkC…
72 if ret: raise RuntimeError('Error installing mpi4py. Check configure.log')
/petsc/include/
H A Dpetscbt.h74 const PetscByte ret = PetscBTLookup(array, index); in PetscBTLookupSet() local
76 return ret; in PetscBTLookupSet()
81 const PetscByte ret = PetscBTLookup(array, index); in PetscBTLookupClear() local
83 return ret; in PetscBTLookupClear()
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/
H A Dqueue_main.py63 ret = cmd_queue.get()
64 assert isinstance(ret, ParallelPool.SendPacket)
65 if ret.type == WorkerPoolBase.QueueSignal.EXIT_QUEUE:
67 if ret.type == WorkerPoolBase.QueueSignal.FILE_PATH:
68 filename = ret.data
H A Dmain.py269 ret = ReturnCode.SUCCESS
277 ret |= ReturnCode.ERROR_WERROR
283 ret |= ReturnCode.ERROR_ERROR_FIXED
289 ret |= ReturnCode.ERROR_ERROR_LEFT
293 if ret == ReturnCode.ERROR_ERROR_FIXED:
295 ret = ReturnCode.SUCCESS
302 assert ret != ReturnCode.SUCCESS
303 return int(ret)
384 ret = 0
386 ret = int(v)
[all …]
H A Dpkg_consistency_checks.py76 ret: list[str] = []
81 ret.append(lstrp)
82 return ret
/petsc/src/sys/tests/
H A Dex64.cxx33 std::size_t ret = 0; \
34 hash_combine(ret, __VA_ARGS__); \
35 return ret; \
65 std::string ret; in operator <<() local
68 PetscCallAbort(PETSC_COMM_SELF, f.to_string(ret)); in operator <<()
69 oss << ret; in operator <<()
100 std::string ret; in operator <<() local
103 PetscCallAbort(PETSC_COMM_SELF, b.to_string(ret)); in operator <<()
104 oss << ret; in operator <<()
240 const auto check_reinsert = [&](const char op[], const insert_return_type &ret) { in test_insert() argument
[all …]

12345