Dear all,
I uploaded to my google drive a deal.II-8.1 bundle for Mac OS X Maverick. It contains all but one of the external libraries deal.II can link with (the exception is netcdf, on which I'm still working). I need some volunteers to test these packages...
You can find an "mpkg" directory (which is a "bundle" package in mac terminology) as a single compressed file named
deal.II-8.1.mpkg.zip
or as a browsable directory
deal.II-8.1.mpkg
Here:
https://drive.google.com/folderview?id=0Bw6ro-ia4LtdS014YWVsNG9hRXM&usp=drive_web
If you dive into the directory, under
deal.II-8.1.mpkg/Contents/Packages/
accessible here:
https://drive.google.com/folderview?id=0Bw6ro-ia4Ltdd0VFdEVtSjY2ZTQ&usp=drive_web&tid=0Bw6ro-ia4LtdS014YWVsNG9hRXM
you will find the subpackages which make the distribution:
d2-compilers.pkg (54MB) (openmpi, gfortran)
d2-extra.pkg (4MB) (p4est, hdf5, arpack)
d2-petsc-suite.pkg (60MB) (petsc, slepc, scalapack, mumps, hypre)
d2-trilinos.pkg (21MB)
d2-deal.II-8.1.pkg (52MB)
I have just changed the d2-compilers package, so that clang is correctly picked up, even when another compiler exists in the path which might interferes with Mavericks' clang compiler.
You can install all of the packages at once (by downloading the zip file, uncompressing it and double clicking on the directory), or just one of the subpackages.
The compilers package contains both openmpi and gfortran (downloaded from the hpc on mac site, and relocated to a "neutral" location, so that it does not interferes with the rest of the system).
Everything is self contained, and it will install under /Library/deal.II-bundle
This package requires you to install cmake before you can run any deal.II example.
After you installed the package (it modifies your .profile, so make sure this file is read by your environment), you can fire up a terminal and copy one of the parallel tutorial somewhere you have write permission to ad try
cmake .
make
mpirun -np 2 ./step-xx
where xx is your favorite step-number. This should just work out of the box.
I'm now working on a script which would allow you to move the entire bundle to a location of your liking, without breaking all library dependencies, but I'm not quite there yet. Also, I'm trying to make all libraries exploit @rpath capabilities of Mac OS 10.9, but some things are still not working properly, so for the moment everything works fine *only* if you keep the default installation path.
Happy new year to everyone. (the zipped file should get there pretty soon...
> All:
> I know nothing about OS X, but just wanted to point out that...
>
>> Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp"
>> failed.
>> Compiler: /Library/deal.II-bundle/openmpi-1.6.5/bin/mpic++
>> Build flags:
>> -Qunused-arguments;-pedantic;-fpic;-Wall;-Wpointer-arith;-Wwrite-strings;-Wsynth;-Wsign-compare;-Wswitch;-Wno-long-long;;;-Wno-dangling-else;-Wno-delete-non-virtual-dtor;-Wno-long-long;-Wno-newline-eof;-Wno-unused-function;-Wno-unused-private-field;-Wno-unused-variable;-std=c++11;-Wno-parentheses;-Wno-long-long;-Wno-unused;-Wno-extra;-Wno-overloaded-virtual;-Wno-long-long
>> Id flags:
>>
>> The output was:
>> 1
>> g++: error: unrecognized command line option ‘-Qunused-arguments’
>
> ...mpic++ is apparently GCC based...
>
>> > -- The C compiler identification is Clang 5.0.0
>> > -- The CXX compiler identification is unknown
>
> ...whereas it apparently can't quite figure out what it is here.
>
>> > -- Check for working CXX compiler:
>> /Library/deal.II-bundle/openmpi-1.6.5/bin/mpic++
>> > -- Check for working CXX compiler:
>> /Library/deal.II-bundle/openmpi-1.6.5/bin/mpic++ -- broken
>
> And it complains here. Finally:
>
>> > # Compiler flags used for this build:
>> > # CMAKE_CXX_FLAGS: -Qunused-arguments
>
> This seems to indicate that the C++ compiler was identified as Clang.
>
> Cheers
> W.
>
>
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth email:
bang...@math.tamu.edu
> www:
http://www.math.tamu.edu/~bangerth/
>