CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[] Compiler Directives

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

LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2014, 12:51
Default Compiler Directives
New Member
Shabir Mohamed
Join Date: Jun 2014
Posts: 20
Rep Power: 11
Shabirmean is on a distinguished road

Where do I include compiler directives to be used when compiling an OpenFOAM case using wmake???

Ex: I want to use optimization flag -03 and -msse4.2

Can somebody please help??
Shabirmean is offline   Reply With Quote

Old   November 25, 2014, 14:02
Senior Member
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym

not quite get the meaning of "compiling OpenFOAM case" but if you'd like to modify optimization flags for OpenFOAM:

$ cd $WM_PROJECT_DIR/wmake/rules/<platform>
where <platfrom> is the name of the platform you're compiling for (ex. darwinIntel64Clang for OS X and Clang, linux64Gcc for linux and Gcc). There are c++Opt and cOpt files, where you can set your flags.
alexeym is offline   Reply With Quote


compile, optimization

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
Error installing OpenFOAM 2.2.0 on CentOS 6.4 CGMaioli OpenFOAM Installation 34 February 24, 2014 14:06
checking for C++ compiler default output file name... configure: error: C++ compiler dhxlxz SU2 Installation 2 September 7, 2013 11:08
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) sfigato OpenFOAM Installation 22 January 31, 2013 10:16
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43

All times are GMT -4. The time now is 23:37.