Re: [petsc-users] Compilation error

2024-10-12 Thread Daniel Pino Munoz
Thank you Satish and Junchao, Actually following Satish's instructions I found that I am indeed using the same compiler but for some reason my command does not include the mpi include path. I am going to check now my cmake files because it was initially found so I should be doing something w

Re: [petsc-users] Compilation error

2024-10-11 Thread Satish Balay
Here is one way to check. - check make.log for the build - it might have something like: - Using system modules: Using mpi.h: # 1 "/home/balay/soft/mpich-4.0.1/include/mpi.h" 1 - - now check your application build

Re: [petsc-users] Compilation error

2024-10-11 Thread Junchao Zhang
Perhaps you need to attach your configure.log --Junchao Zhang On Fri, Oct 11, 2024 at 5:14 PM Daniel Pino Munoz < daniel.pino_mu...@mines-paristech.fr> wrote: > I did that too, and I am using the same compiler. > > In fact I also checked the compilation of my code by setting VERBOSE=1 and > loo

Re: [petsc-users] Compilation error

2024-10-11 Thread Daniel Pino Munoz
I did that too, and I am using the same compiler. In fact I also checked the compilation of my code by setting VERBOSE=1 and looking at the compilation command. It is indeed the same compiler... It's pretty odd... Thanks anyway,   D. On 12/10/2024 00:04, Junchao Zhang wrote: Check they are

Re: [petsc-users] Compilation error

2024-10-11 Thread Junchao Zhang
Check they are the same MPI wrappers(if you use them), for example with "which mpicc" or "make V=1" to compare the exact executable path --Junchao Zhang On Fri, Oct 11, 2024 at 4:10 PM Daniel Pino Munoz < daniel.pino_mu...@mines-paristech.fr> wrote: > Dear all, > > I am currently trying to comp

[petsc-users] Compilation error

2024-10-11 Thread Daniel Pino Munoz
Dear all, I am currently trying to compile my code but the compilation fails with the following error: error "PETSc was configured with OpenMPI but now appears to be compiling using a non-OpenMPI mpi.h I have obviously checked and I am compiling my sources using the same compiler used to c

Re: [petsc-users] compilation error with latest petsc source

2024-07-19 Thread Vanella, Marcos (Fed) via petsc-users
Patel, Saumil Sudhir Subject: Re: [petsc-users] compilation error with latest petsc source It is unlikely, though, of course, possible that the problem comes from the Fortran code. Is there any way to ./configure/build the code in the same way on another system that is easier to debug for? Or

Re: [petsc-users] compilation error with latest petsc source

2024-07-19 Thread Barry Smith
e? Thank you for your time, > Marcos > > From: Vanella, Marcos (Fed) <mailto:marcos.vane...@nist.gov>> > Sent: Friday, July 19, 2024 12:54 PM > To: Barry Smith mailto:bsm...@petsc.dev>> > Cc: petsc-users@mcs.anl.gov <mailto:petsc-users@mcs.anl.gov> > mailto:pets

Re: [petsc-users] compilation error with latest petsc source

2024-07-19 Thread Vanella, Marcos (Fed) via petsc-users
kernels --download-hypre --download-suitesparse --download-cmake --force Have you guys come across this before? Thank you for your time, Marcos From: Vanella, Marcos (Fed) Sent: Friday, July 19, 2024 12:54 PM To: Barry Smith Cc: petsc-users@mcs.anl.gov ; Patel,

Re: [petsc-users] compilation error with latest petsc source

2024-07-19 Thread Vanella, Marcos (Fed) via petsc-users
Thank you Barry! We'll address the change accordingly. M From: Barry Smith Sent: Friday, July 19, 2024 12:42 PM To: Vanella, Marcos (Fed) Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] compilation error with latest petsc source We made

Re: [petsc-users] compilation error with latest petsc source

2024-07-19 Thread Barry Smith
We made some superficial changes to the Fortran API to better support Fortran and its error checking. See the bottom of https://urldefense.us/v3/__https://petsc.org/main/changes/dev/__;!!G_uCfscf7eWS!ZE1LvDb2DSdDMK8nW0mqRHwzlc2NYRl5HME44w0td8MbAimMxM27NcCtuq_2ENFLXVCmBo5lMqctZHYCvO4zHj8$

