zgimbutas / fmmlib2d Goto Github PK
View Code? Open in Web Editor NEWFast Multipole Method (FMM) library in R^2
License: BSD 3-Clause "New" or "Revised" License
Fast Multipole Method (FMM) library in R^2
License: BSD 3-Clause "New" or "Revised" License
To get this to compile on an Apple Silicon running MacOS (Sonoma 14.3) with maca64 Matlab, I had to do the following:
Note on mac by default gcc (/usr/bin/gcc) is a symlink to clang. You'll need to install gcc from homebrew (or macports etc). gcc-11 worked for me
brew install gcc@11
Type gcc-11 into terminal to check that this has installed properly.
To configure mex to use this compiler, you'll then need to add an xml file to /Applications/MATLAB_R20XX/bin/maca64/mexopts which specifies which version of gcc and the architecture. Examples for intel macs can be found here (https://github.com/danfortunato/matlab-gcc).
I cobbled this one together from the intel examples and the clang_maca64.xml that MATLAB uses by default. It worked for me but I'm not an expert in C compiler flags etc by any means so there may be some nonsensical things in there.
gcc_maca64.xml.txt
(.txt added so could upload to markdown, remove this)
With this in place, run
mex -setup c
and choose the gcc option you added.
Now try the typical install instructions.
make mwrap
make mex-matlab
make test-mex-matlab
Good luck!
Hey,
I am trying to develop an implementation where your functions of zfmm2d are used to calculate conformal mappings. This works, but now I want to convert all the matlab code to C/C++ code, with the purpose to use its functionality in other languages like C#.
For this conversion I use Matlab Coder, but because zfmm2d are already converted to C/C++ code to be used in a MEX stub, this is unfortunately not possible.
Is there a way to access the original matlab code for the zfmm2d functions (in particular zfmm2dparttarg), before it was converted to C/C++ code?
Many thanks,
Tim
When trying to test the library with make test
, many errors were thrown in print statements.
I'm compiling with gfortran (gcc 10.2.0)
So I tried to change my default fortran compilator by adding the flag -std=f95
in the make files, thinking my default gfortran compilator is too recent.
Which did not work either. And neither did the flag -std=f2008
.
Am I missing something ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.