Comments (5)
Following up on this issue - can someone please provide some guidance? Should I expect slow performance when installing FF++ on Mac using the binary package?
Thanks
from freefem-sources.
You are comparing apples and oranges here. What are you exactly interested in: performance of your loops in the .edp, or in the .cpp? My general advice is to do as little as possible in your .edp, and offload as much computation as possible in your .cpp.
from freefem-sources.
I know diff of speed between windows and unix (mac and linux)
I think this is due to the generation of code under windows.
To day no ways to solve.
from freefem-sources.
Thank you for the advice. I have been trying to couple my code with a c++ script, following the Dynamical Link example in Appendix C of the FF++ doc. I assume this will allow me to use a .edp script to call upon a (much faster) precompiled c++ script for mesh node calculations.
To learn, I wish to replicate the myfunction example from the doc., by compiling/linking myfunction.cpp myself (using the ff-c++, g++ commands in the doc). I found myfunction.cpp from some source code, along with ff++.hpp and dependencies (they are not included in the binary installation). I can compile and link myfunction.cpp without error, but I get the following error when executing load.edp:
load error : myfunction fail : dlerror : dlopen(/usr/local/ff++/openmpi-2.1/lib/ff++/3.61-1/lib/mpi/myfunction.dylib, 1): Symbol not found: __Z8map_typeB5cxx11 Referenced from: /usr/local/ff++/openmpi-2.1/lib/ff++/3.61-1/lib/mpi/myfunction.dylib Expected in: flat namespace in /usr/local/ff++/openmpi-2.1/lib/ff++/3.61-1/lib/mpi/myfunction.dylib
I suspect that I made a mistake when coordinating the ff++.hpp file and all its dependencies. Do you have a working example (with all the necessary files) of how to compile and link a c++ file to be called in FF++?
Once I can recreate a working example, I think moving all heavy computation from my .edp to a c++ script will be trivial.
Thank you,
Nathan
from freefem-sources.
Using ff-c++
from a bundled FreeFem++ installation requires you having exactly the same configuration as when the bundle was created. It appears you are using a rather old FreeFem++ installation (3.61-1), and it is highly likely your configuration has evolved. Once you start using that kind of developer oriented feature, my advice is to compile FreeFem++ yourself. You can also first try to just add the -std=c++11
argument in your ff-c++
command line, but I can't assure you this will work.
from freefem-sources.
Related Issues (20)
- Conflicts with SuperLU-6.0.0 HOT 18
- Missing BEM potentials HOT 1
- Installation problems on apple m2 HOT 1
- PETSc and export .vtu files HOT 1
- BDM finite element HOT 1
- A higher BDM finite element HOT 1
- error: use of overloaded operator '=' is ambiguous (with operand types 'KN<idx_t>' (aka 'KN<long>') and 'int') HOT 3
- The test LapEigenBeltrami.edp fails HOT 7
- Does Freefem have a quadrilateral element? HOT 2
- no match for ‘operator==’ (operand types are ‘const Cplx {aka const std::complex<double>}’ and ‘__complex__ double’) HOT 2
- Calculations stop when the plot window is minimized HOT 1
- MacOS install Error, libumfpack.6.dylib no such file HOT 2
- FFGlut error on release 4.13
- Adaptation does not converge with mshmet/mmg3d HOT 1
- configure fails to find ipopt because it looks for the header in a wrong place
- configure fails to find scotch because of: error: unknown type name 'int64_t' HOT 4
- problems when compiling on RH Linux HOT 7
- FAIL: testvtk.edp HOT 1
- Problems compiling on OpenSUSE 15.4 HOT 7
- Deprecated URL for MUMPS download in 3rdparty/getall HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freefem-sources.