[petsc-users] compilation error with latest petsc source

2024-07-19 Thread Vanella, Marcos (Fed) via petsc-users
Hi, I did an update and compiled PETSc in Frontier with gnu compilers. When compiling my code with PETSc I see this new error pop up: Building mpich_gnu_frontier ftn -c -m64 -O2 -g -std=f2018 -frecursive -ffpe-summary=none -fall-intrinsics -cpp -DGITHASH_PP=\"FDS-6.9.1-894-g0b77ae0-FireX\" -DGI

Re: [petsc-users] Compilation error of test program: "MatDenseGetArray" was not declared in this scope

2021-01-19 Thread Roland Richter
Yes, that's it, thanks for the fast help! Regards, Roland Am 19.01.21 um 14:55 schrieb Matthew Knepley: > On Tue, Jan 19, 2021 at 7:28 AM Roland Richter > wrote: > > Hei, > > I just encountered an issue which I can not solve on my own. I > wrote a test

Re: [petsc-users] Compilation error of test program: "MatDenseGetArray" was not declared in this scope

2021-01-19 Thread Matthew Knepley
On Tue, Jan 19, 2021 at 7:28 AM Roland Richter wrote: > Hei, > > I just encountered an issue which I can not solve on my own. I wrote a > test program on my development machine, and compilation works fine, but > when trying to compile it on the production machine compilation fails with > > I beli

[petsc-users] Compilation error of test program: "MatDenseGetArray" was not declared in this scope

2021-01-19 Thread Roland Richter
Hei, I just encountered an issue which I can not solve on my own. I wrote a test program on my development machine, and compilation works fine, but when trying to compile it on the production machine compilation fails with /[ 25%] Building CXX object CMakeFiles/test_program.dir/source/core/tester

Re: [petsc-users] Compilation error with PETSc and intel options

2018-03-30 Thread Smith, Barry F.
--CFLAGS="-QxHost -debug -O3" --CXXFLAGS="-QxHost -debug -O3" --FFLAGS="-QxHost -debug -O3" You are trying to pass to the Windows compiler Linux style command line options which the compiler cannot understand. You need to look at the windows compiler documentation to determine what the command

Re: [petsc-users] Compilation error with ifort: invalid return statement in main

2017-11-19 Thread Praveen C
Thank you for this solution. For now, I am using this call PetscInitialize(PETSC_NULL_CHARACTER,ierr) if (ierr .ne. 0) stop 'Unable to initialize PETSc' and CHKERRA in other places of main. Best praveen > On 19-Nov-2017, at 9:18 PM, Smith, Barry F. wrote: > > In some of the Fortran examp

Re: [petsc-users] Compilation error with ifort: invalid return statement in main

2017-11-19 Thread Smith, Barry F.
In some of the Fortran examples we have code like call PetscInitialize(PETSC_NULL_CHARACTER,ierr) if (ierr .ne. 0) then print*,'Unable to initialize PETSc' stop endif Eventually we should update all the examples with this, or something even better

Re: [petsc-users] Compilation error with ifort: invalid return statement in main

2017-11-19 Thread Jose E. Roman
> El 19 nov 2017, a las 13:08, Matthew Knepley escribió: > > On Sun, Nov 19, 2017 at 4:43 AM, Jose E. Roman wrote: > > > El 19 nov 2017, a las 10:16, Praveen C escribió: > > > > Dear all > > > > In the main program, if I have a line like > > > > call PetscInitialize('param.in', ierr); CHKER

Re: [petsc-users] Compilation error with ifort: invalid return statement in main

