<!DOCTYPE html>
<!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">
 hi, I just tried updating to the latest PETSc 'main' branch. Since I'm using Fortran I had to modify a few bits of my code for the new type checking etc. recently introduced here: https: //urldefense. us/v3/__https: //gitlab. com/petsc/petsc/-/commit/5d83a8b16d06840f96948f1a43aa9c83c769a60a__;!!G_uCfscf7eWS!agn9OOuCAtlXUe5B5aW7NZLJZ-8jp-mPz7HxVYUCk8_iplZ6EstbNYXU3HX2ndPpAI2v6OW7qKKmtSXaUlaN_K3CI_9LIOA$
</div>
<!-- Preheader Text : END -->

<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerStart</div>

<!--[if ((ie)|(mso))]>
  <table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 16px 0px 16px 0px; direction: ltr" ><tr><td>
    <table border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%; border-radius:4px; border-top:4px solid #90a4ae;background-color:#D0D8DC;"><tr><td valign="top">
      <table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px">
        <tr><td style="color:#000000; font-family: 'Arial', sans-serif; font-weight:bold; font-size:14px; direction: ltr">
          This Message Is From an External Sender
        </td></tr>
        <tr><td style="color:#000000; font-weight:normal; font-family: 'Arial', sans-serif; font-size:12px; direction: ltr">
          This message came from outside your organization.
        </td></tr>

      </table>

    </td></tr></table>
  </td></tr></table>
<![endif]-->

<![if !((ie)|(mso))]>
  <div dir="ltr"  id="pfptBannera3afiy5" style="all: revert !important; display:block !important; text-align: left !important; margin:16px 0px 16px 0px !important; padding:8px 16px 8px 16px !important; border-radius: 4px !important; min-width: 200px !important; background-color: #D0D8DC !important; background-color: #D0D8DC; border-top: 4px solid #90a4ae !important; border-top: 4px solid #90a4ae;">
    <div id="pfptBannera3afiy5" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
      <div id="pfptBannera3afiy5" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-weight:bold !important; font-weight:bold; font-size:14px !important; line-height:18px !important; line-height:18px">
        This Message Is From an External Sender
      </div>
      <div id="pfptBannera3afiy5" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-weight:normal; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size:12px !important; line-height:18px !important; line-height:18px; margin-top:2px !important;">
This message came from outside your organization.
      </div>

    </div>

    <div style="clear: both !important; display: block !important; visibility: hidden !important; line-height: 0 !important; font-size: 0.01px !important; height: 0px"> </div>
  </div>
<![endif]>

<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerEnd</div>
<!-- Email Banner : END -->

<!-- BaNnErBlUrFlE-BoDy-end -->
<html>
<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
  #pfptBannera3afiy5 { all: revert !important; display: block !important; 
    visibility: visible !important; opacity: 1 !important; 
    background-color: #D0D8DC !important; 
    max-width: none !important; max-height: none !important }
  .pfptPrimaryButtona3afiy5:hover, .pfptPrimaryButtona3afiy5:focus {
    background-color: #b4c1c7 !important; }
  .pfptPrimaryButtona3afiy5:active {
    background-color: #90a4ae !important; }
</style>

<!-- BaNnErBlUrFlE-HeAdEr-end -->
<meta charset="UTF-8"></head><body><pre style="font-family: sans-serif; font-size: 100%; white-space: pre-wrap; word-wrap: break-word">hi,

I just tried updating to the latest PETSc 'main' branch. Since I'm using 
Fortran I had to modify a few bits of my code for the new type checking 
etc. recently introduced here:

<a href="https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/commit/5d83a8b16d06840f96948f1a43aa9c83c769a60a__;!!G_uCfscf7eWS!agn9OOuCAtlXUe5B5aW7NZLJZ-8jp-mPz7HxVYUCk8_iplZ6EstbNYXU3HX2ndPpAI2v6OW7qKKmtSXaUlaN_K3CI_9LIOA$">https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/commit/5d83a8b16d06840f96948f1a43aa9c83c769a60a__;!!G_uCfscf7eWS!agn9OOuCAtlXUe5B5aW7NZLJZ-8jp-mPz7HxVYUCk8_iplZ6EstbNYXU3HX2ndPpAI2v6OW7qKKmtSXaUlaN_K3CI_9LIOA$</a>

That was ok and my code now builds again but I am getting a new run-time 
error (see below). It seems to be complaining about the type of the 
argument 'ctx' in SNESComputeJacobianDefaultColor(). I am passing a 
MatFDColoring object in for that. Up to now that has been ok.

Has something changed with the way that function has to be called?

- Adrian

--

[0]PETSC ERROR: Invalid argument
[0]PETSC ERROR: Wrong type of object: Parameter # 5
[0]PETSC ERROR: See <a href="https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!agn9OOuCAtlXUe5B5aW7NZLJZ-8jp-mPz7HxVYUCk8_iplZ6EstbNYXU3HX2ndPpAI2v6OW7qKKmtSXaUlaN_K3CbpQVJDw$">https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!agn9OOuCAtlXUe5B5aW7NZLJZ-8jp-mPz7HxVYUCk8_iplZ6EstbNYXU3HX2ndPpAI2v6OW7qKKmtSXaUlaN_K3CbpQVJDw$</a> for trouble shooting.
[0]PETSC ERROR: Petsc Development GIT revision: 
v3.21.2-195-g3719fecf4fb  GIT Date: 2024-06-03 17:57:55 +0000
[0]PETSC ERROR: ./timestepper_test with PETSC_ARCH main-debug on 
EN438880 by acro018 Fri Jun 14 16:32:19 2024
[0]PETSC ERROR: Configure options: --with-x --download-hdf5 
--download-zlib --download-netcdf --download-pnetcdf --download-exodusii 
--download-triangle --download-ptscotch --download-chaco --download-hypre
[0]PETSC ERROR: #1 SNESComputeJacobianDefaultColor() at 
/home/acro018/software/PETSc/code/src/snes/interface/snesj2.c:72
[0]PETSC ERROR: #2 ../src/timestepper.F90:639
[0]PETSC ERROR: #3 oursnesjacobian() at 
/home/acro018/software/PETSc/code/src/snes/interface/ftn-custom/zsnesf.c:176
[0]PETSC ERROR: #4 SNESComputeJacobian() at 
/home/acro018/software/PETSc/code/src/snes/interface/snes.c:2888
[0]PETSC ERROR: #5 SNESSolve_NEWTONLS() at 
/home/acro018/software/PETSc/code/src/snes/impls/ls/ls.c:217
[0]PETSC ERROR: #6 SNESSolve() at 
/home/acro018/software/PETSc/code/src/snes/interface/snes.c:4755
[0]PETSC ERROR: #7 ../src/timestepper.F90:2295

-- 
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
Waipapa Taumata Rau / University of Auckland, New Zealand
email: a.croucher@auckland.ac.nz
tel: +64 (0)9 923 4611

</pre></body></html>