Installation notes for LP2D: (Barnett 10/17/12) Unpack this archive somewhere, eg via tar xvfz lp2d.tgz; cd lp2d In files makefile and makefile.mwrap, set FMMLIB2D to point to the path for the top of your (already compiled) FMMLIB2D library. Get this library from http://www.cims.nyu.edu/cmcl/fmm2dlib/fmm2dlib.html Then to compile fortran libraries, use: make This will also run the driver executable lp2d as a test, which should run in less than one second, and produce the following final text output: L2-error in GRF potential on curve = 0.73496E-11 To compile the MATLAB MEX interfaces (needed for MPSpack), use: make -f makefile.mwrap This requires David Bindel's MWrap utility to be in your path (MWrap is included with FMMLIB2D). You may also get a failure to link, due to MATLAB not including OpenMP libraries (even if you didn't specify this in your FMMLIB2D build). To fix this, edit the relevant section of your MATLAB distribution's file mexopts.sh, and include the --openmp flag in LDFLAGS. Be sure to add LP2D to your path in your Matlab startup.m script. You may then run testlpevalselfcc.m which should complete in less than a second and give text output ending in: L2 err of pot on curve = 1.51e-11 -----