2017-11-19 Thread Matthew Knepley
On Sun, Nov 19, 2017 at 4:43 AM, Jose E. Roman wrote: > > > El 19 nov 2017, a las 10:16, Praveen C escribió: > > > > Dear all > > > > In the main program, if I have a line like > > > > call PetscInitialize('param.in', ierr); CHKERRQ(ierr) > > > > compiling with mpifort gives > > > > main.f95(1

Re: [petsc-users] Compilation error with ifort: invalid return statement in main

2017-11-19 Thread Jose E. Roman
> El 19 nov 2017, a las 10:16, Praveen C escribió: > > Dear all > > In the main program, if I have a line like > > call PetscInitialize('param.in', ierr); CHKERRQ(ierr) > > compiling with mpifort gives > > main.f95(17): error #6353: A RETURN statement is invalid in the main program. > ca

[petsc-users] Compilation error with ifort: invalid return statement in main

2017-11-19 Thread Praveen C
Dear all In the main program, if I have a line like call PetscInitialize('param.in', ierr); CHKERRQ(ierr) compiling with mpifort gives main.f95(17): error #6353: A RETURN statement is invalid in the main program. call PetscInitialize('param.in', ierr); if (ierr .ne. 0) then ; call PetscE

Re: [petsc-users] Compilation error

2014-01-24 Thread Jin, Shuangshuang
: Re: [petsc-users] Compilation error "Jin, Shuangshuang" writes: > Hello, I successfully installed Petsc-dev on my cluster with the following > configuration: > > ./configure --with-scalar-type=complex --with-clanguage=C++ > --download-f-blas-lapack PETSC_ARCH=arch-

Re: [petsc-users] Compilation error

2014-01-24 Thread Jed Brown
"Jin, Shuangshuang" writes: > Hello, I successfully installed Petsc-dev on my cluster with the following > configuration: > > ./configure --with-scalar-type=complex --with-clanguage=C++ > --download-f-blas-lapack PETSC_ARCH=arch-complex > --with-fortran-kernels=generic --download-superlu_dist

Re: [petsc-users] Compilation error

2014-01-24 Thread Satish Balay
There shouldn't be anything like '-D__INSDIR__=src/ts/examples/tutorials/' in the compile command with latest petsc-dev 6.06.13 suggests its more than 6months old. Perhaps you can update to latest petsc-dev - and see if the problem persists? Satish On Fri, 24 Jan 2014, Jin, Shuangshuang wrote:

[petsc-users] Compilation error

2014-01-24 Thread Jin, Shuangshuang
Hello, I successfully installed Petsc-dev on my cluster with the following configuration: ./configure --with-scalar-type=complex --with-clanguage=C++ --download-f-blas-lapack PETSC_ARCH=arch-complex --with-fortran-kernels=generic --download-superlu_dist --download-mumps --download-scalapack --

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-11 Thread Kyunghoon Lee
On Mon, Jun 11, 2012 at 10:43 AM, Jed Brown wrote: > On Sun, Jun 10, 2012 at 9:39 PM, Kyunghoon Lee > wrote: > >> If so, I wonder the latest version of slepc, slepc-3.2-p5, also works >> with petsc-3.3. > > > Use slepc-dev, it works with petsc-3.3. > > http://www.grycap.upv.es/slepc/download/dow

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-11 Thread Kyunghoon Lee
> Parmetis includes metis sources - so once its installed with > --download-metis - you will have libmetis.a and libparmetis.a > > Satish > Yes, you're right. I checked the installed directory of petsc and found both libmetis.a and libparmetis.a. Thank you for the help. -- next part

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-11 Thread Kyunghoon Lee
On Mon, Jun 11, 2012 at 10:28 AM, Jed Brown wrote: > On Sun, Jun 10, 2012 at 9:23 PM, Kyunghoon Lee > wrote: > >> Re petsc-3.3, I need to check its compatibility with libmesh, since I >> need petsc mainly for libmesh. > > > It works. > If so, I wonder the latest version of slepc, slepc-3.2-p5,

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-11 Thread Kyunghoon Lee
> you don't need --download-metis for petsc-3.2 [--download-parmetis=1 > installs metis for you] > > [--download-metis=1 is broken in petsc-3.2. Also petsc-3.2 doesn't > directly use metis] > > Satish > I check externalpackages of petsc-3.2-p5, which I configured only with parmetis: $ ls MUMPS_4.

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-11 Thread Kyunghoon Lee
On Mon, Jun 11, 2012 at 10:13 AM, Jed Brown wrote: > On Sun, Jun 10, 2012 at 9:10 PM, Kyunghoon Lee > wrote: > >> Hi all, >> >> I configured petsc-3.2-p7 with the following options: >> >> ./configure >> --prefix=/Users/aeronova/Development/local/lib64/petsc/petsc-3.2-p7 >> --download-mpich=1 --d

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-11 Thread Kyunghoon Lee
Hi all, I configured petsc-3.2-p7 with the following options: ./configure --prefix=/Users/aeronova/Development/local/lib64/petsc/petsc-3.2-p7 --download-mpich=1 --download-blacs=1 --download-parmetis=1 --download-metis=1 --download-scalapack=1 --download-mumps=1 --download-umfpack=1 --with-clangu

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-10 Thread Jed Brown
On Sun, Jun 10, 2012 at 9:39 PM, Kyunghoon Lee wrote: > If so, I wonder the latest version of slepc, slepc-3.2-p5, also works with > petsc-3.3. Use slepc-dev, it works with petsc-3.3. http://www.grycap.upv.es/slepc/download/download.htm -- next part -- An HTML attachment

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-10 Thread Satish Balay
On Mon, 11 Jun 2012, Kyunghoon Lee wrote: > > you don't need --download-metis for petsc-3.2 [--download-parmetis=1 > > installs metis for you] > > > > [--download-metis=1 is broken in petsc-3.2. Also petsc-3.2 doesn't > > directly use metis] > > > > Satish > > > > I check externalpackages of pets

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-10 Thread Jed Brown
On Sun, Jun 10, 2012 at 9:23 PM, Kyunghoon Lee wrote: > Re petsc-3.3, I need to check its compatibility with libmesh, since I need > petsc mainly for libmesh. It works. -- next part -- An HTML attachment was scrubbed... URL:

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-10 Thread Satish Balay
On Mon, 11 Jun 2012, Kyunghoon Lee wrote: > On Mon, Jun 11, 2012 at 10:13 AM, Jed Brown wrote: > > > On Sun, Jun 10, 2012 at 9:10 PM, Kyunghoon Lee > gmail.com > > > wrote: > > > >> Hi all, > >> > >> I configured petsc-3.2-p7 with the following options: > >> > >> ./configure > >> --prefix=/User

