[petsc-dev] no module named cmakegen
On Mon, Aug 23, 2010 at 10:38 PM, Jed Brown jed at 59a2.org wrote: On Mon, 23 Aug 2010 17:21:52 -0500 (CDT), Satish Balay balay at mcs.anl.gov wrote: On Mon, 23 Aug 2010, Satish Balay wrote: Now that there are more and more standalone scripts - perhaps we need a better consistant way to handle this - but I don't know what that is.. mercurial way is to have 'hg' be the frontend script to all commands. i.e no invocation of individual scripts .. Okay, I understand Satish. This sounds good. Perhaps we should adopt that? Interesting idea. Have one top-level petscconf with subcommands to configure, build (via make, builder.py, cmake), interrogate for linking options, etc. Matt, it doesn't require modification of PYTHONPATH since you would use the path in which the executable resides (may or may not be installed). You wouldn't normally put the executable in your path, instead run /path/to/installed-or-not/petsc-x.y/petscconf subcommand --options The only thing you couldn't do is to move petscconf to some other location (independent of the rest of the PETSc tree). This begs the question of how PETSC_ARCH would be handled. Either there would be separate top-level script for ARCH-specific and ARCH-agnostic functionality, or PETSC_ARCH would need to remain an environment or otherwise specified configuration variable. I am fine with PETSC_ARCH being a script parameter, and having a default. Matt Jed -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -- next part -- An HTML attachment was scrubbed... URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/a31c56c5/attachment.html
[petsc-dev] Problem with conjugate gradient solver
Message: 6 Date: Mon, 23 Aug 2010 18:40:34 -0500 From: Barry Smith bsmith at mcs.anl.gov Subject: Re: [petsc-dev] Problem with conjugate gradient solver To: For users of the development version of PETSc petsc-dev at mcs.anl.gov Message-ID: 6432610F-F243-4C9C-AB6A-0944221AE18D at mcs.anl.gov Content-Type: text/plain; charset=us-ascii On Aug 23, 2010, at 2:31 PM, Anush Krishnan wrote: Hi, I was trying to compile and run the example file $PETSC_DIR/src/ksp/pc/examples/tutorials/ex3.c, which demonstrates PETSc's preconditioned conjugate gradient solver for a system of linear equations. After compiling, running make runex3 is supposed to throw up the error Divergence because of indefinite preconditioner and running make runex3_pd is supposed to work and give the correct solution. But instead I get the error Other kind of divergence: this should not happen. for the latter. Is there some bug in the code, or are there any other options that need to be set? Hmm, worked for me. Please hg pull; hg update then rebuild PETSc and run the make runex3 runex3_pd again and send the output. I added to that example what reason it did have to maybe help determine the problem. Or you can run the example with the options given in the makefile and also the option -ksp_converged_reason I've attached the outputs I got with runex3 and runex3_pd (1 and 2 respectively. I commented out the statements after the execute commands to prevent deletion of the generated output files). This was on revision 16788. Thanks, Anush Barry Thanks, Anush -- next part -- An HTML attachment was scrubbed... URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/08fcae5b/attachment.html -- next part -- A non-text attachment was scrubbed... Name: ex3_inode.out_1 Type: application/octet-stream Size: 6684 bytes Desc: not available URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/08fcae5b/attachment.obj -- next part -- A non-text attachment was scrubbed... Name: ex3_inode.out_2 Type: application/octet-stream Size: 9113 bytes Desc: not available URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/08fcae5b/attachment-0001.obj -- next part -- A non-text attachment was scrubbed... Name: ex3.tmp_1 Type: application/octet-stream Size: 6684 bytes Desc: not available URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/08fcae5b/attachment-0002.obj -- next part -- A non-text attachment was scrubbed... Name: ex3.tmp_2 Type: application/octet-stream Size: 9113 bytes Desc: not available URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/08fcae5b/attachment-0003.obj
[petsc-dev] Problem with conjugate gradient solver
Please send your configure.log to petsc-maint On Aug 23, 2010, at 11:17 PM, Anush Krishnan anush at bu.edu wrote: Message: 6 Date: Mon, 23 Aug 2010 18:40:34 -0500 From: Barry Smith bsmith at mcs.anl.gov Subject: Re: [petsc-dev] Problem with conjugate gradient solver To: For users of the development version of PETSc petsc-dev at mcs.anl.gov Message-ID: 6432610F-F243-4C9C-AB6A-0944221AE18D at mcs.anl.gov Content-Type: text/plain; charset=us-ascii On Aug 23, 2010, at 2:31 PM, Anush Krishnan wrote: Hi, I was trying to compile and run the example file $PETSC_DIR/src/ksp/pc/examples/tutorials/ex3.c, which demonstrates PETSc's preconditioned conjugate gradient solver for a system of linear equations. After compiling, running make runex3 is supposed to throw up the error Divergence because of indefinite preconditioner and running make runex3_pd is supposed to work and give the correct solution. But instead I get the error Other kind of divergence: this should not happen. for the latter. Is there some bug in the code, or are there any other options that need to be set? Hmm, worked for me. Please hg pull; hg update then rebuild PETSc and run the make runex3 runex3_pd again and send the output. I added to that example what reason it did have to maybe help determine the problem. Or you can run the example with the options given in the makefile and also the option -ksp_converged_reason I've attached the outputs I got with runex3 and runex3_pd (1 and 2 respectively. I commented out the statements after the execute commands to prevent deletion of the generated output files). This was on revision 16788. Thanks, Anush Barry Thanks, Anush ex3_inode.out_1 ex3_inode.out_2 ex3.tmp_1 ex3.tmp_2 -- next part -- An HTML attachment was scrubbed... URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/25107b00/attachment.html
[petsc-dev] Problem with conjugate gradient solver
Well you are doing nothing wrong. When I run the code I get the same results as you. I dump the matrix into Matlab and it has a negative eigenvalue so the example is wrong. The code is handling it correctly. eig(full(Mat_0)) ans = -0.8042 0.1716 0.6489 1. 1. 1. 1. I am cc:iing Victor who supposedly wrote the original example. Barry Attached is the matrix saved with -mat_view_matlab On Aug 23, 2010, at 11:17 PM, Anush Krishnan wrote: Message: 6 Date: Mon, 23 Aug 2010 18:40:34 -0500 From: Barry Smith bsmith at mcs.anl.gov Subject: Re: [petsc-dev] Problem with conjugate gradient solver To: For users of the development version of PETSc petsc-dev at mcs.anl.gov Message-ID: 6432610F-F243-4C9C-AB6A-0944221AE18D at mcs.anl.gov Content-Type: text/plain; charset=us-ascii On Aug 23, 2010, at 2:31 PM, Anush Krishnan wrote: Hi, I was trying to compile and run the example file $PETSC_DIR/src/ksp/pc/examples/tutorials/ex3.c, which demonstrates PETSc's preconditioned conjugate gradient solver for a system of linear equations. After compiling, running make runex3 is supposed to throw up the error Divergence because of indefinite preconditioner and running make runex3_pd is supposed to work and give the correct solution. But instead I get the error Other kind of divergence: this should not happen. for the latter. Is there some bug in the code, or are there any other options that need to be set? Hmm, worked for me. Please hg pull; hg update then rebuild PETSc and run the make runex3 runex3_pd again and send the output. I added to that example what reason it did have to maybe help determine the problem. Or you can run the example with the options given in the makefile and also the option -ksp_converged_reason I've attached the outputs I got with runex3 and runex3_pd (1 and 2 respectively. I commented out the statements after the execute commands to prevent deletion of the generated output files). This was on revision 16788. Thanks, Anush Barry Thanks, Anush ex3_inode.out_1ex3_inode.out_2ex3.tmp_1ex3.tmp_2 -- next part -- An HTML attachment was scrubbed... URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/092e404f/attachment.html -- next part -- A non-text attachment was scrubbed... Name: jeff.m Type: application/octet-stream Size: 64834 bytes Desc: not available URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/092e404f/attachment.obj -- next part -- An HTML attachment was scrubbed... URL: http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100824/092e404f/attachment-0001.html