OpenFOAM #includes inside functions [message #1869438] |
Fri, 16 August 2024 16:39 |
Ivor Clifford Messages: 1 Registered: August 2024 |
Junior Member |
|
|
In OpenFOAM they tend to use #includes directly within the main function so that certain commonly used variables can be easily constructed in each different solver. This is clearly not typical C++ programming but it does help to keep the main function of these complicated numerical analysis solvers quite short and clean without hiding the details.
I have noticed that the eclipse parser ignores the #includes when they are inside a function e.g.
int main(int argc, char *argv[])
{
# include "setRootCase.H"
...
}
where "setRootCase.H" defines several variables. All of these variables are flagged as undefined by the parser.
Is there a setting to tell the parser not to ignore these #includes.
I am using Eclipse 2024-06 on RHEL8.
Thanks in advance
|
|
|
Powered by
FUDForum. Page generated in 0.02901 seconds