Re: [petsc-users] Error installing PETSc with --download-f2cblaslapack

2025-06-10 Thread Blondel, Sophie via petsc-users
Thank you for the suggestion, Getting openblas through conda fixed my issue! Best, Sophie From: Stefano Zampini Sent: Saturday, June 7, 2025 02:22 To: Blondel, Sophie Cc: Barry Smith ; PETSc users list Subject: Re: [petsc-users] Error installing PETSc with

Re: [petsc-users] Error installing PETSc with --download-f2cblaslapack

2025-06-08 Thread Satish Balay
_ > From: Barry Smith > Sent: Friday, June 6, 2025 19:27 > To: Blondel, Sophie > Cc: petsc-users@mcs.anl.gov > Subject: Re: [petsc-users] Error installing PETSc with > --download-f2cblaslapack > > you forgot configure.log > > > > On Jun 6, 2025, at 7:19 P

Re: [petsc-users] Error installing PETSc with --download-f2cblaslapack

2025-06-06 Thread Stefano Zampini
If conda is providing the external dependencies, why do you want download-f2cblaslapack and not use a conda provided one? Mkl or openblas for example Stefano On Sat, Jun 7, 2025, 02:20 Blondel, Sophie via petsc-users < petsc-users@mcs.anl.gov> wrote: > Correct, I tried a few different python ver

Re: [petsc-users] Error installing PETSc with --download-f2cblaslapack

2025-06-06 Thread Barry Smith
you forgot configure.log > On Jun 6, 2025, at 7:19 PM, Blondel, Sophie wrote: > > Correct, I tried a few different python versions and mpi versions, conda is > providing the external dependencies. Maybe it wrongly points to some base > builds instead of the specific environment I set up. >

Re: [petsc-users] Error installing PETSc with --download-f2cblaslapack

2025-06-06 Thread Blondel, Sophie via petsc-users
Correct, I tried a few different python versions and mpi versions, conda is providing the external dependencies. Maybe it wrongly points to some base builds instead of the specific environment I set up. Best, Sophie On Jun 6, 2025 7:12 PM, Barry Smith wrote: Send configure.log I assume

Re: [petsc-users] Error installing PETSc with --download-f2cblaslapack

2025-06-06 Thread Barry Smith
Send configure.log I assume you tried rerunning a few times? It seems like possibly a flaky filesystem problem. Barry > On Jun 6, 2025, at 6:56 PM, Blondel, Sophie via petsc-users > wrote: > > Hi, > > I am getting an error when trying to install PETSc with > --download-f2cblaslapa

[petsc-users] Error installing PETSc with --download-f2cblaslapack

2025-06-06 Thread Blondel, Sophie via petsc-users
Hi, I am getting an error when trying to install PETSc with --download-f2cblaslapack on Linux: = Installing F2CBLASLAPACK; this may take several minutes =

Re: [petsc-users] Error in configuring HDF5 with Cygwin on Windows by using Intel MPI

2025-05-15 Thread Matthew Knepley
On Thu, May 15, 2025 at 9:16 AM 程奔 wrote: > Hello, > Recently I try successfully to install PETSc with Cygwin and Visual Studio > on Windows10 plateform(with external packages metis and parmetis). > > Now I want to use hdf5, so I re-configure the PETSc on the cygwin with Native > Microsoft/Intel

[petsc-users] error

2024-11-29 Thread tryit88 via petsc-users
眾所周知犀利士Cialis是一款處方藥,必須持有醫師的處方才能購買的藥物,但是依舊有很多男性朋友都不知道。就在前不久,有一位患者來到我們網站咨詢醫師:“最近跟太太行房事時,總是半途就會軟竿,聽說犀利士效果很好,請問醫師一般藥局沒有處方箋可以買到犀利士嗎?”,其實這不是個例,大多數患者都問過這個問題,下面醫師為大家解答。 https://urldefense.us/v3/__https://blog.lowe99.com/__;!!G_uCfscf7eWS!ahLQJxJ6sfp7sxaTR3EC6qzo_mYcCiKnwjlEvcthxJnnqKWMLlZsGR-tQEd3cRizekWY

[petsc-users] error

2024-11-29 Thread tryit88 via petsc-users
眾所周知犀利士Cialis是一款處方藥,必須持有醫師的處方才能購買的藥物,但是依舊有很多男性朋友都不知道。就在前不久,有一位患者來到我們網站咨詢醫師:“最近跟太太行房事時,總是半途就會軟竿,聽說犀利士效果很好,請問醫師一般藥局沒有處方箋可以買到犀利士嗎?”,其實這不是個例,大多數患者都問過這個問題,下面醫師為大家解答。 https://urldefense.us/v3/__https://blog.lowe99.com/__;!!G_uCfscf7eWS!aO_LP_BBT1VaODjHHdGQLLpZ87Ga25P_jHhTAPftsw__K1WqbLrMDaYWK3g92H7cBLXj

Re: [petsc-users] Error: PCHYPRESetPoissonMatrix_HYPRE

