CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

using other compilers

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   November 6, 2009, 05:47
Default using other compilers
New Member
Join Date: Oct 2009
Location: Bremen, Germany
Posts: 15
Rep Power: 6
soeren87 is on a distinguished road
I got my answers and this topic can be closed


i am not a good programmer but for some studies i am trying to recompile the icoFoam solver (not really necessary) with an other c++ compiler.
First there were many problems with missing header files, but after putting them (about 2000) into a special folder, the compiler got them.

Now the Header files produce many errors like:

/home/me/include/scalar.H(40): error: pTraits is not a template
/home/me/include/scalar.H(40): error: identifier "Scalar" is undefined
/home/me/include/scalar.H(42): error: "Scalar" is not a type name

the code of scalar.H in that lines is:
class pTraits<Scalar>
Scalar p_

i am wondering that the makefile compiler works with that file and mine produces many errors.
Can you give me a hint how to go on ?
I guess the compiler wants to have an other syntax, but than i would have to change each used header file..

have you experiences with other compilers ?

Last edited by soeren87; November 6, 2009 at 09:44.
soeren87 is offline   Reply With Quote

Old   July 15, 2014, 15:56
New Member
Amin Mir
Join Date: Jun 2014
Posts: 1
Rep Power: 0
aminsamf is on a distinguished road
Hi there,

I have the same problem. Could u plz tell me how u fixed your problem?

Thank u in advance.

aminsamf is offline   Reply With Quote

Old   July 16, 2014, 04:52
New Member
Join Date: Oct 2009
Location: Bremen, Germany
Posts: 15
Rep Power: 6
soeren87 is on a distinguished road
Sorry Amin,

my post is 5 years old and I dont know my aim of compiling it.

I guess there are two possibilities:

The first is compiling it on windows.
Finally I used blueCFD which is a whole package of compiled windows solvers. It is very good working.

The second possibility is that i wanted to modify the solver in order to get the kernel processing on GPU.
Have a look at

Sorry it is too long time ago
soeren87 is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compilers and languages benchmarks alberto OpenFOAM 0 September 6, 2008 23:30
Fortran Compilers to write routines in CFX Luiz CFX 1 February 11, 2008 13:02
Help - FTN95 and Solaris F90 Compilers pogas Main CFD Forum 1 March 21, 2007 21:12
Online waiting for help on Intel Compilers lee Main CFD Forum 1 October 8, 2006 07:54
'C' or FORTRAN or 'C++' Yogesh Talekar Main CFD Forum 20 October 21, 1999 04:00

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