Hi , I am installing Opensees 2.1.0 with petsc 3.1. on linux cluster with configuration 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux.
I am getting no error while petsc installation, but when i start compilation of Opensees got following error related top petsc :
PetscSOE.cpp: In member function `virtual int PetscSOE::setSize(Graph&)':
PetscSOE.cpp:251: error: invalid conversion from `int' to `_p_Mat**'
/home/secg/csm/gourik/PETSC/petsc-3.0.0-p7/include/petscmat.h:140: error: too many arguments to function `PetscErrorCode MatCreate(MPI_Comm, _p_Mat**)'
PetscSOE.cpp:251: error: at this point in file
please help me in this
Regarding installation of opensees
Moderators: silvia, selimgunay, Moderators
Regarding installation of opensees
Thanks And Regards,
Gouri
Gouri
same error continues with petsc 2.3.0
"PetscSOE.cpp: In member function `virtual int PetscSOE::setSize(Graph&)':
PetscSOE.cpp:251: error: invalid conversion from `int' to `_p_Mat**'
/home/secg/csm/gourik/PETSC/petsc-2.3.0/include/petscmat.h:106: error: too many arguments to function `PetscErrorCode MatCreate(MPI_Comm, _p_Mat**)'
PetscSOE.cpp:251: error: at this point in file
make[3]: *** [PetscSOE.o] Error 1
make[3]: Leaving directory `/home/secg/csm/gourik/opensees_parallel/OpenSees/SRC/system_of_eqn/linearSOE/petsc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/secg/csm/gourik/opensees_parallel/OpenSees/SRC/system_of_eqn/linearSOE'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/secg/csm/gourik/opensees_parallel/OpenSees/SRC/system_of_eqn'
make: *** [all] Error 2
"
"PetscSOE.cpp: In member function `virtual int PetscSOE::setSize(Graph&)':
PetscSOE.cpp:251: error: invalid conversion from `int' to `_p_Mat**'
/home/secg/csm/gourik/PETSC/petsc-2.3.0/include/petscmat.h:106: error: too many arguments to function `PetscErrorCode MatCreate(MPI_Comm, _p_Mat**)'
PetscSOE.cpp:251: error: at this point in file
make[3]: *** [PetscSOE.o] Error 1
make[3]: Leaving directory `/home/secg/csm/gourik/opensees_parallel/OpenSees/SRC/system_of_eqn/linearSOE/petsc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/secg/csm/gourik/opensees_parallel/OpenSees/SRC/system_of_eqn/linearSOE'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/secg/csm/gourik/opensees_parallel/OpenSees/SRC/system_of_eqn'
make: *** [all] Error 2
"
Thanks And Regards,
Gouri
Gouri
-
- Posts: 14
- Joined: Wed Jul 29, 2009 2:03 pm
- Location: Ecuador
- Contact:
Hi Gourik, I am trying to compile Parallel Opens in Red Hat 9, but I have some problems with PETSC 2.2.1, you could help me with the steps that
you use to compile petsc.
What I have done is:
1. cd pets-2.2.1
2. export PETSC_DIR=$PWD
3. PETSC_ARCH=linux-gnu-c-debug
4. export PETSC_ARCH
5. ./config/configure.py PETSC_ARCH=linux-gnu --with-cc=gcc --with-fc=0 -with-mpi-dir=/usr/local/mpich-1.2.6/ -with-mpi-include=/usr/local/mpich-1.2.6/include/ --with-blas-lapack-dir=/usr/local/lib
6. make all
7. make test
Any help and suggestions will be welcome.
Thank you.
Santiago
you use to compile petsc.
What I have done is:
1. cd pets-2.2.1
2. export PETSC_DIR=$PWD
3. PETSC_ARCH=linux-gnu-c-debug
4. export PETSC_ARCH
5. ./config/configure.py PETSC_ARCH=linux-gnu --with-cc=gcc --with-fc=0 -with-mpi-dir=/usr/local/mpich-1.2.6/ -with-mpi-include=/usr/local/mpich-1.2.6/include/ --with-blas-lapack-dir=/usr/local/lib
6. make all
7. make test
Any help and suggestions will be welcome.
Thank you.
Santiago