[petsc-users] upgrading to 3.22.4

Sanjay Govindjee s_g at berkeley.edu
Fri Mar 21 14:43:05 CDT 2025


Ok.  Thanks for the recommendation.
-------------------------------------------------------------------
Sanjay Govindjee, PhD, PE
Horace, Dorothy, and Katherine Johnson Professor in Engineering
Distinguished Professor of Civil and Environmental Engineering

779 Davis Hall
University of California
Berkeley, CA 94720-1710

Voice:  +1 510 642 6060
FAX:    +1 510 643 5264
s_g at berkeley.edu
https://urldefense.us/v3/__http://faculty.ce.berkeley.edu/sanjay__;!!G_uCfscf7eWS!ct_FDSjTgbv5A4gaXMu_9l5RlvbTb3RjdZb2hG_OAjUmHLOWHQLRgouXdedWwdktCXxk5kb-O6apdPOI7VvqHw$ 
-------------------------------------------------------------------

Books:

Continuum Mechanics of Solids
https://urldefense.us/v3/__https://global.oup.com/academic/product/continuum-mechanics-of-solids-9780198864721__;!!G_uCfscf7eWS!ct_FDSjTgbv5A4gaXMu_9l5RlvbTb3RjdZb2hG_OAjUmHLOWHQLRgouXdedWwdktCXxk5kb-O6apdPOzghiWbQ$ 

Example Problems for Continuum Mechanics of Solids
https://urldefense.us/v3/__https://www.amazon.com/dp/1083047361/__;!!G_uCfscf7eWS!ct_FDSjTgbv5A4gaXMu_9l5RlvbTb3RjdZb2hG_OAjUmHLOWHQLRgouXdedWwdktCXxk5kb-O6apdPOSFqFuvA$ 

Engineering Mechanics of Deformable Solids
https://urldefense.us/v3/__https://www.amazon.com/dp/0199651647__;!!G_uCfscf7eWS!ct_FDSjTgbv5A4gaXMu_9l5RlvbTb3RjdZb2hG_OAjUmHLOWHQLRgouXdedWwdktCXxk5kb-O6apdPPTM57GyA$ 

Engineering Mechanics 3 (Dynamics) 2nd Edition
https://urldefense.us/v3/__http://www.amazon.com/dp/3642537111__;!!G_uCfscf7eWS!ct_FDSjTgbv5A4gaXMu_9l5RlvbTb3RjdZb2hG_OAjUmHLOWHQLRgouXdedWwdktCXxk5kb-O6apdPPLiq9kJg$ 

Engineering Mechanics 3, Supplementary Problems: Dynamics
https://urldefense.us/v3/__http://www.amzn.com/B00SOXN8JU__;!!G_uCfscf7eWS!ct_FDSjTgbv5A4gaXMu_9l5RlvbTb3RjdZb2hG_OAjUmHLOWHQLRgouXdedWwdktCXxk5kb-O6apdPN9mztOew$ 

-------------------------------------------------------------------
NSF NHERI SimCenter
https://urldefense.us/v3/__https://simcenter.designsafe-ci.org/__;!!G_uCfscf7eWS!ct_FDSjTgbv5A4gaXMu_9l5RlvbTb3RjdZb2hG_OAjUmHLOWHQLRgouXdedWwdktCXxk5kb-O6apdPNFCf49Yw$ 
-------------------------------------------------------------------


On Fri, Mar 21, 2025 at 12:39 PM Satish Balay <balay.anl at fastmail.org>
wrote:

> On Fri, 21 Mar 2025, Sanjay Govindjee via petsc-users wrote:
>
> > Thanks.  I will give that a try.  To be clear, I should do
> >  >  > git checkout origin/main
> >  >  > make all
> >  >  > make check
> > Or do I also need to run my (long) .\configure before the make all?
>
> I would start a clean build from a clean repo.
>
> Satish
>
> > -sanjay
> >
> >
> > On 3/21/25 7:17 AM, Barry Smith wrote:
> > >
> > >     I have just pushed a major update to the Fortran interface to the
> main
> > > PETSc git branch. Could you please try to work with main (to become
> release
> > > in a couple of weeks) with your Fortran code as we debug the problem?
> This
> > > will save you a lot of work and hopefully make the debugging more
> > > straightforward.
> > >
> > >     You can send the same output with the debugger if it crashes in
> the main
> > > branch and I can try to track down what is going wrong.
> > >
> > >   Barry
> > >
> > >
> > >
> > >
> > >> On Mar 21, 2025, at 12:37 AM, Sanjay Govindjee via petsc-users
> > >> <petsc-users at mcs.anl.gov> wrote:
> > >>
> > >> I am trying to upgrade my code to PETSc 3.22.4 (the code was last
> updated
> > >> to 3.19.4 or perhaps 3.18.1, I've lost track). I've been using this
> code
> > >> with PETSc for over 20 years.
> > >>
> > >> To get my code to compile and link during this update, I only need to
> make
> > >> two changes; one was to use PetscViewerPushFormat instead of
> > >> PetscViewerSetFormat and the other was to use
> PETSC_NULL_INTEGER_ARRAY in a
> > >> spot or two.
> > >>
> > >> When I run the code however, I am getting an error very early on
> during a
> > >> call to MatCreate near the beginning of the code.  The screen output
> says:
> > >>
> > >>     [3]PETSC ERROR: matcreate_() at
> > >>     /Users/sg/petsc-3.22.4/gnug/src/mat/utils/ftn-auto/gcreatef.c:101
> > >>     Cannot create PETSC_NULL_XXX object
> > >>     [0]PETSC ERROR: matcreate_() at
> > >>     /Users/sg/petsc-3.22.4/gnug/src/mat/utils/ftn-auto/gcreatef.c:101
> > >>     Cannot create PETSC_NULL_XXX object
> > >>     [1]PETSC ERROR: matcreate_() at
> > >>     /Users/sg/petsc-3.22.4/gnug/src/mat/utils/ftn-auto/gcreatef.c:101
> > >>     Cannot create PETSC_NULL_XXX object
> > >>     [2]PETSC ERROR: matcreate_() at
> > >>     /Users/sg/petsc-3.22.4/gnug/src/mat/utils/ftn-auto/gcreatef.c:101
> > >>     Cannot create PETSC_NULL_XXX object
> > >>
> > >> I have a 4 processor run going.  I am running with
> > >> -on_error_attach_debugger but the debugger is giving me cryptic (at
> least
> > >> to me) output (the same for all 4 processes modulo the PID).  Stack
> traces
> > >> seem to be unavailable :(
> > >>
> > >>     lldb  -p 71963
> > >>     (lldb) process attach --pid 71963
> > >>     Process 71963 stopped
> > >>     * thread #1, queue = 'com.apple.main-thread', stop reason =
> > >>     signal SIGSTOP
> > >>         frame #0: 0x00007fff69d92746
> > >>     libsystem_kernel.dylib`__semwait_signal + 10
> > >>     libsystem_kernel.dylib`__semwait_signal:
> > >>     ->  0x7fff69d92746 <+10>: jae 0x7fff69d92750            ; <+20>
> > >>         0x7fff69d92748 <+12>: movq   %rax, %rdi
> > >>         0x7fff69d9274b <+15>: jmp 0x7fff69d9121d            ; cerror
> > >>         0x7fff69d92750 <+20>: retq
> > >>     Target 0: (feap) stopped.
> > >>
> > >>     Executable module set to "/Users/sg/Feap/ver87/parfeap/feap".
> > >>     Architecture set to: x86_64h-apple-macosx-.
> > >>
> > >> Does anyone have any hints as to what may be going on?  Note the
> program
> > >> starts normally and i can do stuff with the interactive interface for
> the
> > >> code -- even plotting the mesh etc. so I believe the input data has
> been
> > >> read in correctly.  The crash only occurs when I initiate the
> formation of
> > >> the matrix.
> > >>
> > >> I am attaching the
> > >> /Users/sg/petsc-3.22.4/gnug/src/mat/utils/ftn-auto/gcreatef.c file in
> case
> > >> that offers some insight.
> > >>
> > >> Note, I have been
> > >> -sanjay
> > >> --
> > >> <gcreatef.c>
> > >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250321/7546a95a/attachment-0001.html>


More information about the petsc-users mailing list