Re: [petsc-users] Issue with Exporting and Reading Complex Vectors and Magnitude Vectors in PETSc and MATLAB

2024-07-02 Thread maitri ksh
2024 at 5:40 PM Pierre Jolivet wrote: > > > On 1 Jul 2024, at 4:37 PM, maitri ksh wrote: > > This Message Is From an External Sender > This message came from outside your organization. > I need to export complex vectors data from PETSc and read them in MATLAB. > However,

[petsc-users] Issue with Exporting and Reading Complex Vectors and Magnitude Vectors in PETSc and MATLAB

2024-07-01 Thread maitri ksh
I need to export complex vectors data from PETSc and read them in MATLAB. However, I am encountering some issues with the data format and interpretation in MATLAB. code-snippet of the vector data export section: // Assemble the vectors before exporting ierr = VecAssemblyBegin(f); CHKERRQ(ierr); ie

Re: [petsc-users] Issues Compiling petsc4py with Cython

2024-06-26 Thread maitri ksh
t_vec.TestVecShared) ... ok > testPlaceArray (test_vec.TestVecShared) ... ok > > Ran 6154 tests in 134.314s > OK > = > balay@petsc-gpu-02:/scratch/balay/petsc-3.21.2$ > > > Satish > > On Tue, 25 Jun 2024, Stefano Zampin

[petsc-users] Issues Compiling petsc4py with Cython

2024-06-25 Thread maitri ksh
I am currently working on integrating petsc4py, but I am encountering persistent compilation issues related to Cython. Below are the details of my setup and the errors I am facing. I would greatly appreciate any assistance or guidance on how to resolve these issues. System Configuration: - *PET

Re: [petsc-users] Segmentation Violation error using SuperLU_DIST in ex 19.c

2023-11-25 Thread maitri ksh
r=/usr/local/matlab --known-64-bit-blas-indices=1 > > Satish > > On Fri, 24 Nov 2023, maitri ksh wrote: > > > Hi Satish, > > Yes, that simple build works with no error. I configured petsc again with > > the configure options: > > > > PETSC_ARCH=linux-gnu-c-

Re: [petsc-users] Segmentation Violation error using SuperLU_DIST in ex 19.c

2023-11-23 Thread maitri ksh
ase/faq/#what-does-corrupt-argument-or-caught-signal-or-segv-or-segmentation-violation-or-bus-error-mean-can-i-use-valgrind-or-cuda-memcheck-to-debug-memory-corruption-issues > > > > On Nov 23, 2023, at 11:38 AM, maitri ksh wrote: > > Hi, > I ran into an error while using SuperLU_DIST i

[petsc-users] unable to distribute rows of a matrix across processors while loading

2023-08-27 Thread maitri ksh
Hi, I am using MatSetSizes() followed by MatLoad() to distribute the rows of a *sparse* matrix (*48x48*) across the processors. But it seems like the entire matrix is getting loaded in each of the processors instead of distributing it. What am I missing here? *code snippet:* Mat

Re: [petsc-users] C++11 related issue

2023-08-25 Thread maitri ksh
ld I proceed? On Thu, Aug 24, 2023 at 1:37 PM Matthew Knepley wrote: > On Thu, Aug 24, 2023 at 6:10 AM maitri ksh wrote: > >> I was facing a problem while compiling a code (which earlier, got >> compiled successfully using the same petsc set up), the problem was related >>

Re: [petsc-users] eigenvalue problem involving inverse of a matrix

2023-08-14 Thread maitri ksh
bió: > > > > > > > >> On 14 Aug 2023, at 10:39 AM, maitri ksh wrote: > >> > >>  > >> Hi, > >> I need to solve an eigenvalue problem Ax=lmbda*x, where > A=(B^-H)*Q*B^-1 is a hermitian matrix, 'B^-H' refers to the hermi

[petsc-users] eigenvalue problem involving inverse of a matrix

