We’re rewarding the question askers & reputations are being recalculated! Read more.
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options questions only user 81

PETSc is an open source suite of data structures and routines for the scalable (parallel) solution of scientific applications modeled by partial differential equations.

7
votes
2answers
I'm working on a machine with a version of PETSc compiled by someone else. Is there a straightforward way to find out which options were used at compile time from the installation itself? For example, is there a file that has all of the compile time options that is generated by make? …
asked Dec 16 '11 by Dan
2
votes
1answer
I've been trying to use a PetscBag to read in a number of options I want to pass to a program I'm writing. Before I came across the documentation for PetscBag, I was planning on using a struct and a f …
asked Mar 16 '12 by Dan
2
votes
1answer
I was looking at the documentation for PetscBagCreate(), and it says that The size of the A struct must be small enough to fit in a PetscInt; by default PetscInt is > 4 bytes. The warning about c …
asked Mar 13 '12 by Dan
2
votes
1answer
I have a PetscBag in my program that I want to write to a filename I have stored as a string. If I want to write to stdout, there is a pre-made PetscViewer macro for that. How do I create a viewer for …
asked May 17 '12 by Dan
1
vote
1answer
I'm writing a program that uses PETSc and SLEPc, and I was looking for a convienient way to read in options from the command line. The description of PetscBagSetFromOptions() in the official …
asked Mar 12 '12 by Dan
3
votes
1answer
I'm writing a petsc code using a sequential matrix type. Since I want it to be easy to parallelize, I put some stuff in the code that is useless now, but will make it easier to parallelize later …
asked Apr 23 '12 by Dan
3
votes
0answers
matplotlib seem to be the way to go with this. Basically, I want to use PetscBagView() or something like it to write a petsc bag to a file, and then use some python thing (built-in part of the standard …
asked Apr 11 '12 by Dan
1
vote
1answer
: -mat_view_draw - PetscDraws nonzero structure of matrix, using MatView() and PetscDrawOpenX(). But when I run my program with this option, I get the following error: [0]PETSC ERROR: --------------------- Error … Message ------------------------------------ [0]PETSC ERROR: No support for this operation for this object type! [0]PETSC ERROR: Viewer type draw not supported! [0]PETSC ERROR …
asked Apr 11 '12 by Dan
3
votes
2answers
seems to affect the CHEKRRQ() macro, and I don't get this warning when I compile the examples included with PETSc. The only obvious difference is that the example is entirely within one file whereas my … program is broken up into multiple files. Does PETSc support separate compilation, or does some aspect of the CHKERRQ() macro cause problems? …
asked Mar 22 '12 by Dan
5
votes
1answer
What is the difference between MATSEQMAIJ and MATSEQAIJ in PETSc? Also, where can I find more information on each of the MatTypes? I went to the MatType documentation, but it didn't have anything but the definitions. …
asked May 10 '12 by Dan
2
votes
1answer
The version of Petsc installed on my machine has PetscScalar set to be complex. I am making a matrix which has all real entries. Something like the following code compiles: PetscScalar …
asked Apr 10 '12 by Dan
17
votes
2answers
I'm planning to use multigrid to calulate some eigenvalues and vectors, and I noticed PETSc has high-level support for multigrid. The PETSc documentation says that this part of PETSc should not be … used, as it is being replaced soon. Which other libraries have high-level support for multigrid, and roughly how soon will PETSc release the new multigrid support? …
asked Dec 15 '11 by Dan
4
votes
1answer
I'm learning PETSc and trying to make the examples written in C. However, when I use the provided makefile, I get the following error: /usr/bin/ld: cannot find -lmkl When I check in the mkl/lib … directory, I find that none of the .a or .so files are called libmkl. Do I need to recompile PETSc to have the built-in makefiles link to MKL? Which library file should I link to if not lmkl? …
asked Dec 20 '11 by Dan
10
votes
1answer
Does compiling PETSc with an external BLAS/LAPACK library significantly affect performance on sparse matrices, or does it only use those libraries for dense matrix math? …
asked May 25 '12 by Dan
4
votes
2answers
elsewhere in the PETSc documentation it recommends building separate loops for the corners and edges. How can this be done in a parallel program? Is there a better way that works for parallel code not mentioned in the laplacian example code? …
asked May 15 '12 by Dan