|
[Sponsors] |
May 14, 2014, 10:03 |
problem with compiling new RNGkEpsilon
|
#1 |
New Member
Michael
Join Date: Aug 2012
Posts: 6
Rep Power: 14 |
Hey Everybody,
While trying to implement an edited version of the turbulence model RNGkEpsilon, I get this error when trying to compile it with wmake. Code:
SOURCE=myRNGkEpsilon/myRNGkEpsilon.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/turbulenceModels -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/thermophysicalModels/basic/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/thermophysicalModels/solidThermo/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/meshTools/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/turbulenceModels/compressible/RAS/lnInclude -IlnInclude -I. -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/disk/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/myRNGkEpsilon.o jar cfm /disk/OpenFOAM/mhanna-2.2.x/platforms/linux64Gcc46DPOpt/lib/libmyCompressibleRASModels .jar -lcompressibleTurbulenceModel -lfiniteVolume -lfluidThermophysicalModels -lspecie -lmeshTools -C Make/classes . g++: error: .so: No such file or directory make: *** [.so] Error 1 make: *** Waiting for unfinished jobs.... java.io.FileNotFoundException: .jar (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:140) at java.io.FileInputStream.<init>(FileInputStream.java:96) at sun.tools.jar.Main.run(Main.java:168) at sun.tools.jar.Main.main(Main.java:1167) make: *** [/disk/OpenFOAM/mhanna-2.2.x/platforms/linux64Gcc46DPOpt/lib/libmyCompressibleRASModels] Error 1 Thanks in advance |
|
November 14, 2014, 07:29 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
For future readers. I had a similar error message for a boundary condition. If you have this error, take a few steps back to the original files that you copied. For the above example, be sure to replace all occurences of "RNGkEpsilon" with something unique, e.g. "myRNGkEpsilon". That solved it for me.
Another hint that might help future readers: there are depencies. Copy the Make files and options, and in options, add the original library where you copied the source from (as well as the lnInclude path). By the way, I had this issue in OpenFOAM version 2.1 |
|
March 21, 2016, 16:03 |
|
#3 |
New Member
Paul
Join Date: May 2012
Posts: 23
Rep Power: 14 |
I ran into this same problem and fixed it by alternative means. Notice that the error says that the compiler is looking for a file called ".jar", but can't find it. This means that, somehow, your make file was created in such a way that it included an extra space in between "libmyCompressibleRASModels" and ".jar". When I inspected the file "Make/files", I noticed that the line:
LIB = $(FOAM_LIBBIN)/libCompressibleRASModels had an extra space at the end of it. By removing the extra space at the line, it worked fine. |
|
Tags |
compilation error, rngkepsilon, turbulence model |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
C_T(c,t) problem while compiling (OK interpreted) | crevoise | Fluent UDF and Scheme Programming | 6 | February 4, 2014 08:16 |
Problem with compiling new solver | palazi88 | OpenFOAM Programming & Development | 2 | December 24, 2013 20:52 |
problem with compiling the source code | michel1988 | OpenFOAM Installation | 1 | April 17, 2013 18:19 |
COMPILING PROBLEM | ammi | FLUENT | 1 | December 7, 2006 05:07 |
problem in compiling UDF | ammi reddy | FLUENT | 1 | December 1, 2006 07:45 |