[petsc-users] Compilation error in petsc 3.1-p8 with ParMetis

2011-07-26 Thread Mohammad Mirzadeh
- > > Downloaded parmetis could not be used. Please check install in > /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug > > > *** > > File "./config/configure.py", line 257, in petsc_configure > > framework.configure(out = sys.stdout) > > File > "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/framework.py", > line 944, in configure > > child.configure() > > File > "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/package.py", > line 456, in configure > > self.executeTest(self.configureLibrary) > > File > "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/base.py", > line 97, in executeTest > > ret = apply(test, args,kargs) > > File > "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/package.py", > line 395, in configureLibrary > > for location, directory, lib, incl in self.generateGuesses(): > > File > "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/package.py", > line 210, in generateGuesses > > raise RuntimeError('Downloaded '+self.package+' could not be used. > Please check install in '+d+'\n') > > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110726/7b24f9f6/attachment-0001.htm>

[petsc-users] Compilation error in petsc 3.1-p8 with ParMetis

2011-07-26 Thread Barry Smith
Please do a fresh version of the --download-parmetis run and send the configure.log to petsc-maint at mcs.anl.gov This mailing list is not for large attachments or configure failures. To make sure everything is clean please remove /home/mohammad/soft/petsc-3.1-p8-debug and get a new copy

[petsc-users] use Superlu as ilu preconditioner

2011-07-26 Thread Ping Rong
Dear developers, I have compiled petsc-3.1-p8 for a while. Now I would like to use superlu as an ilu preconditioner, since it offers the drop tolerance option. I have read in a thread (https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2010-December/007439.html) that one can run the code with

[petsc-users] PETSc, C++ and Eclipse

2011-07-26 Thread Barry Smith
There is a tiny bit of information in the PETSc users manual about Eclipse: \section{Eclipse Users} \sindex{eclipse} If you are interested in developing code that uses PETSc from Eclipse or developing PETSc in Eclipse and have knowledge of how to do indexing and build libraries in Eclipse pl

[petsc-users] use Superlu as ilu preconditioner

2011-07-26 Thread Hong Zhang
Did you call KSPSetFromOptions(ksp)? Run your code with '-options_table' to dump list of options inputted or '-options_left' to dump list of unused options. I tested with petsc-3.1/src/ksp/ksp/examples/tutorials/ex2.c: ./ex2 -pc_type ilu -pc_factor_mat_solver_package superlu -mat_superlu_ilu_dropt

[petsc-users] PETSc, C++ and Eclipse

2011-07-26 Thread John Chludzinski
Does Eclipse use its own proprietary project files vs. makefiles? ---John On Tue, Jul 26, 2011 at 8:25 PM, Matt Bockman wrote: > I am using Ubuntu Linux. > > Matt > > On Tue, Jul 26, 2011 at 5:11 PM, John Chludzinski > wrote: >> >> Try using Cygwin to build the PETSc libraries with VC++. ?This

[petsc-users] Compilation error in petsc 3.1-p8 with ParMetis

2011-07-26 Thread Mohammad Mirzadeh
8-debug/config/BuildSystem/config/package.py", line 210, in generateGuesses raise RuntimeError('Downloaded '+self.package+' could not be used. Please check install in '+d+'\n') -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110726/d399b8d3/attachment-0001.htm>

[petsc-users] Using fortran modules in petsc

2011-07-26 Thread Haren, S.W. van (Steven)
Kind regards, Steven -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4823 bytes Desc: not available URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110726/efea8d4e/attachment.bin>

[petsc-users] PETSc, C++ and Eclipse

2011-07-26 Thread John Chludzinski
Try using Cygwin to build the PETSc libraries with VC++. This way you'll have the *.lib (vs. *.a Unix/Linux/Cygwin libraries) files you can link against. Go to the install PETSc instructions and follow the ones for Win32. ---John On Tue, Jul 26, 2011 at 5:32 PM, Matt Bockman wrote: > Has anyon

[petsc-users] hdf5 directive

