Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

I have instaled PETSc and MUMPS (MacOS 15.6.1, M2), and confirmed that they seem to work fine; i.e., I run the exceutable from the command line: ./mypetscapp and it runs without issue. However, after ...
Stuart Barth's user avatar
5 votes
1 answer
107 views

I am trying to use the PETSc (Portable, Extensible Toolkit for Scientific Computation) library in Go over cgo. After the call of PetscInitialize, the program will crash at a random point with the ...
Fabian's user avatar
  • 81
4 votes
0 answers
79 views

I cannot run open-mpi or mpich on my machine (macOS (Darwin 24.5.0, macOS Sequoia 15.5) with an Intel (x86_64) processor), and I suspect there is something seriously wrong with my compilers or ...
Chancelor Roberts's user avatar
0 votes
0 answers
48 views

Genearlly, the type MATMPIAIJ requires that the row indices for different processors are continuous, e.g. processor 0 handles row 0 and 1, processor 1 handles row 2 and 3. But what if I need processor ...
Pentaery's user avatar
0 votes
1 answer
211 views

I am trying to read a sparse PETSc matrix saved from a Fortran code into a binary file like so: CALL PetscViewerBinaryOpen(PETSC_COMM_SELF, TRIM(ADJUSTL(filename)), FILE_MODE_WRITE, viewer2, ier) CALL ...
Artur's user avatar
  • 467
0 votes
0 answers
837 views

I'm trying to install petsc4py for python. I'm currently using WSL (Ubuntu) but I've tried in Windows as well and the result is always the same. The installation of e.g. numpy or pandas worked as ...
A.Be.'s user avatar
  • 1
0 votes
0 answers
122 views

I'm trying to get started with PETSc to solve ODEs in Python. In this code I try to solve a simple y'=-ky however it is outputting just 0s as solution. I canont see where the mistake is and neither ...
A.Be.'s user avatar
  • 1
0 votes
0 answers
63 views

I want to execute multiple files and two libraries (primme and slepc) using my makeFile. My makeFile looks like : # Compiler CC = gcc # Directories SLEPC_DIR = /home/student/Documents/projet/...
Wiki's user avatar
  • 1
0 votes
0 answers
278 views

I am trying to create a sparse block matrix in PETSc4py using local matrices assembled with SciPy. Below is a simple example code with comments import numpy as np import petsc4py from petsc4py import ...
jltorchinsky's user avatar
0 votes
1 answer
143 views

The following program is meant to set the value of the internally defined vector in petsc, which can then be read by DMDAVecGetArray: #include <petscdmda.h> #include <iostream> int main(...
Yes's user avatar
  • 453
2 votes
0 answers
235 views

I followed the configuration and installation of PETSc according to https://petsc.org/release/install/install/#installing-with-open-mpi-with-shared-mpi-libraries as a user not root. The basic check ...
Al-Farouq's user avatar
-1 votes
1 answer
235 views

This is a simple code from the book PETSc for Partial Differential Equations: Numerical Solutions in C and Python. It computes the zero of atan(x). If I run it in one process, it runs properly. ...
Eder Lima de Albuquerque's user avatar
0 votes
0 answers
424 views

after the operating system of the cluster I am running my application on with PETSC (Version 3.19) has been changed from CentOS 7 to Rocky Linux 8 and also the module system has been changed to Lmod, ...
Mahe's user avatar
  • 1
0 votes
0 answers
101 views

I am installing PETSc on Ubuntu 16.04 to later on build CrunchTope. The installation goes fine using the process defined on the PETSC website. When I run make all check, I get a positive reply that ...
hasan's user avatar
  • 1
0 votes
1 answer
438 views

Hello I'm trying to install PetSc on Windows11 with MSyS2 using the tutorial. But when I'm trying to do the last step of the installation using this line : " $ /usr/bin/python ./configure --with-...
ColinetA's user avatar
2 votes
0 answers
131 views

I am trying to use a custom matvec operator with PETSc MatShell in Fortran and inside of it, I want to use a mix of OpenMP and MKL multithreading (blas). The OpenMP and MKL threads are indeed launched,...
Astor's user avatar
  • 394
0 votes
1 answer
128 views

