Skip to content

Commit

Permalink
Make fallback Ceed use Error callback of parent
Browse files Browse the repository at this point in the history
  • Loading branch information
pazner committed Oct 25, 2020
1 parent f9982c6 commit fc164cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions interface/ceed-operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ int CeedOperatorCreateFallback(CeedOperator op) {
if (!op->ceed->opfallbackceed) {
ierr = CeedInit(fallbackresource, &ceedref); CeedChk(ierr);
ceedref->opfallbackparent = op->ceed;
ceedref->Error = op->ceed->Error;
op->ceed->opfallbackceed = ceedref;
}
ceedref = op->ceed->opfallbackceed;
Expand Down
3 changes: 3 additions & 0 deletions interface/ceed.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,9 @@ int CeedErrorStore(Ceed ceed, const char *filename, int lineno,
if (ceed->parent)
return CeedErrorStore(ceed->parent, filename, lineno, func, ecode, format,
args);
if (ceed->opfallbackparent)
return CeedErrorStore(ceed->opfallbackparent, filename, lineno, func, ecode,
format, args);

// Build message
CeedInt len;
Expand Down

0 comments on commit fc164cf

Please sign in to comment.