2011-07-26 Thread Blaise Bourdin
PETSC_HAVE_HDF5 On Jul 26, 2011, at 5:25 PM, Ataollah Mesgarnejad wrote: > Dear all, > > Is there a preprocessor directive to check if PETSc has been compiled with > hdf5 or not ? (something like PETSC_HAS_HDF5?!!) > > Best, > Ata -- Department of Mathematics and Center for Computation & Tech

[petsc-users] PETSc, C++ and Eclipse

2011-07-26 Thread Matt Bockman
> like > > to link PETSc w/my application but I'm not sure how to do this. > > > > Suggestions? > > > > Thanks, > > Matt > > > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110726/bc7f8a57/attachment-0001.htm>

[petsc-users] hdf5 directive

2011-07-26 Thread Ataollah Mesgarnejad
Dear all, Is there a preprocessor directive to check if PETSc has been compiled with hdf5 or not ? (something like PETSC_HAS_HDF5?!!) Best, Ata

[petsc-users] PETSc, C++ and Eclipse

2011-07-26 Thread Matt Bockman
-- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110726/6769eb2f/attachment.htm>

[petsc-users] Using fortran modules in petsc

2011-07-26 Thread Barry Smith
We cannot handle winmail.dat attachments. Seems likely you have ierr declared both in the module and in your routine, and the compiler cannot handle that. Since you are using ierr as an argument to your subroutines I don't think you should be declaring it in the module at all. Barry

[petsc-users] Conditional Constraints

2011-07-26 Thread Vijay S. Mahadevan
gt; >>>>>> petsc-dev). >> >>>>>> >> >>>>>> This is all new code so we would be interested in your >> >>>>>> feedback. >> >>>>>> >> >>>>>> >> >>>>>> Barry >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> On Jul 22, 2011, at 3:33 PM, Jonathan Backs wrote: >> >>>>>> >> >>>>>>> Hi, >> >>>>>>> >> >>>>>>> I am trying to add a constraint feature to my first PETSc >> >>>>>>> application, which uses the finite difference method to >> >>>>>>> calculate >> >>>>>>> the potential distribution produced by a collection of >> >>>>>>> electrodes >> >>>>>>> in a resistive medium. I would like to make this simulation >> >>>>>>> more >> >>>>>>> realistic by imposing a maximum electric current and a maximum >> >>>>>>> potential difference that can be supplied to each electrode by >> >>>>>>> the >> >>>>>>> power supply. If the medium between the electrodes is very >> >>>>>>> conductive, the current maximum would be exceeded by the >> >>>>>>> maximum >> >>>>>>> potential difference, so the potential difference should be >> >>>>>>> decreased from maximum until it produces the maximum current. >> >>>>>>> On >> >>>>>>> the other hand, the potential difference between the >> >>>>>>> electrodes >> >>>>>>> should remain at maximum as long as the current remains below >> >>>>>>> maximum (say, for a less conductive medium). >> >>>>>>> >> >>>>>>> I added an extra degree of freedom (the electrode voltages) to >> >>>>>>> my >> >>>>>>> DMDA, and I developed a set of conditional expressions that >> >>>>>>> describe the above constraints, but one problem is that the >> >>>>>>> logic >> >>>>>>> relies on if-then-else decisions that are made when forming >> >>>>>>> the >> >>>>>>> function/residual and the Jacobian. Once these decisions are >> >>>>>>> made, >> >>>>>>> of course, the conditions are not checked again until the next >> >>>>>>> function or Jacobian evaluation. The non-linear solver then >> >>>>>>> tends >> >>>>>>> to oscillate between extreme solutions to the opposing >> >>>>>>> conditions >> >>>>>>> with each iteration, and never converges towards a reasonable >> >>>>>>> solution. >> >>>>>>> >> >>>>>>> Is there a better strategy for solving such problems? Does >> >>>>>>> PETSc >> >>>>>>> offer mechanisms to aid in their solution? I would very much >> >>>>>>> appreciate any hints. >> >>>>>>> >> >>>>>>> Thank you for your time, >> >>>>>>> >> >>>>>>> Jon >> >>>>>> >> >>>>> >> >>> >> >> >> > >> > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110726/814a594f/attachment-0001.htm>