|
[Sponsors] |
June 4, 2014, 09:02 |
Problems with compiling new solver
|
#1 |
New Member
Join Date: Sep 2011
Posts: 16
Rep Power: 15 |
Hello,
I just installed OpenFOAM 2.3.0 on openSUSE 13.1. The simulation of the tutorials went fine, however I cannot compile a solver (based on http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam from the openFOAM-Wiki). If I try to compile the solver "myicoFoam", which only differs from "icoFoam" in the name, with "wmake", I get the following error-message: Code:
Making dependency list for source file myicoFoam.C SOURCE=myicoFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/opt/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/myicoFoam.o In file included from myicoFoam.C:53:0: /opt/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’: /opt/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable] const int nOuterCorr = ^ /opt/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readPISOControls.H:12:16: warning: unused variable ‘momentumPredictor’ [-Wunused-variable] const bool momentumPredictor = ^ /opt/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable] const bool transonic = ^ g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/opt/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/myicoFoam.o -L/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lsampling -lOpenFOAM -ldl -lm -o /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/myicoFoam /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot open output file /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/myicoFoam: Permission denied collect2: error: ld returned 1 exit status make: *** [/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/myicoFoam] Error 1 Code:
wmake error: environment variable $WM_OPTIONS not set Is there anything I missed? Thank you for your help in advance. Philipp Dietrich |
|
June 4, 2014, 11:19 |
|
#2 |
Senior Member
|
Hi,
change line Code:
EXE = $(FOAM_APPBIN)/myicoFoam Code:
EXE = $(FOAM_USER_APPBIN)/myicoFoam Code:
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/ |
|
June 9, 2014, 08:14 |
|
#3 |
New Member
Join Date: Sep 2011
Posts: 16
Rep Power: 15 |
Thanks a lot.
That was the error. |
|
October 2, 2014, 20:03 |
|
#4 | |
New Member
Altan
Join Date: Apr 2011
Posts: 13
Rep Power: 15 |
Quote:
|
||
October 3, 2014, 02:30 |
|
#5 |
Senior Member
|
||
Tags |
openfoam, solver, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 4 | August 2, 2014 10:52 |
Problems on implementing actuation disk on piso solver | frankyux | OpenFOAM Programming & Development | 2 | October 3, 2013 00:06 |
2D case with steady solver problems | p_kmb | FLUENT | 6 | April 14, 2013 18:32 |
compiling a solver | fferroni | OpenFOAM Programming & Development | 7 | January 28, 2012 20:25 |
error compiling solver in OpenFOAM 1.6-ext: pimpleDymFoam | tupe | OpenFOAM | 0 | October 3, 2011 06:55 |