[Trilinos-Users] [deal.ii] Using include files of Trilinos in a program

Heroux, Michael A maherou at sandia.gov
Mon Sep 8 09:05:57 MDT 2008


Resending on behalf of Isabel Gil.

Mike


On 9/8/08 7:35 AM, "Isabel Gil" <misabel at litec.csic.es> wrote:

Hi everybody,

I want to use Trilinos with DealII and first I have to do is to install
Trilinos with the following "configure":

$ ../configure --prefix=/where_trilinos_is/trilinos-8.0.8/LINUX_MPI
--enable-mpi --with-mpi-compilers --disable-default-packages
--enable-teuchos --enable-epetra --enable-aztecoo --enable-triutils
--enable-amesos --enable-ifpack --enable-ml --enable-nox
--enable-nox-epetra --enable-didasko --enable-sharedf

Then I execute the command "make".

Later, I do the configure of DealII with Trilinos, doing:

$ ./configure --with-petsc=/where_petsc_is/petsc-2.3.3-p13
--with-petsc-arch=linux-gnu --with-blas
--with-metis=/where_metis_is/metis --with-lapack --enable-shared
--with-multithreading --with-umfpack --with-cpu=i686 --enable-trilinos
--with-trilinos=/where_trilinos_is/trilinos-8.0.8/LINUX_MPI

Then I execute the command "make".

Everything seems to work well, but once I want to recode my program, I
must introduce the include files:

#include <Epetra_SerialComm.h>
#include <Epetra_Map.h>
#include <Epetra_CrsGraph.h>
#include <Epetra_CrsMatrix.h>
#include <Epetra_Vector.h>

It is the only different thing that I have changed, but when I do my
makefile, through "make" I obtain:

*************************************************************************************************************************************************************
In file included from
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_Map.h:104,
                  from
/home/misabel/PROYECTOS_ANJUTA/ESQUEMA_LIU/cavidad3DLIU/cavidad3DLIU/include/LIU_3D_cavidadKIMMOIN_trilinos.h:38,
                  from
/home/misabel/PROYECTOS_ANJUTA/ESQUEMA_LIU/cavidad3DLIU/cavidad3DLIU/src/LIU_3D_cavidadKIMMOIN_neu_trilinos.cpp:3:
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_BlockMap.h:357:

error: expected ',' or '...' before numeric constant
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_BlockMap.h:360:

error: expected unqualified-id before numeric constant
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_BlockMap.h:366:

error: expected ',' or '...' before numeric constant
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_BlockMap.h:

In member function 'bool Epetra_BlockMap::MyLID(int) const':
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_BlockMap.h:369:

error: no se puede usar '0' como una función
In file included from
/home/misabel/PROYECTOS_ANJUTA/ESQUEMA_LIU/cavidad3DLIU/cavidad3DLIU/include/LIU_3D_cavidadKIMMOIN_trilinos.h:39,
                  from
/home/misabel/PROYECTOS_ANJUTA/ESQUEMA_LIU/cavidad3DLIU/cavidad3DLIU/src/LIU_3D_cavidadKIMMOIN_neu_trilinos.cpp:3:
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:

At global scope:
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:502:

error: expected ',' or '...' before numeric constant
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:

In member function 'int Epetra_CrsGraph::GRID(int) const':
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:730:

error: expected unqualified-id before numeric constant
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:730:

error: expected `)' before numeric constant
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:

In member function 'int Epetra_CrsGraph::GCID(int) const':
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:747:

error: expected unqualified-id before numeric constant
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:747:

error: expected `:' before numeric constant
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:747:

error: no se puede usar '0' como una función
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsGraph.h:747:

error: expected `)' before ':' token
In file included from
/home/misabel/PROYECTOS_ANJUTA/ESQUEMA_LIU/cavidad3DLIU/cavidad3DLIU/include/LIU_3D_cavidadKIMMOIN_trilinos.h:40,
                  from
/home/misabel/PROYECTOS_ANJUTA/ESQUEMA_LIU/cavidad3DLIU/cavidad3DLIU/src/LIU_3D_cavidadKIMMOIN_neu_trilinos.cpp:3:
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsMatrix.h:

At global scope:
/home/misabel/LIBRERIA_TRILINOS/trilinos-8.0.8/LINUX_MPI/include/Epetra_CrsMatrix.h:956:

error: expected ',' or '...' before numeric constant
*************************************************************************************************************************************************************

And I suppose I obtain these error due to the type of "configure" I use
installing Trilinos. Could you help me?

Thanks in advance
Best regards
Isa



_______________________________________________




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20080908/82738270/attachment.html 


More information about the Trilinos-Users mailing list