|
[Sponsors] |
July 21, 2021, 04:56 |
How to add comment line in Make/files
|
#1 |
New Member
Youjiang Wang
Join Date: Apr 2015
Location: Hamburg
Posts: 22
Rep Power: 11 |
I just want to comment out some lines to accelerate the compile during the development. I tried #, wmake complaint "invalid preprocessing directive #...". I also tried //, but did not work.
|
|
July 21, 2021, 07:46 |
|
#2 |
Member
Join Date: Jun 2019
Posts: 41
Rep Power: 6 |
Not sure about this but can you try -- space before a file name?
|
|
July 21, 2021, 08:52 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40 |
Quote:
The Make/files, Make/options are passed through cpp (pre-processor). Use C-style comments and all should be fine. Eg, Code:
sinclude $(GENERAL_RULES)/module-path-user /* Failsafe - user location */ ifeq (,$(strip $(FOAM_MODULE_APPBIN))) FOAM_MODULE_APPBIN = $(FOAM_USER_APPBIN) endif ifeq (,$(strip $(FOAM_MODULE_LIBBIN))) FOAM_MODULE_LIBBIN = $(FOAM_USER_LIBBIN) endif /* Python */ PY_INCS := \ -Wno-old-style-cast \ -I/usr/include/python3.6m \ -I/usr/lib64/python3.6/site-packages/numpy/core/include \ -I/usr/local/lib/python3.6/dist-packages/numpy/core/include PY_LIBS := \ -lpython3.6m #if defined(OPENFOAM) && (OPENFOAM < 2012) /* ... something older ... */ #endif /* ... later on */ EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ $(PY_INCS) |
||
July 21, 2021, 11:01 |
|
#4 |
New Member
Youjiang Wang
Join Date: Apr 2015
Location: Hamburg
Posts: 22
Rep Power: 11 |
Thank you, Mark. This works perfectly.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 17:22 |
[OpenFOAM] ParaView command in Foam-extend-4.1 | mitu_94 | ParaView | 0 | March 4, 2021 13:46 |
[OpenFOAM] Take derivative of mean velocity in paraFoam | hiuluom | ParaView | 13 | April 26, 2016 06:44 |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 02:09 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 05:42 |