[petsc-dev] new format error

Mark Adams mfadams at lbl.gov
Thu Jun 9 09:33:09 CDT 2022


I rebased over master and now this branch fails source code check:

SETERRQ() with trailing newline ----------------------
1346 <https://gitlab.com/petsc/petsc/-/jobs/2569478894#L1346>src/ksp/pc/impls/amgx/amgx.cxx:169:
SETERRQ(amgx->comm, PETSC_ERR_LIB, "%s\n", msg); \


Any idea how to best fix this?

Thanks

// XXX Need to add call in AmgX API that gracefully destroys everything
// without abort etc.
#define PetscCallAmgX(rc) do { \
  AMGX_RC err = (rc); \
  char msg[4096]; \
  switch (err) { \
    case AMGX_RC_OK: \
      break; \
    default: \
      AMGX_get_error_string(err, msg, 4096); \

*      SETERRQ(amgx->comm, PETSC_ERR_LIB, "%s\n", msg); \*  } \
} while (0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20220609/4aa6b7ad/attachment.html>


More information about the petsc-dev mailing list