2024-09-19 Thread Matthew Knepley
On Thu, Sep 19, 2024 at 9:33 AM Karthikeyan Chockalingam - STFC UKRI via petsc-users wrote: > Hello, > > > > I would like to make the following hypre call > HYPRE_AMSSetBetaPoissonMatrix(ams, NULL); > > > > So it does look like ams_beta_is_zero has to be true > > > https://urldefense.us/v3/__http

[petsc-users] Error: PCHYPRESetPoissonMatrix_HYPRE

2024-09-19 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
Hello, I would like to make the following hypre call HYPRE_AMSSetBetaPoissonMatrix(ams, NULL); So it does look like ams_beta_is_zero has to be true https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/pc/impls/hypre/hypre.c?ref_type=heads*L325__;Iw!!G_uCfscf7eWS!bi4rdSrr

Re: [petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-25 Thread TAY Wee Beng
Hi Barry, Thanks, I'll try later. Back to using 3.20.6 which is working 1st. On 22/8/2024 10:39 pm, Barry Smith wrote:   Hmm, try using a standalone variable   PetscReal value   value = int_impl(k,5)] call MatSetValues(A_mat_uv,[ione],II,[ione],[value],impl_mat_A,INSERT_VALUES,ierr) u

Re: [petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-22 Thread Barry Smith
Hmm, try using a standalone variable PetscReal value value = int_impl(k,5)] > call > MatSetValues(A_mat_uv,[ione],II,[ione],[value],impl_mat_A,INSERT_VALUES,ierr) > unfortunately Fortan compilers in this situation are not good at telling us exactly what argument is giving

Re: [petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-22 Thread TAY Wee Beng
On 22/8/2024 10:28 pm, Barry Smith wrote:   Should be PetscReal as it is a numerical value. Ok, I changed it but I still get the same error. On Aug 22, 2024, at 9:55 AM, TAY Wee Beng wrote: On 22/8/2024 9:54 pm, Barry Smith wrote:   What is int_impl(k,5) defined type? PetscInt On

Re: [petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-22 Thread Barry Smith
Should be PetscReal as it is a numerical value. > On Aug 22, 2024, at 9:55 AM, TAY Wee Beng wrote: > > > > On 22/8/2024 9:54 pm, Barry Smith wrote: >> >> What is int_impl(k,5) defined type? > PetscInt >> >>> On Aug 22, 2024, at 9:45 AM, TAY Wee Beng >>> wrot

Re: [petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-22 Thread TAY Wee Beng
On 22/8/2024 9:54 pm, Barry Smith wrote:   What is int_impl(k,5) defined type? PetscInt On Aug 22, 2024, at 9:45 AM, TAY Wee Beng wrote: Hi Barry, Do you mean that I change from: call MatSetValues(A_mat_uv,ione,II,ione,int_impl(k,5),impl_mat_A,INSERT_VALUES,ierr) to call MatSetValu

Re: [petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-22 Thread Barry Smith
What is int_impl(k,5) defined type? > On Aug 22, 2024, at 9:45 AM, TAY Wee Beng wrote: > > Hi Barry, > > Do you mean that I change from: > > call > MatSetValues(A_mat_uv,ione,II,ione,int_impl(k,5),impl_mat_A,INSERT_VALUES,ierr) > > to > > call > MatSetValues(A_mat_uv,[ione],II,[ione],[i

Re: [petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-22 Thread TAY Wee Beng
Hi Barry, Do you mean that I change from: call MatSetValues(A_mat_uv,ione,II,ione,int_impl(k,5),impl_mat_A,INSERT_VALUES,ierr) to call MatSetValues(A_mat_uv,[ione],II,[ione],[int_impl(k,5)],impl_mat_A,INSERT_VALUES,ierr) ? I did it but the error is still there. On 22/8/2024 9:40 pm, Bar

Re: [petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-22 Thread Barry Smith
Fortran 90 type checking is very tight; The dimension of the array, or scalar passed as arguments must match the expected dimension (f77 did not do this type checking). Thus the ione argument must be a 1-d array as well as the numerical values so do > call > MatSetValues(A_mat_uv,[ione],I

Re: [petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-21 Thread Barry Smith
You must declare as PetscInt ksta_p,kend_p Perhaps they are declared as arrays? > On Aug 21, 2024, at 11:19 AM, TAY Wee Beng wrote: > > Hi, > > I am using the latest PETSc thru github. I compiled both the debug and rel > ver of PETSc w/o problem. > > I then use it with my CFD code a

[petsc-users] Error during code compile with MATGETOWNERSHIPRANGE

2024-08-21 Thread TAY Wee Beng
Hi, I am using the latest PETSc thru github. I compiled both the debug and rel ver of PETSc w/o problem. I then use it with my CFD code and the debug ver works. However, I have problems with the rel ver: */ftn -o global.o -c -O3 -g -ip -ipo   -fPIC  -save -w -I/home/project/11003851/lib/pet

Re: [petsc-users] Error MPI_ABORT

2024-07-27 Thread Junchao Zhang
The error message is a little confusing. It says the indices should be in [0, 200), but you used an out of range index 200 in VecSetValues. --Junchao Zhang On Fri, Jul 26, 2024 at 10:24 PM Ivan Luthfi wrote: > Hi friend, I am trying to try my second Petsc exercise in a lecture from > Eijkhout

[petsc-users] Error MPI_ABORT

2024-07-26 Thread Ivan Luthfi
Hi friend, I am trying to try my second Petsc exercise in a lecture from Eijkhout. I run it using command: mpiexec -n 2 ./vec_view in my Macbook with 2 cores. but I got an error. Here is the error message: [1]PETSC ERROR: - Error Message --

[petsc-users] Error in using KSPSOperators

2024-07-14 Thread Ivan Luthfi
Hi there, I have an issue in compiling my code. Here is the warning: MsFEM_poisson2D_DMDA.c:159:65: error: cannot convert ‘MatStructure’ to ‘Mat’ {aka ‘_p_Mat*’} 159 | ierr = KSPSetOperators(ksp_direct,up.Af,DIFFERENT_NONZERO_PATTERN);CHKERRQ(ierr); Please help me -- B

Re: [petsc-users] error: 'DMDA_BOUNDARY_NONE'

2024-07-11 Thread Pierre Jolivet
> On 12 Jul 2024, at 5:51 AM, Ivan Luthfi wrote: > > This Message Is From an External Sender > This message came from outside your organization. > Hello there, > I am trying to update a very old petsc code. > > When i run it i get the following error. > > FormFunction.c:14:47: error: 'DMDA_B

[petsc-users] error: 'DMDA_BOUNDARY_NONE'

2024-07-11 Thread Ivan Luthfi
Hello there, I am trying to update a very old petsc code. When i run it i get the following error. FormFunction.c:14:47: error: 'DMDA_BOUNDARY_NONE' undeclared (first use in this function); did you mean 'DM_BOUNDARY_NONE'? ierr = DMDACreate2d(PETSC_COMM_WORLD, DMDA_BOUNDARY_NONE, DMDA_BOUNDARY_N

Re: [petsc-users] Error type "Petsc has generated inconsistent data"

2024-06-24 Thread MIGUEL MOLINOS PEREZ
This is very useful tip, thank you! Miguel On Jun 24, 2024, at 2:04 PM, Barry Smith wrote: SNESSetOptionsPrefix

Re: [petsc-users] Error type "Petsc has generated inconsistent data"

2024-06-24 Thread Barry Smith
Note you can uses SNESSetOptionsPrefix(snes,"myprefix_") to attach a prefix for the one dimensional solves and then set options for the one dimensional problems with -myprefix_snes_type etc Now you can set different options for the different types of snes in your code > On Jun 24, 2024, a

Re: [petsc-users] Error type "Petsc has generated inconsistent data"

2024-06-24 Thread MIGUEL MOLINOS PEREZ
Thanks Barry, that was the problem! Thank you, Miguel On Jun 24, 2024, at 12:56 PM, Barry Smith wrote: The error is coming from the parallel SNES used by TS TSTheta_SNESSolve() not your small SNES solver but TSTheta_SNESSolve() Process 7 uses [7]PETSC ERROR: #4 SNESLineSearchApply_CP(

Re: [petsc-users] Error type "Petsc has generated inconsistent data"

2024-06-24 Thread Barry Smith
The error is coming from the parallel SNES used by TS TSTheta_SNESSolve() not your small SNES solver but TSTheta_SNESSolve() Process 7 uses [7]PETSC ERROR: #4 SNESLineSearchApply_CP() while the rest uses _BT(). I think this causes the problem since they are different algorithms using d

Re: [petsc-users] Error type "Petsc has generated inconsistent data"

2024-06-24 Thread Matthew Knepley
On Mon, Jun 24, 2024 at 2:50 PM MIGUEL MOLINOS PEREZ wrote: > Dear all, I am trying to assemble a matrix A with coefficients which I > need to assemble the RHS (F) and its Jacobian (J) in a TS type of problem. > Determining each coefficient of A involves the resolution of a small > non-linear pro

[petsc-users] Error type "Petsc has generated inconsistent data"

2024-06-24 Thread MIGUEL MOLINOS PEREZ
Dear all, I am trying to assemble a matrix A with coefficients which I need to assemble the RHS (F) and its Jacobian (J) in a TS type of problem. Determining each coefficient of A involves the resolution of a small non-linear problem (1 dof) using the serial version of SNES. By the way, the mat

Re: [petsc-users] Error in PETSc configuration on Mac Sonoma

2024-06-11 Thread Danyang Su
Hi Satish, The additional configure option works. Thanks and regards, Danyang On 2024-06-11, 9: 01 PM, "Satish Balay" > wrote: Try using the additional configure option: 'LDFLAGS=-Wl,-ld_classic ZjQcmQRYFpfptBannerStart This Message Is From an External Sender

Re: [petsc-users] Error in PETSc configuration on Mac Sonoma

2024-06-11 Thread Satish Balay
Try using the additional configure option: 'LDFLAGS=-Wl,-ld_classic -Wl,-commons,use_dylibs' Also consider upgrading to the latest petsc release 3. 21. 2 Satish On Tue, 11 Jun 2024, Barry Smith wrote: > > The issue is here > > configure: 31815:  ZjQcmQRYFpfptBannerStart

Re: [petsc-users] Error in PETSc configuration on Mac Sonoma

2024-06-11 Thread Barry Smith
The issue is here configure:31815: /Users/danyangsu/Soft/PETSc/petsc-3.20.5/macos-gnu-opt/bin/mpif90 -o conftest -I. -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -g -O -fallow-argument-mismatchconftest.f90 -ldl -lm >&5 ld: warning: -commons use_dylibs is no long

Re: [petsc-users] Error loading data coming from a .hdf5 file into a DMSwarm

2024-04-01 Thread MIGUEL MOLINOS PEREZ
I see. Thank you for the feedback Matthew! Thanks, Miguel On 1 Apr 2024, at 18:32, Matthew Knepley wrote: On Mon, Apr 1, 2024 at 11:13 AM MIGUEL MOLINOS PEREZ mailto:mmoli...@us.es>> wrote: Dear Matthew, Thank you for your suggestion. I tried to update the vector with the information coming

Re: [petsc-users] Error loading data coming from a .hdf5 file into a DMSwarm

2024-04-01 Thread Matthew Knepley
On Mon, Apr 1, 2024 at 11:13 AM MIGUEL MOLINOS PEREZ wrote: > Dear Matthew, > > Thank you for your suggestion. I tried to update the vector with the > information coming from the hdf5 file inside the main function. Then I > print the vector two times (see the lines below), the first time it has t

Re: [petsc-users] Error loading data coming from a .hdf5 file into a DMSwarm

2024-04-01 Thread MIGUEL MOLINOS PEREZ
Dear Matthew, I came up with a workaround for the problem. I duplicate the vector and use the duplicated copy to read the information from the hdf5 file. Then I swap both vectors and delete the copy. If I invoke VecView outside of the function, the value has been modified properly. However, thi

Re: [petsc-users] Error loading data coming from a .hdf5 file into a DMSwarm

2024-04-01 Thread MIGUEL MOLINOS PEREZ
Dear Matthew, Thank you for your suggestion. I tried to update the vector with the information coming from the hdf5 file inside the main function. Then I print the vector two times (see the lines below), the first time it has the correct data. However, the second time, it has the same values li

Re: [petsc-users] Error loading data coming from a .hdf5 file into a DMSwarm

2024-04-01 Thread Matthew Knepley
On Sun, Mar 31, 2024 at 4:08 PM MIGUEL MOLINOS PEREZ wrote: > Dear all, I am writing a function which store datasets (Vectors) coming > from a DMSwarm structure into a hdf5 file. This step is done nicely > write_function(){ PetscViewerHDF5Open(…) PetscViewerHDF5PushTimestepping(…) > DMSwarmCreate

[petsc-users] Error loading data coming from a .hdf5 file into a DMSwarm

2024-03-31 Thread MIGUEL MOLINOS PEREZ
Dear all, I am writing a function which store datasets (Vectors) coming from a DMSwarm structure into a hdf5 file. This step is done nicely write_function(){ PetscViewerHDF5Open(…) PetscViewerHDF5PushTimestepping(…) DMSwarmCreateGlobalVectorFromField(…) VecLoad(…) DMSwarmDestroyGlobalVectorFromF

Re: [petsc-users] Error handling in petsc4py

2023-11-27 Thread Jose E. Roman
The exception has been caught and the execution reaches the print() statement. I think you just need to disable the PETSc error handler, try with this: PETSc.Sys.pushErrorHandler("ignore") Jose > El 27 nov 2023, a las 16:41, Barry Smith escribió: > > > I see > > cdef extern from * nog

Re: [petsc-users] Error handling in petsc4py

2023-11-27 Thread Barry Smith
I see cdef extern from * nogil: ctypedef enum PetscErrorCode: PETSC_SUCCESS PETSC_ERR_PLIB PETSC_ERR_SUP PETSC_ERR_USER PETSC_ERR_MEM PETSC_ERR_MPI PETSC_ERR_PYTHON ctypedef enum PetscErrorType: PETSC_ERROR_INITIAL PETSC_ERROR_REPEAT cdef PetscErrorCode

Re: [petsc-users] Error handling in petsc4py

2023-11-27 Thread Miguel Angel Salazar de Troya
Hello, Is there any way to get the PETSc error codes in the python interface? The test I provided below is just a simple example that I know will run out of memory. Miguel On Wed, Nov 15, 2023 at 10:00 AM Miguel Angel Salazar de Troya < miguel.sala...@corintis.com> wrote: > Hello, > > The follo

Re: [petsc-users] Error in genmap

2023-11-20 Thread Matthew Knepley
On Sun, Nov 19, 2023 at 10:32 PM Sandeep Haripuria via petsc-users < petsc-users@mcs.anl.gov> wrote: > Dear Sir > > I am trying to run an oscillating airfoil case. For this purpose I am > trying to make use of "neknek". > I created two separate geometry files , one for the airfoil and other > for

Re: [petsc-users] Error running make check with OneAPI C/C++ and Fortran compilers on Windows

2023-11-19 Thread Maruthi NH
Hi Barry, I have tried with icc 2021.6.0. I will try with icx and check. Regards, Maruthi On Sat, Nov 18, 2023 at 2:11 AM Barry Smith wrote: > > OneAPI has two sets of compilers, old icc and new icx. > > Does it fail in this way for both? Can you try with the old? > > > On Nov 17, 2023, at

[petsc-users] Error in genmap

2023-11-19 Thread Sandeep Haripuria via petsc-users
Dear Sir I am trying to run an oscillating airfoil case. For this purpose I am trying to make use of "neknek". I created two separate geometry files , one for the airfoil and other for the outside surrounding. I have created the geometry and mesh using GMSH. I have attached the .geo and .msh files

Re: [petsc-users] Error running make check with OneAPI C/C++ and Fortran compilers on Windows

2023-11-17 Thread Barry Smith
OneAPI has two sets of compilers, old icc and new icx. Does it fail in this way for both? Can you try with the old? > On Nov 17, 2023, at 12:59 PM, Maruthi NH wrote: > > Hi Barry, > > It doesn't even start to run, I still get the same error. This is all the > output I get. > >

Re: [petsc-users] Error running make check with OneAPI C/C++ and Fortran compilers on Windows

2023-11-17 Thread Maruthi NH
Hi Barry, It doesn't even start to run, I still get the same error. This is all the output I get. === = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = RANK 0 PID 28192 RUNNING AT BLRLAP1521 = EXIT STATUS

Re: [petsc-users] Error running make check with OneAPI C/C++ and Fortran compilers on Windows

2023-11-17 Thread Barry Smith
Please run mpiexec -n 1 ./ex19 -da_refine 3 -pc_type mg -ksp_type fgmres -info and send all the output > On Nov 17, 2023, at 12:14 PM, Maruthi NH wrote: > > Hi Barry, > > I get the following error. > > ngh@ngh1 ~/petsc/src/snes/tutorials > $ make ex19 > /home/ngh/petsc/lib/petsc/bin/win

Re: [petsc-users] Error running make check with OneAPI C/C++ and Fortran compilers on Windows

2023-11-17 Thread Maruthi NH
Hi Barry, I get the following error. ngh@ngh1 ~/petsc/src/snes/tutorials $ make ex19 /home/ngh/petsc/lib/petsc/bin/win32fe/win32fe icl -Qwd10161 -Qstd=c99 -MT -O3 -I/home/ngh/petsc/include -I/home/ngh/petsc/intel-petsc-tag-v3.20.1/include -I/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/2021.6.0/include

Re: [petsc-users] Error running make check with OneAPI C/C++ and Fortran compilers on Windows

2023-11-17 Thread Barry Smith
Please do cd src/snes/tutorials make ex19 mpiexec -n 1 ./ex19 -da_refine 3 -pc_type mg -ksp_type fgmres then with -n 2 Cut and paste all the output and include it in your email response Barry > On Nov 17, 2023, at 12:57 AM, Maruthi NH wrote: > > Hi all, > > I could succes

[petsc-users] Error running make check with OneAPI C/C++ and Fortran compilers on Windows

2023-11-16 Thread Maruthi NH
Hi all, I could successfully compile PETSc on Windows with Intel OneAPI C/C++ and Fortran compilers, however, when I tried to make a check after the successful installation, I got the following error message. I have also attached the configuration file. make PETSC_DIR=/home/ngh/petsc PETSC_ARCH=i

Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI

2023-11-15 Thread Barry Smith
ly on my computer. > > sinserely, > > Cheng. > > > > > > > -原始邮件- > 发件人: "Barry Smith" mailto:bsm...@petsc.dev>> > 发送时间: 2023-11-15 01:17:42 (星期三) > 收件人: 程奔 mailto:ctcheng...@mail.scut.edu.cn>> > 抄送: petsc-users mailto:petsc-use

[petsc-users] Error handling in petsc4py

2023-11-15 Thread Miguel Angel Salazar de Troya
Hello, The following simple petsc4py snippet runs out of memory, but I would like to handle it from python with the usual try-except. Is there any way to do so? How can I get the PETSc error codes in the python interface? Thanks from petsc4py import PETSc import sys, petsc4py petsc4py.init(sys.a

Re: [petsc-users] error in configuring PETSc

2023-11-08 Thread Barry Smith
ay" > 收件人: "zs1996" > 抄送: "petsc-users" > 发送时间: 星期四, 2023年 11 月 09日 上午 12:52:54 > 主题: Re: [petsc-users] error in configuring PETSc > > Suggest attaching text logs (copy/paste) - instead of screenshots. > > Try: > > ./configure --with-cc=gcc

Re: [petsc-users] error in configuring PETSc

2023-11-08 Thread Satish Balay via petsc-users
Suggest attaching text logs (copy/paste) - instead of screenshots. Try: ./configure --with-cc=gcc-11 --with-cxx=g++-11 --with-fc=gfortran-11 --download-fftw --download-openmpi --download-fblaslapack --with-zlibs=yes --with-szlib=no --with-c2html=0 --with-x=0 --download-hdf5-fortran-bindings=1

[petsc-users] error in configuring PETSc

2023-11-08 Thread 张胜
Dear PETSc developer, I use the following commands to configure petsc, but errors occur: ./configure --with-cc=gcc-11 --with-cxx=g++-11 --with-fc=gfortran-11 --download-fftw --download-openmpi --download-fblaslapack --free-line-length-0 -g -fallow-argument-mismatch --enable-shared --enable-para

Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI

2023-11-08 Thread Barry Smith
Send the file $PETSC_ARCH/lib/petsc/conf/configure.log > On Nov 8, 2023, at 12:20 AM, 程奔 wrote: > > Hello, > Recently I try to install PETSc with Cygwin since I'd like to use PETSc with > Visual Studio on Windows10 plateform.For the sake of clarity, I firstly list > the softwares/packag

Re: [petsc-users] Error in configuring PETSc with Cygwin on Windows by using Intel MPI

2023-11-08 Thread 程奔
Sorry, the configure is ./configure --prefix=/cygdrive/g/mypetsc/petsc2023 --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' --with-shared-libraries=0 --with-mpi-include=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/include --with-mpi-lib=/cygdrive/g/Intel/oneAPI/mpi/2021.10.0/

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-07 Thread Victoria Rolandi
, Zhang, Hong via petsc-users < >>>> petsc-users@mcs.anl.gov> wrote: >>>> >>>> Victoria, >>>> "** Maximum transversal (ICNTL(6)) not allowed because matrix is >>>> distributed >>>> Ordering based on METIS" >>>

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-07 Thread Pierre Jolivet
t;>>>>>> >>>>>>>> On Nov 1, 2023, at 12:17 PM, Pierre Jolivet >>>>>>> <mailto:pie...@joliv.et>> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>&g

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-07 Thread Victoria Rolandi
>> $ ../../../../arch-darwin-c-debug-real/bin/mpirun -n 2 ./ex2 -pc_type lu >>> -mat_mumps_icntl_4 2 >>> Entering DMUMPS 5.6.2 from C interface with JOB, N = 1 56 >>> executing #MPI = 2, without OMP >>> >>> ===

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-03 Thread Pierre Jolivet
> (I’m not saying switching to ParMETIS will not make the issue go away) >>>>>> >>>>>> Thanks, >>>>>> Pierre >>>>>> >>>>>> $ ../../../../arch-darwin-c-debug-real/bin/mpirun -n 2 ./ex2 -pc_type lu >>>>&g

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-03 Thread Victoria Rolandi
parallelism: Working host >> >> ** ANALYSIS STEP **** >> >> ** Maximum transversal (ICNTL(6)) not allowed because matrix is >> distributed >> Processing a graph of size:56 with 194 edges >> Ordering based on AMF >> WAR

Re: [petsc-users] error while compiling PETSc on windows using cygwin

2023-11-02 Thread Maruthi NH
Hi Barry, Thanks for the suggestion. It worked after updating the compilers. Regards, Maruthi On Thu, 2 Nov 2023 at 9:33 PM, Barry Smith wrote: > >It could be you would benefit from having the latest Microsoft compilers > >If you do not need C++ you could use --with-cxx=0 > >Othe

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-02 Thread Victoria Rolandi
194 edges > Ordering based on AMF > WARNING: Largest root node of size26 not selected for parallel > execution > > Leaving analysis phase with ... > INFOG(1) = 0 > INFOG(2) = 0 > […] > > Try parmetis

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-02 Thread Pierre Jolivet
ion -Dptscotch >>>> MUMPS compiled with option -Dscotch >>>> = >>>> L U Solver for unsymmetric matrices >>>> Type of parallelism: Working host >>>> >>>> ** AN

Re: [petsc-users] error while compiling PETSc on windows using cygwin

2023-11-02 Thread Barry Smith
It could be you would benefit from having the latest Microsoft compilers If you do not need C++ you could use --with-cxx=0 Otherwise please send configure.log to petsc-ma...@mcs.anl.gov > On Nov 2, 2023, at 11:20 AM, Maruthi NH wrote: > > Hi all, > > I get the following error wh

[petsc-users] error while compiling PETSc on windows using cygwin

2023-11-02 Thread Maruthi NH
Hi all, I get the following error while trying to compile PETSc version 3.20.1 on Windows \petsc\include\petsc/private/cpp/unordered_map.hpp(309): error C2938: 'std::enable_if_t' : Failed to specialize alias template This is the configuration file I used to compile PETSc #!/usr/bin/python impo

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-01 Thread Pierre Jolivet
ord >>>> MUMPS compiled with option -Dptscotch >>>> MUMPS compiled with option -Dscotch >>>> = >>>> L U Solver for unsymmetric matrices >>>> Type of parallelism: Working host >>>>

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-01 Thread Barry Smith
== >>> L U Solver for unsymmetric matrices >>> Type of parallelism: Working host >>> >>> ** ANALYSIS STEP >>> >>> ** Maximum transversal (ICNTL(6)) not allowed because matrix is distributed >>> Processing a graph of size:56 with 194 e

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-01 Thread Pierre Jolivet
;> INFOG(1) = 0 >> INFOG(2) = 0 >> […] >> >>> Try parmetis. >>> Hong >>> From: petsc-users on behalf of Victoria >>> Rolandi >>

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-01 Thread Barry Smith
> INFOG(2) = 0 > […] > >> Try parmetis. >> Hong >> From: petsc-users on behalf of Victoria >> Rolandi >> Sent: Tuesday, October 31, 2023 10:30 PM >> To: petsc-users@mcs.anl.gov >> Subject: [pe

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-01 Thread Pierre Jolivet
behalf of Victoria > Rolandi > Sent: Tuesday, October 31, 2023 10:30 PM > To: petsc-users@mcs.anl.gov > Subject: [petsc-users] Error using Metis with PETSc installed with MUMPS > > Hi, > > I'm solving a large sparse linear system in parallel and I am using PETSc > wi

Re: [petsc-users] Error using Metis with PETSc installed with MUMPS

2023-11-01 Thread Zhang, Hong via petsc-users
v Subject: [petsc-users] Error using Metis with PETSc installed with MUMPS Hi, I'm solving a large sparse linear system in parallel and I am using PETSc with MUMPS. I am trying to test different options, like the ordering of the matrix. Everything works if I use the -mat_mumps_icntl_7 2 or -ma

[petsc-users] Error using Metis with PETSc installed with MUMPS

2023-10-31 Thread Victoria Rolandi
Hi, I'm solving a large sparse linear system in parallel and I am using PETSc with MUMPS. I am trying to test different options, like the ordering of the matrix. Everything works if I use the *-mat_mumps_icntl_7 2 *or *-mat_mumps_icntl_7 0 *options (with the first one, AMF, performing better than

Re: [petsc-users] Error when installing PETSc

2023-10-18 Thread Satish Balay via petsc-users
> Working directory: /home/tt/petsc-3.16.0 use latest petsc release - 3.20 > --with-fc=flang I don't think this ever worked. Use --with-fc=gfortran instead /opt/ohpc/pub/spack/opt/spack/linux-centos7-skylake_avx512/gcc-8.3.0/m4-1.4.19-lwqcw3hzoxoia5q6nzolylxaf5zevluk/bin/m4: internal error det

Re: [petsc-users] Error when installing PETSc

2023-10-18 Thread Matthew Knepley
On Wed, Oct 18, 2023 at 6:07 AM Gong Yujie wrote: > Dear PETSc developers, > > I got an error message when installing PETSc with a clang compiler. Could > you please help me find the problem? The configure.log is attached. > Your compiler segfaulted when compiling OpenMPI: Making all in mca/crs

Re: [petsc-users] Error when configure cmake

2023-09-29 Thread Satish Balay via petsc-users
Here --download-cmake is failing [due to the old version of c++ compiler]. You can try installing an older version manually instead of --download-cmake Or you might be able to install a newer gcc/g++ easily [if its not already installed on your machine]. For ex: git clone https://github.com/spa

Re: [petsc-users] Error when configure cmake

2023-09-29 Thread Pierre Jolivet
You are using g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23). You need to use a less ancient C++ compiler. Please send logs to petsc-maint, not petsc-users. Thanks, Pierre > On 30 Sep 2023, at 7:00 AM, Ivan Luthfi wrote: > > I am trying to configure my pets-3.13.6, but I have an error when running

Re: [petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-13 Thread Junchao Zhang
Hi, Maruthi, I could not reproduce it. I used the attached slightly modified code (note the added PetscFunctionBeginUser; PetscFunctionReturn(PETSC_SUCCESS); in bc_const_temp_both_sides) Could you try it? --Junchao Zhang On Wed, Sep 13, 2023 at 1:07 AM Maruthi NH wrote: > Hi Junchao Zh

Re: [petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-12 Thread Maruthi NH
Hi Junchao Zhang, I also build petsc with --download-hypre and I too have 2.29.0 version. Not sure why I am facing this issue. This is the configuration file I created for building petsc. #!/usr/bin/env python3 import os petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') if __nam

Re: [petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-12 Thread Junchao Zhang
Which version of hypre do you use? I used petsc's --download-hypre, which automatically installed hypre-2.29.0. I did not see the error. $ ./heat_diff_cu -ksp_type gmres -pc_type hypre -pc_hypre_type boomeramg -use_gpu_aware_mpi 0 -mat_type aijcusparse -vec_type cuda The start and end indices of

Re: [petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-12 Thread Maruthi NH
Hi Junchao Zhang, Thanks for the help. Updating PETSc fixed the problem. However, if I use boomeramg from hypre as follows, I get a similar error. ./heat_diff_cu --ksp_type gmres -pc_type hypre -pc_hypre_type boomeramg -use_gpu_aware_mpi 0 -mat_type aijcusparse -vec_type cuda ** On entry to cusp

Re: [petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-11 Thread Junchao Zhang
Hi, Maruthi, I could run your example on my machine. BTW, I added these at the end of main() to free petsc objects. VecDestroy(&vout); VecDestroy(&x); VecDestroy(&b); VecDestroy(&u); MatDestroy(&A); VecScatterDestroy(&ctx); KSPDestroy(&ksp); If you use cuda-12.2, maybe the problem is already f

Re: [petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-11 Thread Maruthi NH
Hi Barry Smith, Thanks for the quick response. Here is the code I used to test PETSc on GPU. This is the command I used to run mpiexec.hydra -n 1 ./heat_diff_cu -Nx 1000 -ksp_type gmres -mat_type aijcusparse -vec_type cuda -use_gpu_aware_mpi 0 -pc_type gamg -ksp_converged_reason Regards, Mar

Re: [petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-10 Thread Barry Smith
> On Sep 10, 2023, at 5:54 AM, Maruthi NH wrote: > > Hi all, > > I am trying to accelerate the linear solver with PETSc GPU backend. For > testing I have a simple 1D heat diffusion solver, here are some observations. > 1. If I use -pc_type gamg it throws the following error > ** On entry t

[petsc-users] Error while running with -pc_type gamg on NVIDIA GPU

2023-09-10 Thread Maruthi NH
Hi all, I am trying to accelerate the linear solver with PETSc GPU backend. For testing I have a simple 1D heat diffusion solver, here are some observations. 1. If I use -pc_type gamg it throws the following error ** On entry to cusparseCreateCsr() parameter number 5 (csrRowOffsets) had an illega

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-06 Thread Satish Balay via petsc-users
BTW: Stepping back and looking that the error message: > > > >> Error: The import statement 'import matlab.internal.engine.input' > > cannot be found or cannot be imported. Imported names must end with '.*' or > > be fully qualified. Google suggests: https://www.mathworks.com/matlabcentral/answe

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-03 Thread Satish Balay via petsc-users
You are missing one more step: > [0] PetscInitialize(): Running on machine: MB108SMEC028 > [0] PetscMatlabEngineCreate(): Starting MATLAB engine with command > /usr/local/MATLAB/R2020b/bin/matlab -glnxa64 -nodisplay -nosplash No run matlab manually on "MB108SMEC028" with the command "/usr/loca

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-03 Thread Satish Balay via petsc-users
To use datafiles in the test suite: cd $HOME git clone https://gitlab.com/petsc/datafiles make test query=requires queryval=matlab DATAFILESPATH=$HOME/datafiles Satish On Sun, 3 Sep 2023, Matthew Knepley wrote: > On Sun, Sep 3, 2023 at 8:47 AM INTURU SRINIVAS 20PHD0548 < > inturu.srinivas2...

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-03 Thread Satish Balay via petsc-users
On Sun, 3 Sep 2023, INTURU SRINIVAS 20PHD0548 via petsc-users wrote: > Hi Sathish, > > Thank you so much for your efforts and the support you are giving me to > sort this out. > > I tried to follow the same procedure which you followed to build Petsc > 3.13.4 with Matlab-R2020b on Ubuntu20.04. >

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-02 Thread Satish Balay via petsc-users
Perhaps you can try the following to get additional info - and debug Satish -- balay@compute-386-07:/scratch/balay/petsc$ cd src/tao/leastsquares/tutorials/matlab/ balay@compute-386-07:/scratch/balay/petsc/src/tao/leastsquares/tutorials/matlab$ make matlab_ls_test /nfs/gce/projects/pets

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-02 Thread Satish Balay via petsc-users
Please don't cc: both petsc-users and petsc-maint [reverting thread to petsc-users only] I'm not sure what is happening here. Can you send the corresponding configure.log, make.log [compressed]? Here is my attempt to reproduce (with petsc-3.13) on Ubuntu-20.04, with Matlab-R2021a - and that wo

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
Based on the suggestions given by Sathish, I have tried to configure petsc 3.13.4 with Matlab-R2020b. But, it was not successful. After running make -j 10 test command I have got the following error message. not ok tao_leastsquares_tutorials_matlab-matlab_ls_test # Error code: 124 # Running proble

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
Thank you Sathish.I will try this On Fri, Sep 1, 2023, 22:53 Satish Balay wrote: > yes [and remove fblaslapack. don't know if hypre will work here]. > > i.e: > > ./configure --with-mpi-dir=/home/vit/sfw/linux/openmpi/4.1.4 COPTFLAGS=-O3 > CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt --with

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread Satish Balay via petsc-users
yes [and remove fblaslapack. don't know if hypre will work here]. i.e: ./configure --with-mpi-dir=/home/vit/sfw/linux/openmpi/4.1.4 COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt --with-debugging=0 --with-x=0 \ --with-matlab-dir=/usr/local/MATLAB/R2020b --with-matlab-engine=1

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
Hi Satish, -with-blaslapack-dir=/path/to/matlab_dir --known-64-bit-blas-indices=1 Is this what you are suggesting? On Fri, Sep 1, 2023, 20:42 Satish Balay wrote: > Also: > > '-known-64-bit-blas-indices=1', > > Note: most externalpackages might not work in this mode. > > [we can't really ov

  1   2   3   4   5   6   7   8   9   10   >