Comments (7)
Have you tried export FF_INCLUDEPATH=$PATH_TO_YOUR_.EDP
?
from freefem-sources.
The FF_INCLUDEPATH
variable seems to not be enought:
ci@ubuntu1604:~/workspace/FreeFem-source-feature-cmake-UbuntuAll/build_cmake/src$ export FF_INCLUDEPATH=/builds/workspace/FreeFem-source-feature-cmake-UbuntuAll/examples++
ci@ubuntu1604:~/workspace/FreeFem-source-feature-cmake-UbuntuAll/build_cmake/src$ ./FreeFem++ ../../examples++/include.edp
-- FreeFem++ v 3.500000 (date ' Thu Jul 19 11:33:00 CEST 2018')
Load: lg_fem lg_mesh lg_mesh3 eigenvalue
1 : { include "funct.edp" Error openning file funct.edp in:
-- try :"funct.edp"
Error line number 1, in file ../../examples++/include.edp, before token funct.edp
lex: Error input openning file
current line = 1
Compile error : lex: Error input openning file
line number :1, funct.edp
error Compile error : lex: Error input openning file
line number :1, funct.edp
code = 1 mpirank: 0
When the test is launched in the examples++ directory, all works fine.
An other remark, it misses ref.edp
in the examples++
folder, did you remove it @cdoucet ?
from freefem-sources.
Yes, I removed it by mistake because I thought it has been updated after tests. I don't understand exactly what is happening with this file. I have two different versions of it, one in my local repository and the other in develop branch. Here is the output of diff:
1c1
< real REFaadaptation=0.000319245;
---
> real REFaadaptation=0.00031908;
4c4
< real REFaamove=0.0714792;
---
> real REFaamove=0.070846;
9,10c9,10
< real REFdemo1=1.36626;
< real REFdemo=1.31616;
---
> real REFdemo1=1.36948;
> real REFdemo=1.36948;
14,16c14,16
< real REFNSP1P1b=0.0463864;
< real REFNSP1P1=0.0509257;
< real REFNSP1P2=0.0454064;
---
> real REFNSP1P1b=0.0463193;
> real REFNSP1P1=0.0529355;
> real REFNSP1P2=0.0453229;
18c18
< real REFRichard=95.8416;
---
> real REFRichard=95.8882;
from freefem-sources.
I mean if it stands for reference values for non-regression testing, then it should not be updated but fixed once for all.
from freefem-sources.
You will have, for example, the same problem with examples++-3d/Poisson.edp
which require a mesh in the current directory
from freefem-sources.
Yes, the problem I have with "include" directive is involved in most of failling tests. Solving it would be a great improvement for the cmake version.
from freefem-sources.
I found the problem. HAVE_GETENV must be defined if one want to use FF_INCLUDEPATH. But, as I said in issue #25, these definitions are useless in C++. Here is the reference for std::getenv:
https://fr.cppreference.com/w/cpp/utility/program/getenv
from freefem-sources.
Related Issues (20)
- Missing subtraction assignment operator (-=) HOT 11
- Extended colormaps in FreeFem plot
- Average function command
- 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
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.