argonne-lcf/TensorFlowFoam

Encountering an error in Step 4 in README.md in ML_RANS

Closed this issue · 0 comments

lhtxx commented

I was in Step 4 in README.md in ML_RANS. I ran wclean && wmake from the simpleFoam_ML directory and I got the following:

Making dependency list for source file simpleFoam_ML.C g++ -std=c++11 -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/opt/openfoam5/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam5/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam5/src/transportModels -I/opt/openfoam5/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/meshTools/lnInclude -I/opt/openfoam5/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude -fPIC -c simpleFoam_ML.C -o Make/linux64GccDPInt32Opt/simpleFoam_ML.o g++ -std=c++11 -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/opt/openfoam5/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam5/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam5/src/transportModels -I/opt/openfoam5/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/meshTools/lnInclude -I/opt/openfoam5/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/simpleFoam_ML.o -L/opt/openfoam5/platforms/linux64GccDPInt32Opt/lib \ -lturbulenceModels -lincompressibleTurbulenceModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lfvOptions -lsampling -lOpenFOAM -ldl \ -lm -o /opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleFoam_ML /usr/bin/ld: cannot open output file /opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleFoam_ML: Permission denied collect2: error: ld returned 1 exit status /opt/openfoam5/wmake/makefiles/general:140: recipe for target '/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleFoam_ML' failed make: *** [/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleFoam_ML] Error 1

I create a simpleFOAM_ML and provide permissions to it. It works.