Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 260) sorted by relevance

1234567891011

/petsc/config/BuildSystem/config/packages/
H A Dfblaslapack.py34 line = f.readline()
35 while line:
36 if line.startswith('CC '):
38 line = 'CC = '+cc+'\n'
39 if line.startswith('COPTFLAGS '):
41 line = 'COPTFLAGS = '+self.getCompilerFlags()
44 if line.startswith('CNOOPT'):
46line = 'CNOOPT = '+noopt+ ' '+self.getSharedFlag(self.getCompilerFlags())+' '+self.getPointerSizeF…
48 if line.startswith('FC '):
54 line = 'FC = '+fc+'\n'
[all …]
H A Df2cblaslapack.py60 for line in f:
61 if line.startswith('CC '):
63 line = 'CC = '+cc+'\n'
64 if line.startswith('COPTFLAGS '):
66 line = 'COPTFLAGS = '+self.updatePackageCFlags(self.getCompilerFlags())+'\n'
68 if line.startswith('CNOOPT'):
71line = 'CNOOPT = '+noopt+ ' '+self.getSharedFlag(self.getCompilerFlags())+' '+self.getPointerSizeF…
73 if line.startswith('AR '):
74 line = 'AR = '+self.setCompilers.AR+'\n'
75 if line.startswith('AR_FLAGS '):
[all …]
/petsc/src/dm/impls/plex/
H A Dplexply.c24 char line[PETSC_MAX_PATH_LEN], ntype[16], itype[16], name[1024], vtype[16]; in DMPlexCreatePLYFromFile() local
40 PetscCall(PetscViewerRead(viewer, line, 1, NULL, PETSC_STRING)); in DMPlexCreatePLYFromFile()
41 PetscCall(PetscStrncmp(line, "ply", PETSC_MAX_PATH_LEN, &match)); in DMPlexCreatePLYFromFile()
44 PetscCall(PetscViewerRead(viewer, line, 1, NULL, PETSC_STRING)); in DMPlexCreatePLYFromFile()
45 PetscCall(PetscStrncmp(line, "format", PETSC_MAX_PATH_LEN, &match)); in DMPlexCreatePLYFromFile()
47 PetscCall(PetscViewerRead(viewer, line, 1, NULL, PETSC_STRING)); in DMPlexCreatePLYFromFile()
48 PetscCall(PetscStrncmp(line, "ascii", PETSC_MAX_PATH_LEN, &isAscii)); in DMPlexCreatePLYFromFile()
49 PetscCall(PetscStrncmp(line, "binary_big_endian", PETSC_MAX_PATH_LEN, &isBinaryBig)); in DMPlexCreatePLYFromFile()
50 PetscCall(PetscStrncmp(line, "binary_little_endian", PETSC_MAX_PATH_LEN, &isBinaryLittle)); in DMPlexCreatePLYFromFile()
53 PetscCall(PetscViewerRead(viewer, line, 1, NULL, PETSC_STRING)); in DMPlexCreatePLYFromFile()
[all …]
/petsc/lib/petsc/bin/
H A DgetAPI.py208 def findmansec(line,mansec,submansec): argument
210 if line.find(' MANSEC') > -1:
211 mansec = re.sub(r'[ ]*/\* [ ]*MANSEC[ ]*=[ ]*','',line).strip('\n').strip('*/').strip()
212 if mansec == line[0].strip('\n'):
213 mansec = re.sub('MANSEC[ ]*=[ ]*','',line.strip('\n').strip())
215 if line.find('SUBMANSEC') > -1:
216 submansec = re.sub(r'[ ]*/\* [ ]*SUBMANSEC[ ]*=[ ]*','',line).strip('\n').strip('*/').strip()
217 if submansec == line[0].strip('\n'):
218 submansec = re.sub('SUBMANSEC[ ]*=[ ]*','',line.strip('\n').strip())
233 line = f.readline()
[all …]
H A Dtaucc.py57 for line in output.splitlines():
58 if line.find('TAU_INSTRUMENT0R:') >= 0: tau_instr = line.replace('TAU_INSTRUMENT0R:','')
59 elif line.find('TAU_DEFS:') >= 0: tau_defs = line.replace('TAU_DEFS:',' ')
60 elif line.find('TAU_INCLUDE:') >= 0: tau_include = line.replace('TAU_INCLUDE:',' ')
61 elif line.find('TAU_LIBS:') >= 0: tau_libs = line.replace('TAU_LIBS:',' ')
62 elif line.find('TAU_MPI_INC:') >= 0: tau_mpi_inc = line.replace('TAU_MPI_INC:',' ')
63 elif line.find('TAU_MPI_LIBS:') >= 0: tau_mpi_libs = line.replace('TAU_MPI_LIBS:',' ')
64 elif line.find('TAU_CXXLIBS:') >= 0: tau_cxxlibs = line.replace('TAU_CXXLIBS:',' ')
/petsc/src/sys/tests/options/output/
H A Dex55_skip_petscrc-1_options_monitor_cancel-1_3.out1 Setting option: options_monitor (no value) (source: command line)
2 Setting option: options_monitor_cancel = 1 (source: command line)
3 Setting option: skip_petscrc = 1 (source: command line)
7 Setting option: options_view (no value) (source: command line)
8 Setting option: options_monitor_viewer = ascii (source: command line)
9 Setting option: option_cmd_1 = option_cmd_1_val (source: command line)
10 Setting option: option_cmd_2 (no value) (source: command line)
23 -option_cmd_1 option_cmd_1_val # (source: command line)
24 -option_cmd_2 # (source: command line)
26 -options_monitor # (source: command line)
[all …]
H A Dex55_skip_petscrc-1_options_monitor_cancel-0_3.out1 Setting option: options_monitor (no value) (source: command line)
2 Setting option: options_monitor_cancel = 0 (source: command line)
3 Setting option: skip_petscrc = 1 (source: command line)
7 Setting option: options_view (no value) (source: command line)
8 Setting option: options_monitor_viewer = ascii (source: command line)
9 Setting option: option_cmd_1 = option_cmd_1_val (source: command line)
10 Setting option: option_cmd_2 (no value) (source: command line)
26 -option_cmd_1 option_cmd_1_val # (source: command line)
27 -option_cmd_2 # (source: command line)
29 -options_monitor # (source: command line)
[all …]
H A Dex55_skip_petscrc-0_options_monitor_cancel-1_3.out1 Setting option: options_monitor (no value) (source: command line)
2 Setting option: options_monitor_cancel = 1 (source: command line)
3 Setting option: skip_petscrc = 0 (source: command line)
11 Setting option: options_view (no value) (source: command line)
12 Setting option: options_monitor_viewer = ascii (source: command line)
13 Setting option: option_cmd_1 = option_cmd_1_val (source: command line)
14 Setting option: option_cmd_2 (no value) (source: command line)
29 -option_cmd_1 option_cmd_1_val # (source: command line)
30 -option_cmd_2 # (source: command line)
32 -options_monitor # (source: command line)
[all …]
H A Dex55_skip_petscrc-0_options_monitor_cancel-0_3.out1 Setting option: options_monitor (no value) (source: command line)
2 Setting option: options_monitor_cancel = 0 (source: command line)
3 Setting option: skip_petscrc = 0 (source: command line)
11 Setting option: options_view (no value) (source: command line)
12 Setting option: options_monitor_viewer = ascii (source: command line)
13 Setting option: option_cmd_1 = option_cmd_1_val (source: command line)
14 Setting option: option_cmd_2 (no value) (source: command line)
32 -option_cmd_1 option_cmd_1_val # (source: command line)
33 -option_cmd_2 # (source: command line)
35 -options_monitor # (source: command line)
[all …]
H A Dex55_skip_petscrc-1_options_monitor_cancel-1_2.out1 Setting option: options_monitor (no value) (source: command line)
2 Setting option: options_monitor_cancel = 1 (source: command line)
3 Setting option: skip_petscrc = 1 (source: command line)
7 Setting option: options_view (no value) (source: command line)
8 Setting option: options_monitor_viewer = ascii (source: command line)
22 -options_monitor # (source: command line)
23 -options_monitor_cancel 1 # (source: command line)
24 -options_monitor_viewer ascii # (source: command line)
25 -options_view # (source: command line)
26 -skip_petscrc 1 # (source: command line)
H A Dex55_skip_petscrc-1_options_monitor_cancel-0_2.out1 Setting option: options_monitor (no value) (source: command line)
2 Setting option: options_monitor_cancel = 0 (source: command line)
3 Setting option: skip_petscrc = 1 (source: command line)
7 Setting option: options_view (no value) (source: command line)
8 Setting option: options_monitor_viewer = ascii (source: command line)
25 -options_monitor # (source: command line)
26 -options_monitor_cancel 0 # (source: command line)
27 -options_monitor_viewer ascii # (source: command line)
28 -options_view # (source: command line)
29 -skip_petscrc 1 # (source: command line)
H A Dex55_skip_petscrc-0_options_monitor_cancel-1_2.out1 Setting option: options_monitor (no value) (source: command line)
2 Setting option: options_monitor_cancel = 1 (source: command line)
3 Setting option: skip_petscrc = 0 (source: command line)
11 Setting option: options_view (no value) (source: command line)
12 Setting option: options_monitor_viewer = ascii (source: command line)
28 -options_monitor # (source: command line)
29 -options_monitor_cancel 1 # (source: command line)
30 -options_monitor_viewer ascii # (source: command line)
31 -options_view # (source: command line)
34 -skip_petscrc 0 # (source: command line)
H A Dex55_skip_petscrc-0_options_monitor_cancel-0_2.out1 Setting option: options_monitor (no value) (source: command line)
2 Setting option: options_monitor_cancel = 0 (source: command line)
3 Setting option: skip_petscrc = 0 (source: command line)
11 Setting option: options_view (no value) (source: command line)
12 Setting option: options_monitor_viewer = ascii (source: command line)
31 -options_monitor # (source: command line)
32 -options_monitor_cancel 0 # (source: command line)
33 -options_monitor_viewer ascii # (source: command line)
34 -options_view # (source: command line)
37 -skip_petscrc 0 # (source: command line)
/petsc/src/snes/tutorials/network/water/
H A Dwaterreaddata.c88 int CheckDataSegmentEnd(const char *line) in CheckDataSegmentEnd() argument
90line, "[JUNCTIONS]") || LineStartsWith(line, "[RESERVOIRS]") || LineStartsWith(line, "[TANKS]") ||… in CheckDataSegmentEnd()
99 PetscErrorCode GetDataSegment(FILE *fp, char *line, fpos_t *data_segment_start_pos, PetscInt *ndata… in GetDataSegment() argument
107 …PetscCheck(fgets(line, MAXLINE, fp), PETSC_COMM_SELF, PETSC_ERR_FILE_READ, "Cannot read data segme… in GetDataSegment()
108 while (LineStartsWith(line, ";")) { in GetDataSegment()
110 …PetscCheck(fgets(line, MAXLINE, fp), PETSC_COMM_SELF, PETSC_ERR_FILE_READ, "Cannot read data segme… in GetDataSegment()
113 …PetscCheck(fgets(line, MAXLINE, fp), PETSC_COMM_SELF, PETSC_ERR_FILE_READ, "Cannot read data segme… in GetDataSegment()
115 data_segment_end = CheckDataSegmentEnd(line); in GetDataSegment()
128 char line[MAXLINE]; in WaterReadData() local
145 while (fgets(line, MAXLINE, fp)) { in WaterReadData()
[all …]
/petsc/src/sys/tests/
H A Dex17.c26 char line[512] = {0}; in main() local
32 PetscCall(PetscSynchronizedFGets(comm, fp, sizeof(line), line)); in main()
33 PetscCall(PetscStrncmp(line, line1, sizeof(line1), &line_check)); in main()
34 …COMM_SELF, PETSC_ERR_FILE_READ, "Line 1 not read correctly. Got '%s', expected '%s'", line, line1); in main()
35 PetscCall(PetscSynchronizedFGets(comm, fp, sizeof(line), line)); in main()
36 PetscCall(PetscStrncmp(line, line2, sizeof(line2), &line_check)); in main()
37 …COMM_SELF, PETSC_ERR_FILE_READ, "Line 2 not read correctly. Got '%s', expected '%s'", line, line2); in main()
40 PetscCall(PetscSynchronizedFGets(comm, fp, sizeof(line), line)); in main()
41 sscanf(line, "rank: %" PetscInt_FMT, &line_rank); in main()
/petsc/doc/
H A Dbuild_c2html_file.py31 for line in txt.split('\n'):
32 if 'include' in line:
33 ins = re.search('#include [ ]*<',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)
37 linenumber = line[ln.start():ln.end()]
39 line = linenumber+'#include <A href="'+includename+'.html">&lt;'+includename+'&gt;</A>'
41line = linenumber+'#include <A href="'+os.path.relpath(os.path.join(rel_dot,'include',includename)…
43line = linenumber+'#include <A href="'+os.path.relpath(os.path.join(rel_dot,includename))+'.html">…
44 ntxt = ntxt + line + '\n'
H A Dfix_man_page_edit_links.py23 for line in str.split('\n'):
25 f.write(line+'\n')
27 if line.lstrip().startswith("<div") and "editthispage" in line:
29 if replace_link_line and line.lstrip().startswith("<a"):
32 elif not 'Edit on GitLab' in line:
33 f.write(line+'\n')
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/
H A D_doc_str.py322 def is_heading(self, line: str, prev_line: str) -> Verdict:
359 def handle_header_without_colon(line: str, prev_line: str) -> Verdict:
360 linelo = line.casefold()
372 line = line.strip()
373 if not line or line.startswith(('+', '. ', '-', '$', '.vb', '.ve')):
375 if ':' in line:
376 return handle_header_with_colon(line)
377 return handle_header_without_colon(line, prev_line)
379 …def fuzzy_find_section(self, line: str, strict: bool = False, **kwargs) -> tuple[str, str, Section…
409 if strp := line.split(':', maxsplit=1)[0].strip():
[all …]
H A D_doc_section_base.py313 return [(loc, line, verdict) for loc, line, verdict in self._lines if verdict > 0]
350 for loc, line, verdict in self.lines():
352 possible_header = line.split(':' if ':' in line else None, maxsplit=1)[0].strip()
354 docstring.make_source_range(possible_header, line, loc.start.line)
357 inspect_line(docstring, loc, line, verdict)
376 self._do_setup(docstring, lambda ds, loc, line, verdict: None)
388 return not self.items and sum(not line.strip() for _, line, _ in lines) == len(lines) - 1
501 heading_loc = docstring.make_source_range(heading, text, loc.start.line)
518 prevline = docstring.extent.start.line - 1
557 startline = loc.start.line
[all …]
/petsc/lib/petsc/bin/maint/
H A Dgenerateetags.py43 line = f.readline()
44 while line:
45 if not (removedefines and line.startswith(b'#define ')): g.write(line)
46 if line.startswith(b'\f'):
47 line = f.readline()
48 g.write(line)
49 line = line[0:line.index(b',')]
50 if os.path.dirname(line).endswith(b'custom') and not line.endswith(b'.h'):
53 line = os.path.basename(line)
54 g.write(line + b':^?' + line + b'^A,1\n')
[all …]
H A DPetscStaticFunctionCandidates.py28 for line in f.readlines():
29 m = re.match('^PetscErrorCode\s*([^\s]*)\(', line)
33 m = re.match(' void\s*([^\s]*)\(', line)
56 for line in f.readlines():
57 if line.find(".seealso") >= 0:
61 …if line.find(' ' + funcname + '(') >= 0 or line.find("=" + funcname + '(') >= 0: #Note: Might n…
H A Dcheck_header_guard.py73 def replace(self, last_line: str, line: str, ret: list[str]) -> list[str]:
98 def replace(self, prev_line: str, line: str, ret: list[str]) -> list[str]:
119 ret = super().replace(prev_line, line, ret)
124 if line.startswith(pragma_once):
126 ret.append(line)
200 def replace(self, prev_line: str, line: str, ret: list[str]) -> list[str]:
226 ret = super().replace(prev_line, line, ret)
231 if prev_line == self.new_ifndef and line == self.new_guard:
233 ret.append(line)
247 elif line.startswith('#pragma once'):
[all …]
/petsc/src/sys/error/ftn-custom/
H A Dzerrf.c30 static PetscErrorCode ourerrorhandler(MPI_Comm comm, int line, const char *fun, const char *file, P… in ourerrorhandler() argument
40 …(*f2)(&comm, &line, fun, file, &n, &p, mess, ctx, &ierr, (PETSC_FORTRAN_CHARLEN_T)len1, (PETSC_FOR… in ourerrorhandler()
48 PETSC_EXTERN void petsctracebackerrorhandler_(MPI_Comm *comm, int *line, const char *fun, const cha… in petsctracebackerrorhandler_() argument
50 *ierr = PetscTraceBackErrorHandler(*comm, *line, fun, file, *n, *p, mess, ctx); in petsctracebackerrorhandler_()
53 PETSC_EXTERN void petscaborterrorhandler_(MPI_Comm *comm, int *line, const char *fun, const char *f… in petscaborterrorhandler_() argument
55 *ierr = PetscAbortErrorHandler(*comm, *line, fun, file, *n, *p, mess, ctx); in petscaborterrorhandler_()
58 PETSC_EXTERN void petscattachdebuggererrorhandler_(MPI_Comm *comm, int *line, const char *fun, cons… in petscattachdebuggererrorhandler_() argument
60 *ierr = PetscAttachDebuggerErrorHandler(*comm, *line, fun, file, *n, *p, mess, ctx); in petscattachdebuggererrorhandler_()
63 PETSC_EXTERN void petscemacsclienterrorhandler_(MPI_Comm *comm, int *line, const char *fun, const c… in petscemacsclienterrorhandler_() argument
65 *ierr = PetscEmacsClientErrorHandler(*comm, *line, fun, file, *n, *p, mess, ctx); in petscemacsclienterrorhandler_()
[all …]
/petsc/share/petsc/datafiles/meshes/
H A Dgmsh-3d-ascii.msh25 test: comment line 1
9 test: comment line 1
10 test: comment line 2
21 test: comment line 1
25 test: comment line 1
26 test: comment line 2
/petsc/config/
H A Dtestparse.py78 line=lline[1:] if lline.startswith("!") else lline
79 if not line.strip(): continue
80 if line.strip().startswith('#'): continue
82 var=line.split(":")[0].strip()
85 nspace=len(line)-len(line.lstrip(stripstr))
86 newline=line[nspace:]
96 line=lline[1:] if lline.startswith("!") else lline
97 if not line.strip(): continue
98 if line.strip().startswith('#'):
99 newTestStr+=line+'\n'
[all …]

1234567891011