Difference between revisions of "Installation/Howto porting to new platform"
From OpenFOAMWiki
m |
(Switched from the outdated section to the other details section) |
||
(19 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
+ | These pointers for starting a port to an unsupported platform were posted in a discussion about [http://openfoam.cfd-online.com/forum/messages/1/112.html porting to Mac OS X] by Mattjis Janssens. | ||
− | |||
− | + | * in the <tt>XXX/.OpenFOAM-1.1/bashrc</tt> add a check for your machine type and set <tt>WM_ARCH</tt> and <tt>WM_MPLIB</tt>. You can leave <tt>WM_MPLIB</tt> empty (which will link in the dummy/ Pstream (which saves you having to compile lam or mpich)) | |
− | * in the <tt>XXX/.OpenFOAM-1.1/bashrc</tt> add a check for your machine type and set <tt>WM_ARCH</tt> and <tt>WM_MPLIB. You can leave <tt>WM_MPLIB</tt> empty (which will link in the dummy/ Pstream (which saves you having to compile lam or mpich)) | + | |
* in the <tt>XXX/.bashrc</tt> add your architecture and set all the relevant variables to access gcc and java and such | * in the <tt>XXX/.bashrc</tt> add your architecture and set all the relevant variables to access gcc and java and such | ||
* make a copy of e.g. <tt>$WM_DIR/rules/linux</tt> to <tt>$WM_DIR/rules/$WM_ARCH</tt> and adapt the settings in these files. | * make a copy of e.g. <tt>$WM_DIR/rules/linux</tt> to <tt>$WM_DIR/rules/$WM_ARCH</tt> and adapt the settings in these files. | ||
* have a look at <tt>XXX/Allwmake</tt> script which compiles up some binaries needed by 'wmake' itself ('<tt>cd wmake ; ./makeWmake</tt>') | * have a look at <tt>XXX/Allwmake</tt> script which compiles up some binaries needed by 'wmake' itself ('<tt>cd wmake ; ./makeWmake</tt>') | ||
* have a look at <tt>XXX/src/Allwmake</tt> and compile in the same order (leaving out the lam and mico if you don't want to run parallel or FoamX) | * have a look at <tt>XXX/src/Allwmake</tt> and compile in the same order (leaving out the lam and mico if you don't want to run parallel or FoamX) | ||
+ | * compiling OpenFOAM from source usually requires you to also compile Paraview from source in order for ParaFOAM to work correctly | ||
+ | |||
+ | [[Category:Tutorials]] | ||
+ | [[Category:Installing OpenFOAM - Other Details]] |
Latest revision as of 11:00, 2 November 2013
These pointers for starting a port to an unsupported platform were posted in a discussion about porting to Mac OS X by Mattjis Janssens.
- in the XXX/.OpenFOAM-1.1/bashrc add a check for your machine type and set WM_ARCH and WM_MPLIB. You can leave WM_MPLIB empty (which will link in the dummy/ Pstream (which saves you having to compile lam or mpich))
- in the XXX/.bashrc add your architecture and set all the relevant variables to access gcc and java and such
- make a copy of e.g. $WM_DIR/rules/linux to $WM_DIR/rules/$WM_ARCH and adapt the settings in these files.
- have a look at XXX/Allwmake script which compiles up some binaries needed by 'wmake' itself ('cd wmake ; ./makeWmake')
- have a look at XXX/src/Allwmake and compile in the same order (leaving out the lam and mico if you don't want to run parallel or FoamX)
- compiling OpenFOAM from source usually requires you to also compile Paraview from source in order for ParaFOAM to work correctly