CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Can not compile user made solver using wmake

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2021, 10:50
Arrow Can not compile user made solver using wmake
  #1
New Member
 
Michal Wietlicki
Join Date: Sep 2020
Posts: 3
Rep Power: 2
mw4617 is on a distinguished road
I'm trying to edit pimpleFoam application in a specific way that has already been done by a user. Trouble is that steps for compilation where not mentioned by the user and I can not compile myself, I get the following error:

mkdir: cannot create directory ‘/opt/openfoam8/platforms/linux64GccDPInt32Opt/applications’: Permission denied
/bin/sh: 1: cannot create /opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/options'. Stop.
/bin/sh: 1: cannot create /opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/options', needed by 'all'. Stop.
wmake error: file '/opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/sourceFiles' could not be created in /opt/openfoam8/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam

I've seen the thread (https://bugs.openfoam.org/view.php?id=927) by wyldcat on how to resolve this issue, but this does not seem to fix it for me. Not sure if I'm making a mistake somewhere or if in my case it is not sufficient


The EHDpimpleFoam/Make/files is:

EHDpimpleFoam.C

LIB = $(FOAM_USER_LIBBIN)/EHDpimpleFoam

The EHDpimpleFoam/Make/files is of the format:

EXE_INC = \

list of libaries - copied from pimplefoam

LIB_LIBS = \

list of libraries - copied from pimpleFoam

if I change the first EXE_INC to LIB_EXE I get the same error.

I've edited the MAKE in the SRFPimpleFoam subdirectory of EHDpimpleFoam to be the same.
mw4617 is offline   Reply With Quote

Old   February 26, 2021, 11:57
Default Issue Solved
  #2
New Member
 
Michal Wietlicki
Join Date: Sep 2020
Posts: 3
Rep Power: 2
mw4617 is on a distinguished road
I used a different pc with a openfoam version 6 instead of 8 and I did not have this issue, anymore. Additionally instead of LIB = $(FOAM_USER_LIBBIN)/EHDpimpleFoam I used EXE= $(FOAM_USER_APPBIN)/EHDpimpleFoam and EXE_LIBS instead of LIB_LIBS.
mw4617 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compile openfoam solver without wmake silverbluep OpenFOAM Programming & Development 0 February 15, 2018 18:22
Why is wmake insufficient to effect the changes I want made in a library? cdunn6754 OpenFOAM Programming & Development 0 October 16, 2017 17:37
user routine, user funcion, or fortran compile effect on the memroy? princeps11 CFX 1 May 13, 2009 18:37
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51
CFX 5.5 Roued CFX 1 October 2, 2001 16:49


All times are GMT -4. The time now is 12:40.