Svetlana Tkachenko <svetlana.tkache...@fastmail.fm> writes:
> Using FLINKER instead of CLINKER in the makefile gets it to compile without 
> errors. However, the previous behaviour persists (?).
>
> ~/dev/test/petsc $ make
> gfortran -c  -fPIC -Wall -Wno-unused-variable -g  -fopenmp  
> -I/home/<username>/petsc/include -I/home/<username>/petsc/linux-amd64/include 
> -I/home/<username>/petsc/include/mpiuni    -o myexample.o myexample.F90
> gfortran -c  -fPIC -Wall -Wno-unused-variable -g  -fopenmp  
> -I/home/<username>/petsc/include -I/home/<username>/petsc/linux-amd64/include 
> -I/home/<username>/petsc/include/mpiuni    -o solver.o solver.F90
> gfortran -fopenmp -fopenmp   -fPIC -Wall -Wno-unused-variable -g  -fopenmp  
> -o myexample myexample.o solver.o 
> -Wl,-rpath,/home/<username>/petsc/linux-amd64/lib 
> -L/home/<username>/petsc/linux-amd64/lib  -lpetsc 
> -Wl,-rpath,/home/<username>/petsc/linux-amd64/lib -lflapack -lfblas -lX11 
> -lpthread -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/4.4.7 
> -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -lgfortran -lm -lm -lstdc++ -lstdc++ 
> -ldl -lgcc_s -ldl
> ~/dev/test/petsc $ ./myexample
>  Entered petsc.
>  Init done.
> WARNING! There are options you set that were not used!
> WARNING! could be spelling mistake, etc!
> Option left: name:-threadcomm_nthreads value: 8
> Option left: name:-threadcomm_type value: openmp
>  Finalized.
> ~/dev/test/petsc $

Did you add these options to .petscrc?  Run with -log_summary and send
the output so we can see what configuration you are using.  At the top
of this thread, it looks like you did not configure --with-threadcomm.
I recommend using --with-threadcomm --with-pthreadclasses --with-openmp.

Attachment: pgpZSqrY9qtwK.pgp
Description: PGP signature

Reply via email to