Can you add

PetscCallA(PetscSectionGetValueLayout(PETSC_COMM_WORLD, section, layout, ierr))

to line 276 of src/dm/imps/plex/tests/ex26f90.F90 and see if it runs ok?

Are you initializing layout or doing anything to it before your call to 
PetscSectionGetValueLayout()?


> On Jun 26, 2024, at 9:55 PM, Adrian Croucher <a.crouc...@auckland.ac.nz> 
> wrote:
> 
> hi Barry,
> 
> On 27/06/24 4:46 am, Barry Smith wrote:
>> Another issue arising from the tighter type checking. I have fixed the issue 
>> in the branch, again I rebased the branch so you cannot just git pull it 
>> (sorry).
> Thanks, that has fixed that issue. Now it seems another one is popping up 
> with PetscSectionGetValueLayout(). With your PETSc branch I am getting 
> intermittent runtime errors from it in my unit tests - see below. Could this 
> be another interface problem? It hasn't happened until now. I've checked the 
> variables going into PetscSectionGetValueLayout() and they look ok. But it 
> seems to be complaining about the PetscLayout variable which comes out of 
> this routine. I am calling it like this:
> 
> call PetscSectionGetValueLayout(PETSC_COMM_WORLD, section, layout, ierr)
> 
> where layout is a local variable declared as PetscLayout.
> 
> - Adrian
> 
> [0]PETSC ERROR: Null argument, when expecting valid pointer
> [0]PETSC ERROR: Null Pointer: Parameter # 3
> [0]PETSC ERROR: See 
> https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!e25K8EL2DW9ZHLHJeufZAKiEICMHOT3bLVkbfuSm3_nAXXUx9QavH76oQ1aAI0e9mwy9C2Mdith40zFhwuUjcQ$
>   for trouble shooting.
> [0]PETSC ERROR: Petsc Development GIT revision: v3.21.2-274-g55d8e0067c3  GIT 
> Date: 2024-06-20 10:02:08 -0400
> [0]PETSC ERROR: ./source_network_reinjector_test with PETSC_ARCH 
> main-debug-barry on EN438880 by acro018 Thu Jun 27 12:00:00 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 PetscSectionGetValueLayout() at 
> /home/acro018/software/PETSc/code/src/vec/is/section/interface/section.c:1777
> [0]PETSC ERROR: #2 ../src/dm_utils.F90:401
> 
> 
> 
> -- 
> Dr Adrian Croucher
> Senior Research Fellow
> Department of Engineering Science
> Waipapa Taumata Rau / University of Auckland, New Zealand
> email: a.crouc...@auckland.ac.nz <mailto:a.crouc...@auckland.ac.nz>
> tel: +64 (0)9 923 4611

Reply via email to