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

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$

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

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

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: