CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Compiling a new solver: what's this error? (https://www.cfd-online.com/Forums/openfoam-programming-development/153245-compiling-new-solver-whats-error.html)

samiam1000 May 21, 2015 05:36

Compiling a new solver: what's this error?
 
1 Attachment(s)
Dear All,

I am trying to figure out how to comppile a new solver..

..Actually, running the "wmake" command, I get error in the attached file.

Any help, please?

Thanks a lot,
Samuele

wyldckat May 21, 2015 16:20

Greetings Samuele,

The first error is essentially this one:
Code:

createFields.H:13:5:  required from here
/home/szampini/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:173:45: error: ‘set’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
        set(patchi, btf[patchi].clone(field));

After looking at the remaining error messages, I've got a feeling that the problem is due to an incorrect file name that was included somewhere in your application. Something as simple as using this:
Code:

#include "char.h"
instead of this:
Code:

#include "Char.H"
is enough to break the compilation process.

Without access to the source code, it's too hard to help you diagnose the problem.
I suggest that you take a look at the solvers in which your current solver was based on and compare each file, to see what was modified and what might be wrong.

Best regards,
Bruno

samiam1000 May 22, 2015 02:58

Thanks a lot Bruno,

I'll dig into the code.

Samuele


All times are GMT -4. The time now is 14:20.