[petsc-users] compilation error of petsc-3.2-p7 with metis

2012-06-10 Thread Jed Brown
On Sun, Jun 10, 2012 at 9:10 PM, Kyunghoon Lee wrote: > Hi all, > > I configured petsc-3.2-p7 with the following options: > > ./configure > --prefix=/Users/aeronova/Development/local/lib64/petsc/petsc-3.2-p7 > --download-mpich=1 --download-blacs=1 --download-parmetis=1 > --download-metis=1 --downl

[petsc-users] Compilation error in petsc 3.1-p8 with ParMetis

2011-07-27 Thread Matthew Knepley
On Wed, Jul 27, 2011 at 3:43 AM, Mohammad Mirzadeh wrote: > Hi all, > > I am having trouble configuring PETSc 3.1-p8 with ParMetis 3.2 and below (I > have tried all of their versions). What I can understand from the > configure.log (attached below) is that for some reason PETSc cannot find the > l

[petsc-users] Compilation error in petsc 3.1-p8 with ParMetis

2011-07-26 Thread Mohammad Mirzadeh
Matt, Barry Thank you so much for your help. The problem was solved by using --download-parmetis=1 as you pointed. Also thanks for the PETSC_ARCH tip; I was under the impression that each build needs to be in a separate directory. Thanks again, Mohammad On Tue, Jul 26, 2011 at 8:54 PM, Barry Smi

[petsc-users] Compilation error in petsc 3.1-p8 with ParMetis

2011-07-26 Thread Barry Smith
Please do a fresh version of the --download-parmetis run and send the configure.log to petsc-maint at mcs.anl.gov This mailing list is not for large attachments or configure failures. To make sure everything is clean please remove /home/mohammad/soft/petsc-3.1-p8-debug and get a new copy

[petsc-users] Compilation error in petsc 3.1-p8 with ParMetis

2011-07-26 Thread Mohammad Mirzadeh
Hi all, I am having trouble configuring PETSc 3.1-p8 with ParMetis 3.2 and below (I have tried all of their versions). What I can understand from the configure.log (attached below) is that for some reason PETSc cannot find the libs . I have tried the flag --download-parmetis=/path/to/tar.gz and al