[petsc-dev] Fwd: [petsc-maint #124771] bug report

Barry Smith bsmith at mcs.anl.gov
Thu Jul 19 17:06:04 CDT 2012


   Satish,

     Is there anyway to change the configuration of petsc-maint so that when developers respond it doesn't go directly to the user but instead goes back to the petsc-maint server, it strips out the individual developers email address and then forwards on to the user?

    Barry


Begin forwarded message:

> From: Barry Smith <bsmith at mcs.anl.gov>
> Date: July 19, 2012 5:04:14 PM CDT
> To: Zahra Seifollahi <zahraseifollahi2009 at gmail.com>, "petsc-maint at mcs.anl.gov Balay" <petsc-maint at mcs.anl.gov>
> Subject: Re: [petsc-maint #124771] bug report
> 
> 
>  NEVER NEVER NEVER send petsc-maint email to individual petsc-developers; we have deadlines too. Always make sure it is sent to petsc-maint at mcs.anl.gov
> 
>   Barry
> 
> On Jul 19, 2012, at 3:50 PM, Zahra Seifollahi wrote:
> 
>> why do I get this? I'm terribly sorry for asking a lot, but my dead line is really soon and I don't have enough time for studying every thing. help me please.
>> I also attached my program, I would be really grateful if you check it.
>> 
>> $ /packages/petsc-3.3-p1/win32-gnu/bin/mpiexec -bootstrap fork -n 1 ./ex2
>> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
>> [0]PETSC ERROR: Object is in wrong state!
>> [0]PETSC ERROR: Not for unassembled matrix!
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 1, Fri Jun 15 09:30:49 CDT 2012
>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
>> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>> [0]PETSC ERROR: See docs/index.html for manual pages.
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: ./ex2 on a win32-gnu named ZAHRA-VAIO by Zahra Fri Jul 20 01:08:40 2012
>> [0]PETSC ERROR: Libraries linked from /packages/petsc-3.3-p1/win32-gnu/lib
>> [0]PETSC ERROR: Configure run at Wed Jul 11 23:45:53 2012
>> [0]PETSC ERROR: Configure options PETSC_ARCH=win32-gnu --with-cc=gcc --with-cxx=g++ --with-fc=0 --with-clanguage=cxx --download-f2cblaslapack=1 --download-mpich=1 --download-parmetis=1 --downloa
>> d-boost=1 --download-metis=1 --useThreads=0
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: MatGetOrdering() line 192 in /packages/petsc-3.3-p1/src/mat/order/sorder.c
>> [0]PETSC ERROR: PCSetup_ICC() line 14 in /packages/petsc-3.3-p1/src/ksp/pc/impls/factor/icc/icc.c
>> [0]PETSC ERROR: PCSetUp() line 832 in /packages/petsc-3.3-p1/src/ksp/pc/interface/precon.c
>> [0]PETSC ERROR: KSPSetUp() line 278 in /packages/petsc-3.3-p1/src/ksp/ksp/interface/itfunc.c
>> [0]PETSC ERROR: main() line 479 in src/ksp/ksp/examples/tutorials/ex2.c
>> application called MPI_Abort(MPI_COMM_WORLD, 73) - process 0
>> [cli_0]: aborting job:
>> application called MPI_Abort(MPI_COMM_WORLD, 73) - process 0
>> 
>> and also
>> 
>> $ /packages/petsc-3.3-p1/win32-gnu/bin/mpiexec -bootstrap fork -n 2 ./ex2 -mat_view
>> Matrix Object: 1 MPI processes
>>  type: mpiaij
>> row 0: (0, 0)  (1, 1)  (2, 1)
>> row 1: (0, 0)  (1, 0)  (2, 1)
>> row 2: (0, 0)  (1, 0)  (2, 0)
>> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
>> [0]PETSC ERROR: No support for this operation for this object type!
>> [0]PETSC ERROR: Only local values currently supported!
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 1, Fri Jun 15 09:30:49 CDT 2012
>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
>> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>> [0]PETSC ERROR: See docs/index.html for manual pages.
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: ./ex2 on a win32-gnu named ZAHRA-VAIO by Zahra Fri Jul 20 01:13:49 2012
>> [0]PETSC ERROR: Libraries linked from /packages/petsc-3.3-p1/win32-gnu/lib
>> [0]PETSC ERROR: Configure run at Wed Jul 11 23:45:53 2012
>> [0]PETSC ERROR: Configure options PETSC_ARCH=win32-gnu --with-cc=gcc --with-cxx=g++ --with-fc=0 --with-clanguage=cxx --download-f2cblaslapack=1 --download-mpich=1 --download-parmetis=1 --downloa
>> d-boost=1 --download-metis=1 --useThreads=0
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: MatGetValues_MPIAIJ() line 598 in /packages/petsc-3.3-p1/src/mat/impls/aij/mpi/mpiaij.c
>> [0]PETSC ERROR: MatGetValues() line 1602 in /packages/petsc-3.3-p1/src/mat/interface/matrix.c
>> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
>> [0]PETSC ERROR: No support for this operation for this object type!
>> [0]PETSC ERROR: Only local values currently supported!
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 1, Fri Jun 15 09:30:49 CDT 2012
>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
>> ....
>> 
>> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
>> [0]PETSC ERROR: Object is in wrong state!
>> [0]PETSC ERROR: Not for unassembled matrix!
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 1, Fri Jun 15 09:30:49 CDT 2012
>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
>> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>> [0]PETSC ERROR: See docs/index.html for manual pages.
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: ./ex2 on a win32-gnu named ZAHRA-VAIO by Zahra Fri Jul 20 01:13:49 2012
>> [0]PETSC ERROR: Libraries linked from /packages/petsc-3.3-p1/win32-gnu/lib
>> [0]PETSC ERROR: Configure run at Wed Jul 11 23:45:53 2012
>> [0]PETSC ERROR: Configure options PETSC_ARCH=win32-gnu --with-cc=gcc --with-cxx=g++ --with-fc=0 --with-clanguage=cxx --download-f2cblaslapack=1 --download-mpich=1 --download-parmetis=1 --downloa
>> d-boost=1 --download-metis=1 --useThreads=0
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: MatGetDiagonalBlock() line 91 in /packages/petsc-3.3-p1/src/mat/interface/matrix.c
>> [0]PETSC ERROR: PCSetUp_BJacobi() line 130 in /packages/petsc-3.3-p1/src/ksp/pc/impls/bjacobi/bjacobi.c
>> [0]PETSC ERROR: PCSetUp() line 832 in /packages/petsc-3.3-p1/src/ksp/pc/interface/precon.c
>> [0]PETSC ERROR: KSPSetUp() line 278 in /packages/petsc-3.3-p1/src/ksp/ksp/interface/itfunc.c
>> [0]PETSC ERROR: main() line 479 in src/ksp/ksp/examples/tutorials/ex2.c
>> application called MPI_Abort(MPI_COMM_WORLD, 73) - process 0
>> [cli_0]: aborting job:
>> application called MPI_Abort(MPI_COMM_WORLD, 73) - process 0
>> 
>> how can I handle these problems? 
>> 
>> On Fri, Jul 20, 2012 at 12:58 AM, Zahra Seifollahi <zahraseifollahi2009 at gmail.com> wrote:
>> that error is ok now
>> 
>> 
>> On Fri, Jul 20, 2012 at 12:36 AM, Zahra Seifollahi <zahraseifollahi2009 at gmail.com> wrote:
>> I used  MatDuplicate and it's ok now, but again I've got this:
>> $ /packages/petsc-3.3-p1/win32-gnu/bin/mpiexec -bootstrap fork -n 1 ./ex2
>> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
>> [0]PETSC ERROR: Argument out of range!
>> [0]PETSC ERROR: Invalid stage -1 should be in [0,1)!
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 1, Fri Jun 15 09:30:49 CDT 2012
>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
>> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>> [0]PETSC ERROR: See docs/index.html for manual pages.
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: ./ex2 on a win32-gnu named ZAHRA-VAIO by Zahra Fri Jul 20 00:33:01 2012
>> [0]PETSC ERROR: Libraries linked from /packages/petsc-3.3-p1/win32-gnu/lib
>> [0]PETSC ERROR: Configure run at Wed Jul 11 23:45:53 2012
>> [0]PETSC ERROR: Configure options PETSC_ARCH=win32-gnu --with-cc=gcc --with-cxx=g++ --with-fc=0 --with-clanguage=cxx --download-f2cblaslapack=1 --download-mpich=1 --download-parmetis=1 --downloa
>> d-boost=1 --download-metis=1 --useThreads=0
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: PetscStageLogGetClassPerfLog() line 353 in /packages/petsc-3.3-p1/src/sys/plog/utils/stageLog.c
>> [0]PETSC ERROR: PetscLogObjCreateDefault() line 309 in /packages/petsc-3.3-p1/src/sys/plog/utils/classLog.c
>> [0]PETSC ERROR: MatCreate() line 74 in /packages/petsc-3.3-p1/src/mat/utils/gcreate.c
>> [0]PETSC ERROR: MatDuplicate_SeqAIJ() line 3868 in /packages/petsc-3.3-p1/src/mat/impls/aij/seq/aij.c
>> [0]PETSC ERROR: MatDuplicate() line 3963 in /packages/petsc-3.3-p1/src/mat/interface/matrix.c
>> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
>> [0]PETSC ERROR: Null argument, when expecting valid pointer!
>> [0]PETSC ERROR: Null Object: Parameter # 1!
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 1, Fri Jun 15 09:30:49 CDT 2012
>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
>> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>> [0]PETSC ERROR: See docs/index.html for manual pages.
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: ./ex2 on a win32-gnu named ZAHRA-VAIO by Zahra Fri Jul 20 00:33:01 2012
>> [0]PETSC ERROR: Libraries linked from /packages/petsc-3.3-p1/win32-gnu/lib
>> [0]PETSC ERROR: Configure run at Wed Jul 11 23:45:53 2012
>> [0]PETSC ERROR: Configure options PETSC_ARCH=win32-gnu --with-cc=gcc --with-cxx=g++ --with-fc=0 --with-clanguage=cxx --download-f2cblaslapack=1 --download-mpich=1 --download-parmetis=1 --downloa
>> d-boost=1 --download-metis=1 --useThreads=0
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> [0]PETSC ERROR: MatSetUp() line 630 in /packages/petsc-3.3-p1/src/mat/interface/matrix.c
>> [0]PETSC ERROR: main() line 352 in src/ksp/ksp/examples/tutorials/ex2.c
>> application called MPI_Abort(MPI_COMM_WORLD, 85) - process 0
>> [cli_0]: aborting job:
>> application called MPI_Abort(MPI_COMM_WORLD, 85) - process 0
>> 
>> I don't know what is about! wouldn't these errors finish?! 
>> 
>> On Fri, Jul 20, 2012 at 12:29 AM, Zahra Seifollahi <zahraseifollahi2009 at gmail.com> wrote:
>> I need a copy of K matrix with all of these elements, should I use  MatDuplicate()? 
>> 
>> 
>> On Thu, Jul 19, 2012 at 11:49 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>> 
>>  You need to create and setup the second matrix before copying into it. That is kk must be a valid matrix. Are you sure you do not want MatDuplicate()?
>> On Jul 19, 2012, at 2:08 PM, Zahra Seifollahi wrote:
>> 
>>> thank you. And then what's wrong with this?
>>> 
>>> *[0]PETSC ERROR: --------------------- Error Message
>>> ------------------------------------*
>>> *[0]PETSC ERROR: Invalid argument!*
>>> *[0]PETSC ERROR: Wrong type of object: Parameter # 2!*
>>> *[0]PETSC ERROR:
>>> ------------------------------------------------------------------------*
>>> *[0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 1, Fri Jun 15 09:30:49
>>> CDT 2012*
>>> *[0]PETSC ERROR: See docs/changes/index.html for recent updates.*
>>> *[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.*
>>> *[0]PETSC ERROR: See docs/index.html for manual pages.*
>>> *[0]PETSC ERROR:
>>> ------------------------------------------------------------------------*
>>> *[0]PETSC ERROR: ./ex2 on a win32-gnu named ZAHRA-VAIO by Zahra Thu Jul 19
>>> 23:34:11 2012*
>>> *[0]PETSC ERROR: Libraries linked from /packages/petsc-3.3-p1/win32-gnu/lib*
>>> *[0]PETSC ERROR: Configure run at Wed Jul 11 23:45:53 2012*
>>> *[0]PETSC ERROR: Configure options PETSC_ARCH=win32-gnu --with-cc=gcc
>>> --with-cxx=g++ --with-fc=0 --with-clanguage=cxx --download-f2cblaslapack=1
>>> --download-mpich=1 --download-parmetis=1 --downloa*
>>> *d-boost=1 --download-metis=1 --useThreads=0*
>>> *[0]PETSC ERROR:
>>> ------------------------------------------------------------------------*
>>> *[0]PETSC ERROR: MatCopy() line 3614 in
>>> /packages/petsc-3.3-p1/src/mat/interface/matrix.c*
>>> *[0]PETSC ERROR: --------------------- Error Message
>>> ------------------------------------*
>>> *[0]PETSC ERROR: Invalid argument!*
>>> *[0]PETSC ERROR: Wrong type of object: Parameter # 1!*
>>> *[0]PETSC ERROR:
>>> ------------------------------------------------------------------------*
>>> *[0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 1, Fri Jun 15 09:30:49
>>> CDT 2012*
>>> *[0]PETSC ERROR: See docs/changes/index.html for recent updates.*
>>> *[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.*
>>> *[0]PETSC ERROR: See docs/index.html for manual pages.*
>>> *[0]PETSC ERROR:
>>> ------------------------------------------------------------------------*
>>> *[0]PETSC ERROR: ./ex2 on a win32-gnu named ZAHRA-VAIO by Zahra Thu Jul 19
>>> 23:34:11 2012*
>>> *[0]PETSC ERROR: Libraries linked from /packages/petsc-3.3-p1/win32-gnu/lib*
>>> *[0]PETSC ERROR: Configure run at Wed Jul 11 23:45:53 2012*
>>> *[0]PETSC ERROR: Configure options PETSC_ARCH=win32-gnu --with-cc=gcc
>>> --with-cxx=g++ --with-fc=0 --with-clanguage=cxx --download-f2cblaslapack=1
>>> --download-mpich=1 --download-parmetis=1 --downloa*
>>> *d-boost=1 --download-metis=1 --useThreads=0*
>>> *[0]PETSC ERROR:
>>> ------------------------------------------------------------------------*
>>> *[0]PETSC ERROR: MatSetUp() line 630 in
>>> /packages/petsc-3.3-p1/src/mat/interface/matrix.c*
>>> *[0]PETSC ERROR: main() line 352 in src/ksp/ksp/examples/tutorials/ex2.c*
>>> *application called MPI_Abort(MPI_COMM_WORLD, 62) - process 0*
>>> *[cli_0]: aborting job:*
>>> *application called MPI_Abort(MPI_COMM_WORLD, 62) - process 0*
>>> *
>>> *
>>> I copied K matrix into K matrix  in my program by this command:
>>> ierr = MatCopy(K,KK,SAME_NONZERO_PATTERN);
>>> Is it ok then?
>>> 
>>> and I've got this during making:
>>> *ex2.c:348:52: warning: ?KK? may be used uninitialized in this function*
>>> 
>>> On Thu, Jul 19, 2012 at 11:07 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>>> 
>>>> 
>>>> It only needs to be called once for each Mat.
>>>> 
>>>>  Barry
>>>> 
>>>> On Jul 19, 2012, at 1:12 PM, Zahra Seifollahi wrote:
>>>> 
>>>>> Actually I've done, should I call it before all setting values in the
>>>> matrix or just one time?
>>>>> 
>>>>> On Thu, Jul 19, 2012 at 10:35 PM, Barry Smith <bsmith at mcs.anl.gov>
>>>> wrote:
>>>>> 
>>>>>  You need to call either MatSetUp() or
>>>> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatXAIJSetPreallocation.html before setting values in the matrix.
>>>>> 
>>>>>   This was a change introduced into petsc-3.3
>>>>> 
>>>>>  Barry
>>>>> 
>>>>> On Jul 19, 2012, at 12:36 PM, Zahra Seifollahi wrote:
>>>>> 
>>>>>> Hello.
>>>>>> I've written a program based on petsc but when I tried to run this
>>>> program
>>>>>> I've got this error:
>>>>>> 
>>>>>> *ackages/petsc-3.3-p1/win32-gnu/bin/mpiexec -bootstrap fork -n 1 ./ex2
>>>>>> -mat_type mpiaij*
>>>>>> *ETSC ERROR: --------------------- Error Message
>>>>>> ------------------------------------*
>>>>>> *ETSC ERROR: Object is in wrong state!*
>>>>>> *ETSC ERROR: Mat object's type is not set: Argument # 1!*
>>>>>> *ETSC ERROR:
>>>>>> 
>>>> ------------------------------------------------------------------------*
>>>>>> *ETSC ERROR: Petsc Release Version 3.3.0, Patch 1, Fri Jun 15 09:30:49
>>>> CDT
>>>>>> 2012*
>>>>>> *ETSC ERROR: See docs/changes/index.html for recent updates.*
>>>>>> *ETSC ERROR: See docs/faq.html for hints about trouble shooting.*
>>>>>> *ETSC ERROR: See docs/index.html for manual pages.*
>>>>>> *ETSC ERROR:
>>>>>> 
>>>> ------------------------------------------------------------------------*
>>>>>> *ETSC ERROR: ./ex2 on a win32-gnu named ZAHRA-VAIO by Zahra Thu Jul 19
>>>>>> 22:02:55 2012*
>>>>>> *ETSC ERROR: Libraries linked from
>>>> /packages/petsc-3.3-p1/win32-gnu/lib*
>>>>>> *ETSC ERROR: Configure run at Wed Jul 11 23:45:53 2012*
>>>>>> *ETSC ERROR: Configure options PETSC_ARCH=win32-gnu --with-cc=gcc
>>>>>> --with-cxx=g++ --with-fc=0 --with-clanguage=cxx
>>>> --download-f2cblaslapack=1
>>>>>> --download-mpich=1 --download-parmetis=1 --downloa*
>>>>>> *ost=1 --download-metis=1 --useThreads=0*
>>>>>> *ETSC ERROR:
>>>>>> 
>>>> ------------------------------------------------------------------------*
>>>>>> *ETSC ERROR: MatSetValues() line 988 in
>>>>>> /packages/petsc-3.3-p1/src/mat/interface/matrix.c*
>>>>>> *ETSC ERROR: main() line 129 in src/ksp/ksp/examples/tutorials/ex2.c*
>>>>>> *ication called MPI_Abort(MPI_COMM_WORLD, 73) - process 0*
>>>>>> *_0]: aborting job:*
>>>>>> *ication called MPI_Abort(MPI_COMM_WORLD, 73) - process 0 *
>>>>>> 
>>>>>> What's wrong with it? What should I do to figure out this problem?
>>>> help me
>>>>>> please.
>>>>>> --
>>>>>> Zahra Seifollahi
>>>>>> KNTU University of Technology
>>>>>> Aerospace engineering
>>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Zahra Seifollahi
>>>>> KNTU University of Technology
>>>>> Aerospace engineering
>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> --
>>> Zahra Seifollahi
>>> KNTU University of Technology
>>> Aerospace engineering
>>> 
>> 
>> 
>> 
>> 
>> -- 
>> Zahra Seifollahi
>> KNTU University of Technology
>> Aerospace engineering
>> 
>> 
>> 
>> 
>> -- 
>> Zahra Seifollahi
>> KNTU University of Technology
>> Aerospace engineering
>> 
>> 
>> 
>> 
>> -- 
>> Zahra Seifollahi
>> KNTU University of Technology
>> Aerospace engineering
>> 
>> 
>> 
>> 
>> -- 
>> Zahra Seifollahi
>> KNTU University of Technology
>> Aerospace engineering
>> 
>> <ex2.c>
> 




More information about the petsc-dev mailing list