Home
last modified time | relevance | path

Searched refs:lineno (Results 1 – 9 of 9) sorted by relevance

/petsc/src/sys/memory/
H A Dmhbw.c27 static PetscErrorCode PetscHBWMalloc(size_t a, PetscBool clear, int lineno, const char function[], … in PetscHBWMalloc() argument
30 return PetscMallocAlign(a, clear, lineno, function, filename, result); in PetscHBWMalloc()
49 static PetscErrorCode PetscHBWFree(void *aa, int lineno, const char function[], const char filename… in PetscHBWFree() argument
52 return PetscFreeAlign(aa, lineno, function, filename); in PetscHBWFree()
59 static PetscErrorCode PetscHBWRealloc(size_t a, int lineno, const char function[], const char filen… in PetscHBWRealloc() argument
62 return PetscReallocAlign(a, lineno, function, filename, result); in PetscHBWRealloc()
65 int err = PetscFreeAlign(*result, lineno, function, filename); in PetscHBWRealloc()
H A Dmtr.c24 int lineno; member
123 … (PetscLogDouble)lasthead->size, a, lasthead->functionname, lasthead->filename, lasthead->lineno)); in PetscMallocValidate()
138 …emory originally allocated in %s() at %s:%d\n", head->functionname, head->filename, head->lineno)); in PetscMallocValidate()
146 …ally allocated in %s() at %s:%d\n", lasthead->functionname, lasthead->filename, lasthead->lineno)); in PetscMallocValidate()
147 …emory originally allocated in %s() at %s:%d\n", head->functionname, head->filename, head->lineno)); in PetscMallocValidate()
160 static PetscErrorCode PetscTrMallocDefault(size_t a, PetscBool clear, int lineno, const char functi… in PetscTrMallocDefault() argument
172 PetscCall(PetscMallocValidate(lineno, function, filename)); in PetscTrMallocDefault()
175 …PetscCall(PetscMallocAlign(nsize + sizeof(TrSPACE) + sizeof(PetscInt), clear, lineno, function, fi… in PetscTrMallocDefault()
187 head->lineno = lineno; in PetscTrMallocDefault()
206 head->stack.line[PetscMax(head->stack.currentsize - 2, 0)] = lineno; in PetscTrMallocDefault()
[all …]
H A Dmal.c385 PetscErrorCode PetscMallocA(int n, PetscBool clear, int lineno, const char *function, const char *f… in PetscMallocA() argument
406 PetscCall((*PetscTrMalloc)(sumbytes, clear, lineno, function, filename, (void **)&p)); in PetscMallocA()
416 …for (i = 0; i < n; i++) PetscCall((*PetscTrMalloc)(bytes[i], clear, lineno, function, filename, pt… in PetscMallocA()
444 PetscErrorCode PetscFreeA(int n, int lineno, const char *function, const char *filename, void *ptr0… in PetscFreeA() argument
461 PetscCall((*PetscTrFree)(*ptr[n], lineno, function, filename)); in PetscFreeA()
465 PetscCall((*PetscTrFree)(*ptr[n], lineno, function, filename)); in PetscFreeA()
/petsc/src/sys/memory/hip/
H A Dmhiphost.hip.cxx4 PETSC_EXTERN PetscErrorCode PetscHIPHostMalloc(size_t a, PetscBool clear, int lineno, const char fu… in PetscHIPHostMalloc() argument
10 PETSC_EXTERN PetscErrorCode PetscHIPHostFree(void *aa, int lineno, const char function[], const cha… in PetscHIPHostFree() argument
16 PETSC_EXTERN PetscErrorCode PetscHIPHostRealloc(size_t a, int lineno, const char function[], const … in PetscHIPHostRealloc() argument
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/
H A D_doc_str.py642 def make_source_location(self, lineno: int, col: int) -> SourceLocation:
662 return SourceLocation.from_position(self.cursor.translation_unit, lineno, col)
664 def make_source_range(self, token: str, string: str, lineno: int, offset: int = 0) -> SourceRange:
691 …return SourceRange.from_positions(self.cursor.translation_unit, lineno, col_begin, lineno, col_end)
976 def _check_valid_indentation(self, lineno: int, line: str, left_stripped: str) -> None:
993 loc = self.make_source_range(' ' * indent, line, lineno)
1000 def _check_valid_section_spacing(self, prevline: str, lineno: int) -> None:
1029 loc = self.make_source_range('', '', lineno)
1037 def _check_section_header_typo(self, verdict: Verdict, line: str, lineno: int) -> Verdict:
1068 self.make_source_range(name, line, lineno)
[all …]
/petsc/share/petsc/
H A Dchkerrconvert.py97 for lineno,line in enumerate(path.read_text().splitlines()):
103 delete_set.add(lineno-1)
104 changes.append((lineno,last[0],None))
107 error_code_uses.append((line,lineno))
109 error_code_decls.append((line,lineno))
128 changes.append((lineno,line,repl))
280 for lineno,line,repl in changes:
281 lineno += 1
/petsc/src/dm/impls/forest/p4est/
H A Dpetsc_p4est_package.c13 static void PetscScLogHandler(FILE *log_stream, const char *filename, int lineno, int package, int … in PetscScLogHandler() argument
15 …PetscCallVoid(PetscInfo_Private(filename, P4estLoggingObject, ":%d{%s} %s", lineno, package == sc_… in PetscScLogHandler()
/petsc/lib/petsc/bin/maint/abi-compliance-checker/modules/Internals/Styles/
H A DHeadersDiff.css41 .lineno { color: red; background-color: #FFF; font-size: 0.7em; text-align: right; padding: 0 2px; …
/petsc/src/sys/objects/
H A Dpinit.c1870 …ameLineAndCount_Private(MPI_Comm comm, const char *filename, PetscMPIInt lineno, PetscMPIInt count) in PetscCheckAllreduceSameLineAndCount_Private() argument
1875 rbuf[0] = lineno; in PetscCheckAllreduceSameLineAndCount_Private()
1891 …tscCall(PetscSNPrintf(str, len, " On process %d, %s:%d\n", rank, filename, lineno)); in PetscCheckAllreduceSameLineAndCount_Private()