[petsc-users] PETSc 3.5.0 build with Hypre
Wadud Miah
w.miah at qmul.ac.uk
Fri Jul 11 10:12:21 CDT 2014
Hi Satish,
The description of --with-fortran-interfaces is:
--with-fortran-interfaces=<bool>
Generate Fortran interface definitions for PETSc functions current: 0
I would like to use PETSc in Fortran 90 programs, so I thought this switch will create Fortran wrappers. Is this the case or have I misunderstood it?
Regards,
Wadud.
-----Original Message-----
From: Satish Balay [mailto:balay at mcs.anl.gov]
Sent: 11 July 2014 16:06
To: Wadud Miah
Cc: petsc-users
Subject: Re: [petsc-users] PETSc 3.5.0 build with Hypre
On Fri, 11 Jul 2014, Wadud Miah wrote:
> Hello Satish,
>
> Thanks for the quick reply. I am also getting the following error when I use the
> --with-fortran-datatypes=1 flag:
>
> Cannot use generated fortran interface definitions with fortran datatypes
>
> Any help will be greatly appreciated.
As the message says - you cannot use --with-fortran-datatypes=1 with --with-fortran-interfaces=1
Are you sure you need either of these options?
Satish
>
> Regards,
> Wadud.
>
> -----Original Message-----
> From: Satish Balay [mailto:balay at mcs.anl.gov]
> Sent: 11 July 2014 15:29
> To: Wadud Miah
> Cc: petsc-users at mcs.anl.gov
> Subject: Re: [petsc-users] PETSc 3.5.0 build with Hypre
>
> On Fri, 11 Jul 2014, Wadud Miah wrote:
>
> > Hello,
> >
> > I am trying to build PETSc 3.5.0 with Hypre 2.9.0b with the following configure options:
> >
> > ./configure \
> > --with-hypre=1 \
> > --with-hypre-lib=/data/home/eew918/hypre-2.9.0b/lib \
>
> This should be: --with-hypre-lib="-L/data/home/eew918/hypre-2.9.0b/lib -lHYPRE"
>
> You are probably better off using --download-hypre instead
>
> > --with-hypre-include=/data/home/eew918/hypre-2.9.0b/include \
> > --LDFLAGS="-L/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64 -L/data/home/eew918/hypre-2.9.0b/lib" \
> > --with-blas-lib="mkl_intel_lp64 mkl_sequential mkl_core" \
> > --with-lapack-lib="mkl_intel_lp64 mkl_sequential mkl_core" \
>
> You can use --with-blas-lapack-lib=/opt/intel/composer_xe_2013_sp1.2.144/mkl [instead of the above 3 options
>
> > --with-fortran-interfaces=1 \
> > --prefix=$HOME/petsc-3.5.0 \
> > --with-shared-libraries=1 \
> > --with-mpi=1 \
> > --with-mpi-include=/opt/openmpi/1.6.5/intel/13.1/include \
> > --with-mpi-lib=/opt/openmpi/1.6.5/intel/13.1/lib/libmpi.so
>
> You are better off using --with-mpi-dir=/opt/openmpi/1.6.5/intel/13.1 [instead of the above 3 options
>
> Satish
>
> >
> > But I keep getting the following error message during configure:
> >
> > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
> > -------------------------------------------------------------------------------
> > --with-hypre-lib=['/data/home/eew918/hypre-2.9.0b/lib'] and
> > --with-hypre-include=['/data/home/eew918/hypre-2.9.0b/include'] did not work
> >
> > I see the compilation command with the correct library path (-L/data/home/eew918/hypre-2.9.0b/lib) but no library name with the -l switch.
> >
> > Regards,
> >
> > -------------------------------------------
> > Wadud Miah
> > Research Computing Services (HPC)
> > 020 7882 8393
> >
> >
>
>
More information about the petsc-users
mailing list