How to install my version (F. Hecht)  of FreeFem++ with mpi 

on your mac under Snow Leopard.  (28/06/2011)


1) to install my binary 

This do not change the freefem++ install in /Application

to change install form  FreeFem++v3.13-3-snow-leopard_MacOsX.tgz


The problem is under mac, they are no fortran by default

so you can use the delfaut mpi tools to launch freefem++-mpi .


downloads  for page http://www.ljll.math.upmc.fr/~hecht/ftp/FF-conf/


On a terminal do : (cut and past the following  blue lines)


(cd /tmp;

case `sw_vers -productVersion` in 

10.6.*) 

url=http://www.freefem.org/ff++/ftp/mac;

curl -O   $url/freefem++-3.13-3-snow-leopard-tar-mpi.gz;

curl -O   $url/openmpi-1.4.1-snow-leopard-g95-macport.tar.bz2;

sudo tar jxvf  openmpi-1.4.1-snow-leopard-g95-macport.tar.bz2 -k -C /;

sudo tar zxvf  freefem++-3.13-3-snow-leopard-tar-mpi.gz  -C /;

echo " install OK " ;;

 *) echo Sorry not in Snow Leopard version; 

     sw_vers;; 

esac )


Remark this  do not change any existing file in openmpi due to -k option in 

tar command. 



To launch freefem++  run in a terminal do

 FreeFem++  /usr/local/share/freefem++/3.13-3/examples++-tutorial/cavityNewtow.edp


To launch the MPI version with graphics: 

ff-mpirun -np 4   /usr/local/share/freefem++/3.13-3/examples++-mpi/DDM-Schwarz-Lap-2dd.edp -glut ffglut




if you need to recompile some freefem++ plugins  (dylib)

 you need to  Do the follow  instalation process:


0)  Install the developper tools form the apple DVD's.


1) get macport for http://www.macports.org/  and installation:


  sudo port selfupdate ;

  sudo port install g95;

  sudo port install wget;


2) get and install  mercurial form

   http://mercurial.selenic.com/


3) Openmpi ( ok wwith my version)


4) get Tex/laTex for the documention build 

form http://www.tug.org/mactex/and install


5)  download the last freefem++ version , do

  

hg clone  http://www.freefem.org/ff++/ff++

cd ff++ 

./configure '-with-suffix=snow-leopard'  '--enable-download'  'F77=/opt/local/bin/g95' '-with-mpi=/usr/local/bin/mpic++' '--enable-m64' 'FLIBS=/opt/local/lib/g95/x86_64-apple-darwin10/4.2.4/libf95.a' 'MPIF77=/usr/local/bin/mpif77' 'MPICC=/usr/local/bin/mpicc' 'MPIFC=/usr/local/bin/mpif90'

make 

make install



Remark to  recompile  openmpi  with fortran interface  and install do :


wget http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.3.tar.bz2


remark, I have test with version 1.4.1 , but I thing no problem acure  with this new version


 tar zxvf openmpi-1.4.3.tar.bz2

 cd openmpi-1.4.3

 ./configure FC=/opt/local/bin/g95 F77=/opt/local/bin/g95 

 sudo make install