Re: [petsc-users] problem with nested logging, standalone example

2025-07-10 Thread Barry Smith
I cannot reproduce > On Jul 10, 2025, at 3:46 PM, Junchao Zhang wrote: > > Adding -mca coll_hcoll_enable 0 didn't change anything at my end. Strange. > > --Junchao Zhang > > > On Thu, Jul 10, 2025 at 3:39 AM Klaij, Christiaan > wrote: >> An additional clue perha

Re: [petsc-users] problem with nested logging, standalone example

2025-07-10 Thread Junchao Zhang
Adding -mca coll_hcoll_enable 0 didn't change anything at my end. Strange. --Junchao Zhang On Thu, Jul 10, 2025 at 3:39 AM Klaij, Christiaan wrote: > An additional clue perhaps: with the option OMPI_MCA_coll_hcoll_enable=0, > the code does not hang but gives the error below. > > Chris > > > $

Re: [petsc-users] problem with nested logging, standalone example

2025-07-10 Thread Barry Smith
"When running on mulitple procs the example hangs during PetscLogView with the backtrace below." Is it the same traceback on both MPI processes? Barry > On Jul 10, 2025, at 8:46 AM, Klaij, Christiaan via petsc-users > wrote: > > Hi Matt, > > Attached is the output of valgrind:

Re: [petsc-users] MatView for parallel jobs

2025-07-10 Thread Jose E. Roman via petsc-users
You can try this: B = A.convert('dense') dense_mat = B.getDenseArray(readonly=True) print(dense_mat) Jose > El 10 jul 2025, a las 10:35, Arun Soman Pillai - STFC UKRI via petsc-users > escribió: > > Hi, > I am trying to view a matrix object when running a job in parallel. The >

Re: [petsc-users] MatView for parallel jobs

2025-07-10 Thread Matthew Knepley
On Thu, Jul 10, 2025 at 11:29 AM Arun Soman Pillai - STFC UKRI via petsc-users wrote: > Hi, > I am trying to view a matrix object when running a job in parallel. The > application is BOUT++ > (https://urldefense.us/v3/__https://boutproject.github.io/__;!!G_uCfscf7eWS!ZLeEFXZF4ASJ2hjoTAuK-DQjJkNz

[petsc-users] MatView for parallel jobs

2025-07-10 Thread Arun Soman Pillai - STFC UKRI via petsc-users
Hi, I am trying to view a matrix object when running a job in parallel. The application is BOUT++ (https://urldefense.us/v3/__https://boutproject.github.io/__;!!G_uCfscf7eWS!Z-f_HrmUaFAwAK4e2pBspL2oRFtfq9O3GtRCoS_Nb1e9y5j2Vjq6THJTnoot7XiMeRAxlNhskW0QrMV7x_v_VsBXVAsGHRrIifxc$ ) which uses petsc a

Re: [petsc-users] problem with nested logging, standalone example

2025-07-10 Thread Matthew Knepley
On Thu, Jul 10, 2025 at 8:46 AM Klaij, Christiaan wrote: > Hi Matt, > > Attached is the output of valgrind: > > $ mpirun -mca coll_hcoll_enable 0 -n 2 valgrind --track-origins=yes > ./ex2f-cklaij-dbg -pc_type jacobi -ksp_monitor_short > -ksp_gmres_cgs_refinement_type refine_always > out 2>&1 > H

Re: [petsc-users] problem with nested logging, standalone example

2025-07-10 Thread Klaij, Christiaan via petsc-users
Hi Matt, Attached is the output of valgrind: $ mpirun -mca coll_hcoll_enable 0 -n 2 valgrind --track-origins=yes ./ex2f-cklaij-dbg -pc_type jacobi -ksp_monitor_short -ksp_gmres_cgs_refinement_type refine_always > out 2>&1 Chris From: Matthew Knepley

Re: [petsc-users] problem with nested logging, standalone example

2025-07-10 Thread Matthew Knepley
On Thu, Jul 10, 2025 at 4:39 AM Klaij, Christiaan via petsc-users < petsc-users@mcs.anl.gov> wrote: > An additional clue perhaps: with the option OMPI_MCA_coll_hcoll_enable=0, > the code does not hang but gives the error below. > The error on its face should be impossible. On line 289, we pass po

Re: [petsc-users] problem with nested logging, standalone example

2025-07-10 Thread Klaij, Christiaan via petsc-users
An additional clue perhaps: with the option OMPI_MCA_coll_hcoll_enable=0, the code does not hang but gives the error below. Chris $ mpirun -mca coll_hcoll_enable 0 -n 2 ./ex2f-cklaij-dbg -pc_type jacobi -ksp_monitor_short -ksp_gmres_cgs_refinement_type refine_always 0 KSP Residual norm 1.11

Re: [petsc-users] problem with nested logging, standalone example

2025-07-10 Thread Klaij, Christiaan via petsc-users
Hi Junchao, Thanks for testing. I've fixed the error but unfortunately that doesn't change the behavior, the code still hangs as before, with the same stack trace... Chris _ dr. ir. Christiaan Klaij | senior researcher Research & Development | CFD Development T +31 317 49 33 44 | https://u