Thanks Barry, I have fixed the error. Indeed, It's odd it is working. Compiler magic I guess! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230507/07823b2b/attachment.html>