Regarding installation of opensees

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
gourik
Posts: 69
Joined: Wed Dec 31, 2008 10:07 pm
Location: C-DAC,Pune

Regarding installation of opensees

Post by gourik »

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
Thanks And Regards,

Gouri
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

they have obviously changed their interface when they went from version 2.3 to 3.0 .. for now try a 2.3 version. i will try and update the code in the near future.
gourik
Posts: 69
Joined: Wed Dec 31, 2008 10:07 pm
Location: C-DAC,Pune

Post by gourik »

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
"
Thanks And Regards,

Gouri
lsquinones
Posts: 14
Joined: Wed Jul 29, 2009 2:03 pm
Location: Ecuador
Contact:

Post by lsquinones »

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
Post Reply