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

Question about how include a new rule in wmake

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2016, 09:43
Default Question about how include a new rule in wmake
  #1
New Member
 
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 11
towanda is on a distinguished road
Hello,
i am trying to include #include <mpi.h> library in a solver to be able to use the basic functions of MPI. When I compile the solver named
"simpleFoam_MPI" with wmake the compile line generated is:

>$ g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/TurbulenceModels/turbulenceModels/lnInclude -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/TurbulenceModels/incompressible/lnInclude -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/transportModels -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/incompressible/singlePhaseTransportModel -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/finiteVolume/lnInclude -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/fvOptions/lnInclude -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/sampling/lnInclude -IlnInclude -I. -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/simpleFoam_MPI.o -L/users/rechimal/OpenFOAM/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/lib \
-lturbulenceModels -lincompressibleTurbulenceModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lfvOptions -lsampling -lOpenFOAM -ldl \
-lm -o /users/rechimal/OpenFOAM/rechimal-3.0.1/platforms/linux64GccDPInt32Opt/bin/simpleFoam_MPI

//--------------------------------------------------------------------------------------------------------------------------
I would like to change de g++ compiler by mpic++ compiler changing some rule in the wmake tool. I was trying to find which is the rule but I could not find any. How can I do this using wmake (it works if I just copy the line and I change it by hand, but I would like to understand a little bit how wmake works).

Thank you in advance.
towanda is offline   Reply With Quote

Reply

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
[OpenFOAM.com] erros in Allwmake jiwon OpenFOAM Installation 7 December 30, 2015 12:34
[OpenFOAM.org] wmake problem vville OpenFOAM Installation 1 October 8, 2015 05:01
Cht tutorial in 15 braennstroem OpenFOAM Running, Solving & CFD 197 June 10, 2015 03:02
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26


All times are GMT -4. The time now is 00:52.