[petsc-users] create global vector in latest version of petsc
Hengjie Wang
hengjiew at uci.edu
Wed Oct 5 21:11:27 CDT 2016
Hi,
I just tried .F90. It had the error. I attached the full error log.
Thank you.
Frank
On 10/5/2016 6:57 PM, Barry Smith wrote:
> PETSc fortran programs should always end with .F90 not .f90 can you try again with that name? The capital F is important.
>
> Barry
>
>> On Oct 5, 2016, at 7:57 PM, frank <hengjiew at uci.edu> wrote:
>>
>> Hi,
>>
>> I update petsc to the latest version by pulling from the repo. Then I find one of my old code, which worked before, output errors now.
>> After debugging, I find that the error is caused by "DMCreateGlobalVector".
>> I attach a short program which can re-produce the error. This program works well with an older version of petsc.
>> I also attach the script I used to configure petsc.
>>
>> The error message is below. Did I miss something in the installation ? Thank you.
>>
>> 1 [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
>> 2 [0]PETSC ERROR: Null argument, when expecting valid pointer
>> 3 [0]PETSC ERROR: Null Object: Parameter # 2
>> 4 [0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
>> 5 [0]PETSC ERROR: Petsc Development GIT revision: v3.7.4-1571-g7fc5cb5 GIT Date: 2016-10-05 10:56:19 -0500
>> 6 [0]PETSC ERROR: [2]PETSC ERROR: ./test_ksp.exe on a gnu-dbg-32idx named kolmog1 by frank Wed Oct 5 17:40:07 2016
>> 7 [0]PETSC ERROR: Configure options --known-mpi-shared="0 " --known-memcmp-ok --with-debugging="1 " --with-shared-libraries=0 --with-mpi-compilers="1 " --download-blacs="1 " --download-metis="1 " --dow nload-parmetis="1 " --download-superlu_dist="1 " --download-hypre=1 PETSC_ARCH=gnu-dbg-32idx
>> 8 [0]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line 83 in /home/frank/petsc/src/vec/vec/interface/vector.c
>> 9 [0]PETSC ERROR: #2 DMCreateGlobalVector_DA() line 45 in /home/frank/petsc/src/dm/impls/da/dadist.c
>> 10 [0]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in /home/frank/petsc/src/dm/interface/dm.c
>>
>>
>> Regards,
>> Frank
>>
>>
>>
>> <test_vec.f90><gnu-dbg-32idx.py>
-------------- next part --------------
[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[0]PETSC ERROR: Null argument, when expecting valid pointer
[0]PETSC ERROR: Null Object: Parameter # 2
[0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[0]PETSC ERROR: Petsc Development GIT revision: v3.7.4-1571-g7fc5cb5 GIT Date: 2016-10-05 10:56:19 -0500
[0]PETSC ERROR: [2]PETSC ERROR: ./test_ksp.exe on a gnu-dbg-32idx named kolmog1 by frank Wed Oct 5 18:58:44 2016
[0]PETSC ERROR: Configure options --known-mpi-shared="0 " --known-memcmp-ok --with-debugging="1 " --with-shared-libraries=0 --with-mpi-compilers="1 " --download-blacs="1 " --download-metis="1 " --download-parmetis="1 " --download-superlu_dist="1 " --download-hypre=1 PETSC_ARCH=gnu-dbg-32idx
[0]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line 83 in /home/frank/petsc/src/vec/vec/interface/vector.c
--------------------- Error Message --------------------------------------------------------------
[2]PETSC ERROR: Null argument, when expecting valid pointer
[2]PETSC ERROR: Null Object: Parameter # 2
[2]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[2]PETSC ERROR: Petsc Development GIT revision: v3.7.4-1571-g7fc5cb5 GIT Date: 2016-10-05 10:56:19 -0500
[2]PETSC ERROR: ./test_ksp.exe on a gnu-dbg-32idx named kolmog1 by frank Wed Oct 5 18:58:44 2016
[2]PETSC ERROR: Configure options --known-mpi-shared="0 " --known-memcmp-ok --with-debugging="1 " --with-shared-libraries=0 --with-mpi-compilers="1 " --download-blacs="1 " --download-metis="1 " --download-parmetis="1 " --download-superlu_dist="1 " --download-hypre=1 PETSC_ARCH=gnu-dbg-32idx
[2]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line 83 in /home/frank/petsc/src/vec/vec/interface/vector.c
[2]PETSC ERROR: [0]PETSC ERROR: #2 DMCreateGlobalVector_DA() line 45 in /home/frank/petsc/src/dm/impls/da/dadist.c
[2]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in /home/frank/petsc/src/dm/interface/dm.c
#2 DMCreateGlobalVector_DA() line 45 in /home/frank/petsc/src/dm/impls/da/dadist.c
[0]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in /home/frank/petsc/src/dm/interface/dm.c
[3]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[3]PETSC ERROR: Null argument, when expecting valid pointer
[3]PETSC ERROR: Null Object: Parameter # 2
[3]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[3]PETSC ERROR: Petsc Development GIT revision: v3.7.4-1571-g7fc5cb5 GIT Date: 2016-10-05 10:56:19 -0500
[3]PETSC ERROR: ./test_ksp.exe on a gnu-dbg-32idx named kolmog1 by frank Wed Oct 5 18:58:44 2016
[3]PETSC ERROR: Configure options --known-mpi-shared="0 " --known-memcmp-ok --with-debugging="1 " --with-shared-libraries=0 --with-mpi-compilers="1 " --download-blacs="1 " --download-metis="1 " --download-parmetis="1 " --download-superlu_dist="1 " --download-hypre=1 PETSC_ARCH=gnu-dbg-32idx
[3]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line 83 in /home/frank/petsc/src/vec/vec/interface/vector.c
[3]PETSC ERROR: #2 DMCreateGlobalVector_DA() line 45 in /home/frank/petsc/src/dm/impls/da/dadist.c
[3]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in /home/frank/petsc/src/dm/interface/dm.c
[4]PETSC ERROR: [6]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[6]PETSC ERROR: Null argument, when expecting valid pointer
[6]PETSC ERROR: Null Object: Parameter # 2
[6]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
--------------------- Error Message --------------------------------------------------------------
[4]PETSC ERROR: Null argument, when expecting valid pointer
[4]PETSC ERROR: Null Object: Parameter # 2
[4]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[4]PETSC ERROR: Petsc Development GIT revision: v3.7.4-1571-g7fc5cb5 GIT Date: 2016-10-05 10:56:19 -0500
[4]PETSC ERROR: ./test_ksp.exe on a gnu-dbg-32idx named kolmog1 by frank Wed Oct 5 18:58:44 2016
[4]PETSC ERROR: Configure options --known-mpi-shared="0 " --known-memcmp-ok --with-debugging="1 " --with-shared-libraries=0 --with-mpi-compilers="1 " --download-blacs="1 " --download-metis="1 " --download-parmetis="1 " --download-superlu_dist="1 " --download-hypre=1 PETSC_ARCH=gnu-dbg-32idx
[4]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line 83 in /home/frank/petsc/src/vec/vec/interface/vector.c
[4]PETSC ERROR: #2 DMCreateGlobalVector_DA() line 45 in /home/frank/petsc/src/dm/impls/da/dadist.c
[4]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in /home/frank/petsc/src/dm/interface/dm.c
[6]PETSC ERROR: Petsc Development GIT revision: v3.7.4-1571-g7fc5cb5 GIT Date: 2016-10-05 10:56:19 -0500
[6]PETSC ERROR: ./test_ksp.exe on a gnu-dbg-32idx named kolmog1 by frank Wed Oct 5 18:58:44 2016
[6]PETSC ERROR: Configure options --known-mpi-shared="0 " --known-memcmp-ok --with-debugging="1 " --with-shared-libraries=0 --with-mpi-compilers="1 " --download-blacs="1 " --download-metis="1 " --download-parmetis="1 " --download-superlu_dist="1 " --download-hypre=1 PETSC_ARCH=gnu-dbg-32idx
[6]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line 83 in /home/frank/petsc/src/vec/vec/interface/vector.c
[6]PETSC ERROR: #2 DMCreateGlobalVector_DA() line 45 in /home/frank/petsc/src/dm/impls/da/dadist.c
[6]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in /home/frank/petsc/src/dm/interface/dm.c
[5]PETSC ERROR: [1]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[1]PETSC ERROR: Null argument, when expecting valid pointer
[1]PETSC ERROR: Null Object: Parameter # 2
[1]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[1]PETSC ERROR: Petsc Development GIT revision: v3.7.4-1571-g7fc5cb5 GIT Date: 2016-10-05 10:56:19 -0500
[1]PETSC ERROR: ./test_ksp.exe on a gnu-dbg-32idx named kolmog1 by frank Wed Oct 5 18:58:44 2016
[1]PETSC ERROR: Configure options --known-mpi-shared="0 " --known-memcmp-ok --with-debugging="1 " --with-shared-libraries=0 --with-mpi-compilers="1 " --download-blacs="1 " --download-metis="1 " --download-parmetis="1 " --download-superlu_dist="1 " --download-hypre=1 PETSC_ARCH=gnu-dbg-32idx
[1]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line 83 in /home/frank/petsc/src/vec/vec/interface/vector.c
[1]PETSC ERROR: #2 DMCreateGlobalVector_DA() line 45 in /home/frank/petsc/src/dm/impls/da/dadist.c
[1]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in /home/frank/petsc/src/dm/interface/dm.c
--------------------- Error Message --------------------------------------------------------------
[5]PETSC ERROR: Null argument, when expecting valid pointer
[5]PETSC ERROR: Null Object: Parameter # 2
[5]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[5]PETSC ERROR: Petsc Development GIT revision: v3.7.4-1571-g7fc5cb5 GIT Date: 2016-10-05 10:56:19 -0500
[5]PETSC ERROR: ./test_ksp.exe on a gnu-dbg-32idx named kolmog1 by frank Wed Oct 5 18:58:44 2016
[5]PETSC ERROR: Configure options --known-mpi-shared="0 " --known-memcmp-ok --with-debugging="1 " --with-shared-libraries=0 --with-mpi-compilers="1 " --download-blacs="1 " --download-metis="1 " --download-parmetis="1 " --download-superlu_dist="1 " --download-hypre=1 PETSC_ARCH=gnu-dbg-32idx
[5]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line 83 in /home/frank/petsc/src/vec/vec/interface/vector.c
[5]PETSC ERROR: #2 DMCreateGlobalVector_DA() line 45 in /home/frank/petsc/src/dm/impls/da/dadist.c
[5]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in /home/frank/petsc/src/dm/interface/dm.c
[7]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[7]PETSC ERROR: Null argument, when expecting valid pointer
[7]PETSC ERROR: Null Object: Parameter # 2
[7]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[7]PETSC ERROR: Petsc Development GIT revision: v3.7.4-1571-g7fc5cb5 GIT Date: 2016-10-05 10:56:19 -0500
[7]PETSC ERROR: ./test_ksp.exe on a gnu-dbg-32idx named kolmog1 by frank Wed Oct 5 18:58:44 2016
[7]PETSC ERROR: Configure options --known-mpi-shared="0 " --known-memcmp-ok --with-debugging="1 " --with-shared-libraries=0 --with-mpi-compilers="1 " --download-blacs="1 " --download-metis="1 " --download-parmetis="1 " --download-superlu_dist="1 " --download-hypre=1 PETSC_ARCH=gnu-dbg-32idx
[7]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line 83 in /home/frank/petsc/src/vec/vec/interface/vector.c
[7]PETSC ERROR: #2 DMCreateGlobalVector_DA() line 45 in /home/frank/petsc/src/dm/impls/da/dadist.c
[7]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in /home/frank/petsc/src/dm/interface/dm.c
More information about the petsc-users
mailing list