I have recently started using SLEPc for diagonalizing large sparse matrices, taking advantage of MPI. Everything works fine, except at the end when I want to write the eigenvectors to a file. I do ...
devanshu shekhar's user avatar
0 votes
1 answer
779 views

I want to use fftw in my c++ program. For this, I have installed petsc alongside the --download-fftw option, since I want to be using Petsc in the future as well. I simply downloaded the most recent ...
Yes's user avatar
  • 453
0 votes
1 answer
86 views

I am trying to do some matrix matrix multiplication using PETsc but if I increase the number of processes using the mpiexec -n, the matrix would be smaller than expected by the factor of number of ...
HLTran's user avatar
  • 1
1 vote
1 answer
70 views

I have tried to fix this error for quiet some time but can't find how to fix it. Is there someone who could help me out? It is an error when running the nort sea 2d model from thetis. [https://...
S_bolh's user avatar
  • 11
0 votes
0 answers
655 views

I have been trying to use PETSc for some MPI enhanced matrix operations, but I keep getting this error when I submit the job using slurm on a supercomputer: ERROR: ERROR: LoadError: LoadError: could ...
devanshu shekhar's user avatar
0 votes
1 answer
250 views

I'm using VSCode with Modern Fortran+fortls to write Fortran code with PETSc library. The declaration using PETSc's key words seems not being recognized at all. I tried to include the path of PETSc ...
DpD_'s user avatar
  • 3
0 votes
0 answers
205 views

I am working on a computational fluid dynamics code, and most of the primary design of the code is already written in Fortran. I intend to switch the linear algebra solver to use some PETSc utilities, ...
cutus_low's user avatar
1 vote
1 answer
275 views

I need to decompose the eigenvalues of the large-scale(such as 10M*10M) sparse matrix as quickly as possible.I try Spectra but it is slow,It seems that Blaze cannot be used for the first k eigenpair ...
zyg's user avatar
  • 39
2 votes
1 answer
646 views

I have a list of vectors that I want to gather in a single matrix Z. Here is the code I tried to use : import sys, slepc4py slepc4py.init(sys.argv) from petsc4py import PETSc from slepc4py import ...
Thomas's user avatar
  • 396
0 votes
1 answer
213 views

I have been trying to compile an old Python code. A couple of days ago I posted a question that described problems with accessing Python and gfortran. I solved the Python problem, then the question ...
Ant's user avatar
  • 897
1 vote
1 answer
271 views

I am trying to compile a simple PETSc program (Which works when compiled in Cygwin) in Visual Studio 2019. But I am unable to compile it in VS2019 even after linking all the necessary library files. I ...
sidarth narayanan's user avatar
1 vote
0 answers
792 views

I am trying to run a program using mpirun command (as shown below). mpirun -np 4 python test.py But I am getting following warning first: hwloc/linux: Ignoring PCI device with non-16bit domain. Pass -...
Pavan's user avatar
  • 165
1 vote
0 answers
213 views

i'm trying to configure and build PETSC library to use in my project, in the website of PETSC they recommend cygwin to install the library on windows. with Intel compilers they provide a file "...
farah soufiane's user avatar
0 votes
1 answer
1k views

After successfully installing and testing PETSc I went ahead and tried to install petsc4py with: $ sudo python3 -m pip install petsc4py but got loads of errors. Here are the messages: Collecting ...
Carlos Gouveia's user avatar
0 votes
0 answers
137 views

I try to install PETSc and SLEPc with cygwin on Windows following a manual. It says: mkdir petsc mkdir slepc git clone -b maint https://bitbucket.org/petsc/petsc petsc git clone -b maint https://...
S B's user avatar
  • 67
0 votes
0 answers
274 views

I am trying to use PETSc as a solver for a multiphase CFD code. The code is based on finite volume estimation. The calculation of matrix coefficients by themselves is time consuming, almost the same ...
Saeid's user avatar
  • 1
1 vote
0 answers
161 views

I am a beginner in using PETSc and I am trying to develop a function to reverse a PETSc matrix. However, as I am using a mpiaij matrix, PETSc shows no support for this type. [0]PETSC ERROR: No support ...
lcs_27's user avatar
  • 11
1 vote
1 answer
2k views