2023-08-14 Thread maitri ksh
Hi, I need to solve an eigenvalue problem *Ax=lmbda*x*, where A=(B^-H)*Q*B^-1 is a hermitian matrix, 'B^-H' refers to the hermitian of the inverse of the matrix B. Theoretically it would take around 1.8TB to explicitly compute the matrix B^-1 . A feasible way to solve this eigenvalue problem would

[petsc-users] error related to 'valgrind' when using MatView

2023-08-09 Thread maitri ksh
I am unable to understand what possibly went wrong with my code, I could load a matrix (large sparse matrix) into petsc, write it out and read it back into Matlab but when I tried to use MatView to see the matrix-info, it produces error of some 'corrupt argument, #valgrind'. Can anyone please help?

Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-02 Thread maitri ksh
' *hello.c*' script). Any comments/suggestions? On Wed, Aug 2, 2023 at 11:07 AM maitri ksh wrote: > Okay, thank you. > > On Tue, Aug 1, 2023 at 9:43 PM Satish Balay wrote: > >> > gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) >> >> Is it possible fo

Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-02 Thread maitri ksh
you can't use --download-superlu_dist or any pkgs that need > c++ [you could try building them separately though] > > Satish > > > On Tue, 1 Aug 2023, maitri ksh wrote: > > > I am trying to compile petsc on a cluster ( x86_64-redhat-linux, ' > > *configur

Re: [petsc-users] compiler related error (configuring Petsc)

2023-08-02 Thread maitri ksh
sh suggested: either use a newer g++ or configure --with-cxx=0 > > Thanks, > Pierre > > On 2 Aug 2023, at 6:42 AM, maitri ksh wrote: > > sure, attached. > > On Tue, Aug 1, 2023 at 10:36 PM Jacob Faibussowitsch > wrote: > >> >> Initially I got an er

[petsc-users] MUMPS Error 'INFOG(1)=-3 INFO(2)=3' (SPARSE MATRIX INVERSE)

2023-07-27 Thread maitri ksh
I am using 'MatMumpsGetInverse()' to get the inverse of a sparse matrix. I am using parts of ex214.c code to get the inverse, but I get an error that seems to be coming from MUMPS-library

[petsc-users] Inverse of a Large Sparse Matrix

2023-07-26 Thread maitri ksh
I have a large sparse matrix (48x48) and I need to take its inverse and use it to solve an eigenvalue problem. According to petsc-archive , Barry suggested using superLU with MatMatSolve() (& not KSPsolve

[petsc-users] Null Pointer Issue (Eigen-Value-Problem with user input Matrices)

2023-07-25 Thread maitri ksh
I am using the following setup: 1. petsc-3.19.3 (on wsl-ubuntu22.04 platform) 2. MATLAB-R2022a 3. slepc-3.19.1 4. configured using: './configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mpich --download-fblaslapack --with-matlab --with-matlab-dir=/usr/local/MATLAB/R2022a --downl

Re: [petsc-users] UNABLE to read '.mat' file with 'PetscViewerHDF5Open' (WSL-Ubuntu22.04)

2023-07-25 Thread maitri ksh
, 2023 at 12:18 PM Matthew Knepley wrote: > On Tue, Jul 25, 2023 at 3:12 AM maitri ksh wrote: > >> Hi, >> I am new to Petsc, here are some details of the relevant softwares I am >> using: >> 1. petsc-3.19.3 (on wsl-ubuntu22.04 platform) >> 2. MATLAB-R2022a

[petsc-users] UNABLE to read '.mat' file with 'PetscViewerHDF5Open' (WSL-Ubuntu22.04)

2023-07-25 Thread maitri ksh
Hi, I am new to Petsc, here are some details of the relevant softwares I am using: 1. petsc-3.19.3 (on wsl-ubuntu22.04 platform) 2. MATLAB-R2022a 3. hdf5-1.10.7 (checked using 'pkg-config --modversion hdf5') 4. configured using: './configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --downlo