PETSc, pronounced PET-see (the S is silent), is a suite of data structures and routines for the scalable (parallel) solution of scientific applications modeled by partial differential equations.
Questions tagged [petsc]
145 questions
1
vote
1 answer
Issues with Valgrind when running Petsc
I receive the following errors from valgrind.
==30996== Conditional jump or move depends on uninitialised value(s)
==30996== at 0x12B28904: ??? (in /usr/lib64/libmlx4-rdmav2.so)
==30996== by 0xE12CF9A: ibv_open_device (in…

Yue
- 23
- 5
1
vote
1 answer
Error compiling PETSc example on OS X
Here is hello.cpp. I'm on OS X. I built PETSc directly from source.
#include
int main(int argc,char **argv)
{
Vec x;
PetscInitialize(&argc, &argv, NULL, NULL);
VecCreateSeq(PETSC_COMM_SELF, 100, &x);
VecSet(x, 1.);
…

Brian Dolan
- 3,086
- 2
- 24
- 35
1
vote
1 answer
Read values out of PetscEventPerfInfo
I have an application using PETSc. For performance monitoring under (near) production runs, I'd like to log a small number of various values. Some generated by PETSc, some not.
Now I wonder: How can I read the time value out of PetscEventPerfInfo…

Michael
- 7,407
- 8
- 41
- 84
1
vote
1 answer
New install of Fenics demo crashes on MPICH_NUMVERSION
I am trying to run a basic demo from Fenics (2016.2.0) on Ubuntu 16.04.2, Python 2.7, Anaconda (with Spyder for the IDE). The demo is ft_01poisson.py. The error says:
RuntimeError: In instant.recompile: The module did not compile with command 'make…

carsonc
- 85
- 7
1
vote
1 answer
Unable to call PETSc/MPI-based external code in parallel OpenMDAO
I am writing an OpenMDAO problem that calls a group of external codes in a parallel group. One of these external codes is a PETSc-based fortran FEM code. I realize this is potentially problematic since OpenMDAO also utilizes PETSc. At the moment,…

aherrema
- 77
- 7
1
vote
1 answer
Building PETSc with Intel tools
I would like to install PETSc library with Intel compilers, OpenMP, MPI, MKL. I am not sure how to properly create configure file. I have intel parallel studio xe 2017 installed on my computer. I checked ./configure --help in PETSc directory for…

Bociek
- 1,195
- 2
- 13
- 28
1
vote
1 answer
Petsc Adding Matrix Values
I have a problem with PETSC. I have written a code in matlab and I am trying to translate this code to C++ using the PETSC library. I am writing a fluid dynamics simulation for multiphase flows and I am trying to do the equivalent of this matlab…

YousvanHalder
- 11
- 1
1
vote
1 answer
PETSC header #include'd in a module
I have a module which holds global variables. To declare some global variables, I need to use HDF5. I am also using a library, so I also need to include a header file. So the preamble of global_variable.F90 looks like this.
module…

user79973
- 55
- 8
1
vote
1 answer
PETSC 3.3 - How to compile and have all libpetscSOMETHING.so files?
I tried to compile PESTC using this configuration:
./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-f-blas-lapack=1 --download-openmpi --with-shared-libraries
make PETSC_DIR=/tmp/petsc-3.3-p7 PETSC_ARCH=arch-linux2-c-debug…

Arruda
- 862
- 1
- 12
- 24
1
vote
1 answer
PETSC_VIEWER_DRAW_WORLD shows nothing
I just started with PETSC and I'm trying to plot a matrix using matView. My code is like:
MatCreateSeqAIJWithArrays(PETSC_COMM_WORLD, nodes, nodes, rows, cols, values, net); //I want to visualize "net"
//Visualization
if(display >= 1){
…

Francielly Rodrigues
- 11
- 2
1
vote
2 answers
PETSC Build Error : C compiler does not work
I am trying to install PETSc on Cygwin terminal by invoking following command..
./configure --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' --download-fblaslapack
and
/configure --with-cc=cl --with-cxx=g++…

Manish
- 11
- 2
1
vote
1 answer
Using fp_trap to find cause of floating point exceptions in PETSc?
I'm not sure if this question belongs here or not. But I am having a problem with my code with PETSc saying that there is a floating point error. It is similar to the problem discussed in the links below:…

user4352158
- 731
- 4
- 13
- 24
1
vote
1 answer
PETSc undefined reference
I have a pretty beginners' question, but I'm really lost now. I'm beginning with PETSc, but I have problems with compilation of my code. I'm trying to use my own Makefile, but compiler keeps yelling "undefined reference" error. I've tried to figure…

Eenoku
- 2,741
- 4
- 32
- 64
1
vote
0 answers
Petsc Mex file crashes
I have a working code that solves a certain problem by using KSPSolve from Petsc (using gmres solver with ilu pre-conditioner).
I wanted to call this code from MATLAB so I coded a mex-file.
However, KSPSolve is crashing my mex file and MATLAB when…

Tohiko
- 1,860
- 2
- 18
- 26