Dear Libmesh developers and users,
is it possible to install libmesh without MPI but with PETSc?

If yes, what is the correct way to do it?
I tried to install PETSc without MPI, and then compile libmesh. I have 
got the following compilation error:

Compiling C++ (in debug mode) src/numerics/distributed_vector.C...
In file included from 
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:42,
from src/numerics/distributed_vector.C:28:
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:319:41:
 
error: macro "MPI_Allgather" requires 7 arguments, but on
ly 6 given
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:345:41:
 
error: macro "MPI_Allgather" requires 7 arguments, but on
ly 6 given
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:352:41:
 
error: macro "MPI_Allgather" requires 7 arguments, but on
ly 6 given
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h: 
In function ‘void Parallel::allgather(T, __gnu_debug_def::vector
<T, std::allocator<_CharT> >&)’:
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:314:
 
error: ‘MPI_Allgather’ was not declared in this scope
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h: 
In function ‘void Parallel::allgather(std::complex<_Tp>, __gnu_d
ebug_def::vector<std::complex<_Tp>, std::allocator<std::complex<_Tp> > >&)’:
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:340:
 
error: ‘MPI_Allgather’ was not declared in this scope
src/numerics/distributed_vector.C: At global scope:
src/numerics/distributed_vector.C:530: warning: unused parameter ‘pid’
src/numerics/distributed_vector.C:562: warning: unused parameter ‘pid’
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h: 
In function ‘void Parallel::sum(__gnu_debug_def::vector<T, std:: 
allocator<_CharT> >&) [with T = float]’:
src/numerics/distributed_vector.C:497: instantiated from here
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:239:
 
warning: right-hand operand of comma has no effect
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h: 
In function ‘void Parallel::sum(__gnu_debug_def::vector<T, std:: 
allocator<_CharT> >&) [with T = double]’:
src/numerics/distributed_vector.C:519: instantiated from here
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:239:
 
warning: right-hand operand of comma has no effect
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:
 
In member function ‘void DistributedVector<T>::init (unsigned int, 
unsigned int, bool) [with T = float]’:
src/numerics/distributed_vector.C:593: instantiated from here
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:466:
 
warning: right-hand operand of comma has no eff ect
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:467:
 
warning: right-hand operand of comma has no eff ect
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:
 
In member function ‘void DistributedVector<T>::init (unsigned int, 
unsigned int, bool) [with T = double]’:
src/numerics/distributed_vector.C:594: instantiated from here
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:466:
 
warning: right-hand operand of comma has no eff ect
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:467:
 
warning: right-hand operand of comma has no eff ect
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h: 
In function ‘void Parallel::sum(__gnu_debug_def::vector<T, std:: 
allocator<_CharT> >&) [with T = int]’:
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:473:
 
instantiated from ‘void DistributedVector<T>: :init(unsigned int, 
unsigned int, bool) [with T = float]’
src/numerics/distributed_vector.C:593: instantiated from here
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:239:
 
warning: right-hand operand of comma has no effect
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h: 
In function ‘void Parallel::min(T&) [with T = double]’:
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:691:
 
instantiated from ‘Real DistributedVector<T>: :min() const [with T = float]’
src/numerics/distributed_vector.C:593: instantiated from here
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:154:
 
warning: right-hand operand of comma has no effect
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h: 
In function ‘void Parallel::max(T&) [with T = double]’:
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/numerics/distributed_vector.h:709:
 
instantiated from ‘Real DistributedVector<T>: :max() const [with T = float]’
src/numerics/distributed_vector.C:593: instantiated from here
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:188:
 
warning: right-hand operand of comma has no effect
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h: 
In function ‘void Parallel::sum(T&) [with T = double]’:
src/numerics/distributed_vector.C:48: instantiated from ‘T 
DistributedVector<T>::sum() const [with T = float]’
src/numerics/distributed_vector.C:593: instantiated from here
/home/michael/software/libmesh-no-MPI/libmesh-0.6.2/include/utils/parallel.h:222:
 
warning: right-hand operand of comma has no effect
make: *** 
[src/numerics/distributed_vector.x86_64-unknown-linux-gnu.dbg.o] Error 1

Thank you,
Michael.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to