CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Compiler Directives

Register Blogs Community New Posts Updated Threads Search

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

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, 15:02
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

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

Code:
$ 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

Reply

Tags
compile, optimization


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


All times are GMT -4. The time now is 15:19.