Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 119) sorted by relevance

12345

/petsc/src/ksp/ksp/impls/gmres/agmres/
H A Dagmresleja.c6 static PetscErrorCode KSPAGMRESLejafmaxarray(PetscScalar *re, PetscInt pt, PetscInt n, PetscInt *po… in KSPAGMRESLejafmaxarray() argument
12 mx = re[0]; in KSPAGMRESLejafmaxarray()
15 if (mx < re[i]) { in KSPAGMRESLejafmaxarray()
16 mx = re[i]; in KSPAGMRESLejafmaxarray()
47 PetscErrorCode KSPAGMRESLejaOrdering(PetscScalar *re, PetscScalar *im, PetscScalar *rre, PetscScala… in KSPAGMRESLejaOrdering() argument
69 for (i = 0; i < m; i++) n_cmpl[i] = PetscSqrtReal(re[i] * re[i] + im[i] * im[i]); in KSPAGMRESLejaOrdering()
73 rre[0] = re[pos]; in KSPAGMRESLejaOrdering()
80 rre[j] = re[pos + 1]; in KSPAGMRESLejaOrdering()
85 PetscCall(KSPAGMRESLejaCfpdMax(re, im, spos, j, m, &pos)); in KSPAGMRESLejaOrdering()
89 rre[j] = re[pos]; in KSPAGMRESLejaOrdering()
/petsc/doc/
H A Dbuild_man_pages.py5 import re
16 …submansec = re.sub(r'[ ]*/\* [ ]*SUBMANSEC[ ]*=[ ]*','',submansecl[0]).strip('\n').strip('*/').str…
18 submansec = re.sub('SUBMANSEC[ ]*=[ ]*','',submansecl[0]).strip('\n').strip()
24 mansec = re.sub('MANSEC[ ]*=[ ]*','',mansecl[0]).strip('\n').strip()
69 import re
70 …return re.sub('<ValType>',ValType,re.sub('<KeyType>',KeyType,re.sub('<t>',t,re.sub('<T>',T,text))))
102 map.write(re.sub(r'man\+../','man+manualpages/',cit.read()))
H A Dfix_man_page_edit_links.py5 import re
8 EDIT_URL_PATTERN = re.compile(r'<p><a.*href="(.*)">Edit on GitLab</a></p>') # very brittle
9 SHOW_SOURCE_PATTERN = re.compile(r'(?s)<div class="toc-item">\s*<div class="tocsection sourcelink">…
14 m = re.findall(EDIT_URL_PATTERN, str)
19 str = re.sub(SHOW_SOURCE_PATTERN,'',str)
H A Dbuild_man_index.py10 import re
103 re_name = re.compile(r'\*\*Location:\*\*(.*)') # As defined in myst.def
108 pattern = re.compile(r"<A.*>(.*)</A>")
109 loc = re.match(pattern, loc_html)
119 re_level = re.compile(r'(Level:)\s+(\w+)')
130 re_loc = re.compile(r'(\*\*Location:\*\*)')
134 tmpbuf = re.sub('.c#', '.c.html#', tmpbuf)
135 tmpbuf = re.sub('.h#', '.h.html#', tmpbuf)
136 tmpbuf = re.sub('.cu#', '.cu.html#', tmpbuf)
137 tmpbuf = re.sub('.cxx#', '.cxx.html#', tmpbuf)
H A Dbuild_man_examples_links.py24 import re
26 PATTERN = re.compile(r'man:\+(.*)\+\+(.*)\+\+\+\+man\+\.\./(.*)#.*')
27 …EXCLUDE_PATTERN = re.compile('PetscCall|Petsc[A-Z]*Int|PetscReal|PetscScalar|PetscBool|PetscComple…
31 m = re.match(PATTERN, line)
35 if re.match(EXCLUDE_PATTERN,m.group(1)): continue
42 keyre = re.compile('|'.join(list(mdict.keys())))
H A Dupdate_htmlmap_links.py2 import re
20 pattern = re.compile(r".*\+\+\+\+man\+(.*)$") # Match URL in group
22 match = re.match(pattern, line)
H A Dbuild_c2html_file.py5 import re
33 ins = re.search('#include [ ]*&lt;',line)
35 includename = line[ins.end():re.search('&gt;[a-zA-Z0-9/<>#*"=. ]*',line).start()]
36 ln = re.search('<a name="line[0-9]*">[ 0-9]*: </a>',line)
H A Dbuild_man_impls_links.py7 import re
36 …f.write(re.sub(r'(.*\.[ch]x*u*).*('+itemName+r'.*)(\(.*\))','<A HREF=\"PETSC_DOC_OUT_ROOT_PLACEHOL…
39 …f.write(re.sub(r'(.*\.[ch]x*u*):.*struct.*(_p_'+itemName+').*{','<A HREF=\"PETSC_DOC_OUT_ROOT_PLAC…
42 …f.write(re.sub(r'(.*\.[ch]x*u*):} ('+itemName+'_.*);','<A HREF=\"PETSC_DOC_OUT_ROOT_PLACEHOLDER/\\…
H A Dbuild_manpages_c2html.py9 import re
63 doctext = re.sub('[ ]*DOCTEXT[ ]*=[ ]*','',doctext[0]).strip('\n').strip()
103 c2html = re.sub('[ ]*C2HTML[ ]*=[ ]*','',c2html[0]).strip('\n').strip()
109 mapnames = re.sub('[ ]*MAPNAMES[ ]*=[ ]*','',mapnames[0]).strip('\n').strip()
H A Dconf.py10 import re
46 petsc_release_flag = re.search(' PETSC_VERSION_RELEASE[ ]*([0-9]*)',buf).group(1)
47 major_version = re.search(' PETSC_VERSION_MAJOR[ ]*([0-9]*)',buf).group(1)
48 minor_version = re.search(' PETSC_VERSION_MINOR[ ]*([0-9]*)',buf).group(1)
49 subminor_version = re.search(' PETSC_VERSION_SUBMINOR[ ]*([0-9]*)',buf).group(1)
/petsc/lib/petsc/bin/
H A DgetAPI.py15 import re
42 regcomment = re.compile(r'/\* [-A-Za-z _(),<>|^\*/0-9.:=\[\]\.;]* \*/')
43 regcomment2 = re.compile(r'// [-A-Za-z _(),<>|^\*/0-9.:=\[\]\.;]*')
44 regblank = re.compile(r' [ ]*')
211 mansec = re.sub(r'[ ]*/\* [ ]*MANSEC[ ]*=[ ]*','',line).strip('\n').strip('*/').strip()
213 mansec = re.sub('MANSEC[ ]*=[ ]*','',line.strip('\n').strip())
216 submansec = re.sub(r'[ ]*/\* [ ]*SUBMANSEC[ ]*=[ ]*','',line).strip('\n').strip('*/').strip()
218 submansec = re.sub('SUBMANSEC[ ]*=[ ]*','',line.strip('\n').strip())
227 import re
231 reginclude = re.compile(r'^#include <[A-Za-z_0-9]*.h')
[all …]
H A Dextract.py4 import re
12 pattern = re.compile( r'//.*?$|/\*.*?\*/', re.DOTALL | re.MULTILINE)
H A Dpetscnagupgrade.py7 import re
22 release = int(re.compile(' PETSC_VERSION_RELEASE[ ]*([0-9]*)').search(pv).group(1))
23 major = int(re.compile(' PETSC_VERSION_MAJOR[ ]*([0-9]*)').search(pv).group(1))
24 minor = int(re.compile(' PETSC_VERSION_MINOR[ ]*([0-9]*)').search(pv).group(1))
25 subminor = int(re.compile(' PETSC_VERSION_SUBMINOR[ ]*([0-9]*)').search(pv).group(1))
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/
H A D_add_line.py8 import re
13 diff_line_re: ClassVar[re.Pattern[str]] = re.compile(r'^@@ -([0-9,]+) \+([0-9,]+) @@')
29 def __call__(self, re_match: re.Match[str]) -> str:
/petsc/lib/petsc/bin/maint/
H A DPetscStaticFunctionCandidates.py3 import re
29 m = re.match('^PetscErrorCode\s*([^\s]*)\(', line)
33 m = re.match(' void\s*([^\s]*)\(', line)
H A Dpetscdt_create_quadrature_headers.py9 import re
47 counts = tuple(int(s) for s in re.split('\s+',f.readline().strip()))
57 x, y, weight = tuple(mpfr(s) for s in re.split('\s+',f.readline().strip()))
93 parts = re.search('cubature_tet_sym_p([0-9]+)_n([0-9]+)_compact', descrip)
98 count_regex = re.findall('=([0-9]+)', f.readline())
110 … w, x, y, z, weight = tuple(mpfr(s) for s in re.split('\s+',f.readline().strip()))
175 fmt = re.sub('\s*]','',fmt)
177 fmt = re.sub('\s*]',',',fmt)
/petsc/share/petsc/
H A Dchkerrconvert.py10 import re
72 …self.chkerr_re = re.compile(r'(?:\w+\s+)?\w*(?:err|stat|ccer)\w*\s*=\s*(.*?)\s*;\s*(CHKERR.*)\((.…
73 …self.pinit_re = re.compile(r'(?:\w+\s+)?ierr\s*=\s*(PetscInitialize.*);\s*if\s+\(ierr\)\s*return…
74 self.pfinal_re = re.compile(r'(?:\w+\s+)?ierr\s*=\s*(PetscFinalize.*)\s*;.*')
75 self.retierr_re = re.compile(r'(?:\w+\s+)?(return)\s+ierr\s*;.*')
76 self.cleanup_re = re.compile(r'{\s*(PetscCall[^;]*;)\s*}')
77 self.edecl_re = re.compile(r'\s*PetscErrorCode\s+ierr\s*;.*')
78 self.euses_re = re.compile(r'.*ierr\s*=\s*.*')
/petsc/
H A Dsetup.py35 import re
191 contents = re.sub(
194 contents, flags=re.MULTILINE,
299 'major' : re.compile(r"#define\s+PETSC_VERSION_MAJOR\s+(\d+)"),
300 'minor' : re.compile(r"#define\s+PETSC_VERSION_MINOR\s+(\d+)"),
301 'micro' : re.compile(r"#define\s+PETSC_VERSION_SUBMINOR\s+(\d+)"),
302 'release': re.compile(r"#define\s+PETSC_VERSION_RELEASE\s+([-]*\d+)"),
/petsc/doc/ext/
H A Dhtml5_petsc.py4 import re
15 if not hasattr(re,'Pattern'): re.Pattern = re._pattern_type
83 self._word_pattern = re.compile(r'\w+')
201 …pattern = re.compile(r'man:\+([a-zA-Z_0-9]*)\+\+([a-zA-Z_0-9 .:]*)\+\+\+\+man\+([a-zA-Z_0-9…
/petsc/lib/petsc/bin/maint/generators/
H A Djava.py14 import re
115 import re
127 … t = re.search('JNIEXPORT void JNICALL Java_'+i+'[_0-9]*'+j+'\n [ ]* \(JNIEnv \*([, A-Za-z]*)\)',w)
142 …w = re.sub('JNIEXPORT void JNICALL Java_'+i+'([_0-9]*)'+j+'\n [ ]* \(JNIEnv \*, ([a-z]*)\)','JNIEX…
144 …w = re.sub('JNIEXPORT void JNICALL Java_'+i+'([_0-9]*)'+j+'\n [ ]* \(JNIEnv \*([, A-Za-z]*)\)','JN…
146 …w = re.sub('JNIEXPORT jint JNICALL Java_'+i+'([_0-9]*)'+i+'Create\n [ ]* \(JNIEnv \*, ([a-z]*)\)',…
/petsc/config/BuildSystem/config/utilities/
H A Ddebuggers.py55 import re
72 if re.match(r'Process '+str(pid), line):
82 if re.match(r'Process '+str(pid), line):
92 if re.match(r'Process '+str(pid), line):
/petsc/src/mat/graphops/color/utils/
H A Dbipartite.c7 PetscInt i, j, rs, re, cs, ce, cn; in MatColoringCreateBipartiteGraph() local
16 PetscCall(MatGetOwnershipRange(m, &rs, &re)); in MatColoringCreateBipartiteGraph()
20 for (i = rs; i < re; i++) { in MatColoringCreateBipartiteGraph()
28 for (i = rs; i < re; i++) { in MatColoringCreateBipartiteGraph()
/petsc/src/binding/petsc4py/conf/
H A Depydocify.py41 import re
46 dotgraph._DOT_VERSION_RE = re.compile(r'dot (?:- Graphviz )version ([\d\.]+)')
77 _SIGNATURE_RE = re.compile(
/petsc/config/BuildSystem/config/packages/
H A DNVSHMEM.py3 import re
26 return re.sub('[a-zA-Z ]*', '', ver)
/petsc/config/
H A Dtestparse.py39 import os, re, glob, types
56 import re
63 defroot=(re.sub("run","",testname) if testname.startswith("run") else testname)
163 for varset in re.split(r'(^|\W)-(?=[a-zA-Z])',testDict['args']):
181 for varset in re.split(r'(^|\W)-(?=[a-zA-Z])',args):
206 for varset in re.split('-(?=[a-zA-Z])',testDict['args']):
230 for varset in re.split(r'(^|\W)-(?=[a-zA-Z])',sdict['args']):
397 bn=re.sub("new_","",basename)
491 fileInfo=re.split("\ntest(?:set)?:",newTestStr)[0]
504 newreqs=re.sub('datafilespath','',testDict['build']['requires'])
[all …]

12345