allenfieldin |
November 24, 2014 21:29 |
waveDyMFoam compile warnings with relaxing.correct()
Hi, Niels,
sorry to bother you.
I am trying to using waveFoam together with dynamic mesh to study FSI problem, the steps are listed in Wiki as you did.
my foam version is extend-3.0, waveFoam is okay with it and I have run several cases with it, but when I try to compile waveDyMFoam in /waveFoam folder, it gives me the following error:
Quote:
allen@allen-HIT:~/foam/allen-3.0/applications/utilities/waves2Foam$ cd -
/home/allen/foam/allen-3.0/applications/utilities/waves2Foam/applications/solvers/solvers300/waveFoam
allen@allen-HIT:~/foam/allen-3.0/applications/utilities/waves2Foam/applications/solvers/solvers300/waveFoam$ wmake
/home/allen/foam/foam-extend-3.0/wmake/scripts/mkObjectDir: 37: [: -a: unexpected operator
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/allen/foam/foam-extend-3.0/src/transportModels -I/home/allen/foam/foam-extend-3.0/src/transportModels/incompressible/lnInclude -I/home/allen/foam/foam-extend-3.0/src/transportModels/interfaceProperties/lnInclude -I/home/allen/foam/foam-extend-3.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/allen/foam/foam-extend-3.0/src/finiteVolume/lnInclude -DOFVERSION=300 -DEXTBRANCH=1 -I/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/home/allen/foam/foam-extend-3.0/src/foam/lnInclude -I/home/allen/foam/foam-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/waveFoam.o -L/home/allen/foam/foam-extend-3.0/lib/linux64GccDPOpt \
-linterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -llduSolvers -L -lwaves2Foam -lwaves2FoamSampling -L -lgsl -lgslcblas -lfoam -liberty -ldl -lrt -lm -o /waveFoam
/usr/bin/ld: cannot open output file /waveFoam: Permission denied
collect2: ld returned 1 exit status
make: *** [/waveFoam] Error 1
|
my waveDyMFoam/Make/option file looks like this:
Quote:
EXE_INC = \
-I../interFoam \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
-I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/dynamicMesh/dynamicFvMesh/lnInclude \
-I./../../../../../src/waves2Foam/lnInclude
EXE_LIBS = \
-linterfaceProperties \
-lincompressibleTransportModels \
-lincompressibleTurbulenceModel \
-lincompressibleRASModels \
-lincompressibleLESModels \
-lfiniteVolume \
-ldynamicMesh \
-lmeshTools \
-ldynamicFvMesh \
-ltopoChangerFvMesh \
-llduSolvers \
-L$(MESQUITE_LIB_DIR) -lmesquite \
-L$(FOAM_USER_LIBBIN) \
-lwaves2Foam
|
can you give me any hint on this?
I guess something goes wrong with my option file.
Thanks in advance:)
/Allen
|