do PETSc examples compile/run correctly? What do you get for:
cd src/ksp/ksp/examples/tutorials
make ex2
make ex2f
Satish
On Tue, 10 Nov 2009, Yin Feng wrote:
When I compiled petsc code, I encourntered following error code.
the compiler is mpicc
/usr/lib/gcc/x86_64-redhat-linux
When I compiled petsc code, I encourntered following error code.
the compiler is mpicc
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21):
In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
Thank you in advance!
-- next
PetscInitialize()
calls MPI_Init().)
You need to take the PetscInitialize() out of the subroutine and instead
call it once at the beginning of your program.
Barry
On Oct 11, 2009, at 9:59 PM, Yin Feng wrote:
The completed code is:
void PETSc(double mat[],double vec[],double sol[],long N
I put PETSc solver in one function and use another function to call that.This
problem only appears when I put the function with PETSc solver in a loop,
it works well at first step, and reports error An error occurred in
MPI_Comm_rank after MPI was finalized
at second time. The program is designed
yes, exactly
On Sun, Oct 11, 2009 at 10:04 PM, Yaakoub El Khamra yelkhamra at
gmail.comwrote:
This is for Mayank's project isn't it
Regards
Yaakoub El Khamra
On Sun, Oct 11, 2009 at 9:59 PM, Yin Feng yfeng1 at tigers.lsu.edu wrote:
The completed code is:
void PETSc(double mat
a CHKMEMQ.
Regards
Yaakoub El Khamra
On Sun, Oct 11, 2009 at 9:59 PM, Yin Feng yfeng1 at tigers.lsu.edu wrote:
The completed code is:
void PETSc(double mat[],double vec[],double sol[],long N,double tol) {
Vecx,b;
MatA;
KSPksp;
PC
PM, Xin Qianchianshin at gmail.com wrote:
You can try to run sole MPI samples coming with OpenMPI first, make sure the
OpenMPI is running all right.
Thanks,
Xin Qian
On Wed, Jul 8, 2009 at 4:48 PM, Yin Feng yfeng1 at tigers.lsu.edu wrote:
I tried OpenMPI build PETSc and used mpirun
I am a beginner of PETSc.
I tried the PETSC example 5(ex5) with 4 nodes,
However, it seems every nodes doing the exactly the same things and
output the same results again and again. is this the problem of petsc or
MPI installation?
Thank you in adcance!
Sincerely,
YIN
]
Satish
On Wed, 8 Jul 2009, Yin Feng wrote:
I am a beginner of PETSc.
I tried the PETSC example 5(ex5) with 4 nodes,
However, it seems every nodes doing the exactly the same things and
output the same results again and again. is this the problem of petsc or
MPI installation?
Thank you