I want to use PETSc in a cpp code. I installed PETScand when run the cmd echo $PETSC_DIRI got the path to the library. I make a hello world code and #include "petsc.h" #include <iostream&...
mehdi_bm's user avatar
  • 409
0 votes
2 answers
558 views

This will be a long shot, but I would like to know if anyone in the community has the .json setting for running PETSc in VScode (for debbuging). Best Regards
user avatar
0 votes
2 answers
879 views

I am interested in using the open source code discussed here. The framework and some instruction on how to run the code is discussed here. To be able to use the code one should first install PETSc. I ...
Dude's user avatar
  • 230
1 vote
1 answer
127 views

I'm trying to use PETSc's DMDA Vectors with 2 degrees of freedom and access them using struct, like in the manual. However, when I try to use DMDAVecGetArray even with one degree of freedom (like in ...
Sergey's user avatar
  • 1,368
-1 votes
1 answer
61 views

I have this compiler error related to "in expansion of macro ‘CHKERRQ’" from PETSC whenever I call "CHKERRQ", I am not sure what causes it, could anyone please give any advice? ...
Feng's user avatar
  • 11
1 vote
1 answer
90 views

I'm implementing finite difference algorithm from uFDTD book. Many FDM equations involve operations on adjoined vector elements. For example, an update equation for electric field ez[m] = ez[m] + (hy[...
Sergey's user avatar
  • 1,368
1 vote
1 answer
611 views

I have a piece of C++ code (main.cpp) which uses armadillo to prepare a very LARGE sparse matrix and its r.h.s, to be solved like x = A\b. Problem: In armadillo, no parallel-iterative-linear sparse ...
AK20's user avatar
  • 11
0 votes
1 answer
177 views

I am trying to use some open-source CFD code, and it uses PETSC and some other libraries, so I installed them. But when I try to compile program useing 'make', it seems like libraries are not properly ...
songyi719's user avatar
0 votes
0 answers
80 views

I'm trying to upgrade an existing code which uses odeint to be able to use MPI for calculating the right hand side function more efficiently. It is possible to combine boost::odeint with MPI based on ...
arc_lupus's user avatar
  • 4,156
1 vote
1 answer
2k views

The make instruction is not finding the libraries required for compilation. They are in other folder than the usual /usr/include folder. I'm complying a simulation software called magnum.fe I already ...
Joshua Salazar's user avatar
0 votes
1 answer
186 views

I have a PETSc-matrix, and would like to apply a 1d-FFT on each row of that matrix, preferably while keeping the possibility having the matrix distributed over several nodes. Based on the ...
arc_lupus's user avatar
  • 4,156
1 vote
0 answers
74 views

I'm trying to figure out how CVODE interfaces with PETSc since I've been getting a memory corruption error when running the examples. I've isolated a minimal reproducible example below running this ...
Praharsh Suryadevara's user avatar
1 vote
0 answers
332 views

I met 2 problems when I build PETSc as follows: ./configure --prefix=/home/lengjun/softwares/petsc_install make PETSC_DIR=/home/lengjun/softwares/petsc-3.14.1 PETSC_ARCH=arch-linux2-c-debug all make ...
Jun's user avatar
  • 11
0 votes
1 answer
636 views

I'm looking at several examples from PETSc and petsc4py and looking at the PDF user manual of PETSc. The manual states: For those not familiar with MPI, acommunicatoris a way of indicating a ...
tsj's user avatar
  • 792
-1 votes
1 answer
473 views

I'm leaning petsc (3.13.1) on a Linux virtual machine. The compiler is mpich-3.2.1 compiled with gfortran. While going through the tutorials I found the extensinos are .F90, the files did not work ...
Frank Han's user avatar
0 votes
1 answer
235 views

I am trying to pass an array of Vec's in PETSc to a function, modify it internally and retrieve the results. A pseudocode is as follows: PetscErrorCode foo(Vec *y, int n) { // ... ...
Electronic_sense's user avatar
2 votes
1 answer
738 views

I'm trying to compile this project from DTU. This project requires that PETSc be installed. I have installed PETSc to /Users/hornymoose/petsc-3.13.3/ I have extracted the zip from GitHub to /Users/...
hornymoose's user avatar