View Issue Details

IDProjectCategoryView StatusLast Update
0003872OpenFOAMBugpublic2022-08-05 08:57
Reportercgoessni Assigned Tohenry  
PrioritynoneSeveritytrivialReproducibilityalways
Status closedResolutionno change required 
Platformamd64OSCentOSOS Version7
Product Versiondev 
Summary0003872: decomposePar and reconstructPar fail to compile
DescriptionWhen I try to compile decomposePar and reconstructPar, they would fail due to not found header files:

reconstructPar.C:209:14: fatal error: setRegionNames.H: No such file or directory
  209 | #include "setRegionNames.H"
      | ^~~~~~~~~~~~~~~~~~

The attached diff solves the problem for me
TagsNo tags attached.

Activities

cgoessni

2022-08-05 07:53

reporter  

parallel_utils.diff.txt (1,060 bytes)   
diff --git a/applications/utilities/parallelProcessing/decomposePar/Make/options b/applications/utilities/parallelProcessing/decomposePar/Make/options
index 75d78eb..260c947 100644
--- a/applications/utilities/parallelProcessing/decomposePar/Make/options
+++ b/applications/utilities/parallelProcessing/decomposePar/Make/options
@@ -1,4 +1,5 @@
 EXE_INC = \
+    -I$(LIB_SRC)/OpenFOAM/include \
     -I$(LIB_SRC)/finiteVolume/lnInclude \
     -I$(LIB_SRC)/meshTools/lnInclude \
     -I$(LIB_SRC)/parallel/parallel/lnInclude \
diff --git a/applications/utilities/parallelProcessing/reconstructPar/Make/options b/applications/utilities/parallelProcessing/reconstructPar/Make/options
index 40c6a86..ec798b2 100644
--- a/applications/utilities/parallelProcessing/reconstructPar/Make/options
+++ b/applications/utilities/parallelProcessing/reconstructPar/Make/options
@@ -1,4 +1,5 @@
 EXE_INC = \
+    -I$(LIB_SRC)/OpenFOAM/include \
     -I$(LIB_SRC)/finiteVolume/lnInclude \
     -I$(LIB_SRC)/meshTools/lnInclude \
     -I$(LIB_SRC)/parallel/parallel/lnInclude \
parallel_utils.diff.txt (1,060 bytes)   

henry

2022-08-05 08:11

manager   ~0012704

It looks like your lnInclude directories are out of date and you will need to update them.

cgoessni

2022-08-05 08:30

reporter   ~0012705

Yes, my lnInclude directiories were out-of-date. It works now.

Such compile errors with missing includes happen quite frequently after I do a "git pull". Is there a best practise to force renewal of e.g. lnInclude directories? Normally, I go to $WM_PROJECT_DIR and make ./Allwmake -j. Any recommended step in between?

henry

2022-08-05 08:56

manager   ~0012706

./Allwmake -help

Usage: Allwmake [OPTIONS]

Executing Allwmake is equivalent to

   wmake -all [OPTIONS]

Usage: wmake [OPTION] [dir]
       wmake [OPTION] target [dir [MakeDir]]

options:
  -silent | -s Quiet mode (does not echo commands)
  -all | -a wmake all sub-directories, running Allwmake if present
  -queue | -q wmakeCollect all sub-directories, running Allwmake if present
  -non-stop | -k Compile without stopping when errors occur
  -j Compile using all local cores/hyperthreads
  -j <N> | -j<N> Compile using N cores/hyperthreads
  -no-scheduler Compile without wmakeScheduler
  -update Update lnInclude directories, dep files, remove deprecated
                    files and directories
  -help | -h Print the usage


A general, easy-to-use make system for multi-platform development
with support for local and network parallel compilation.

The 'target' is a Makefile target:
  e.g., platforms/linux64GccDPOpt/.../fvMesh.o

or a special target:
  all wmake all sub-directories, running Allwmake if present
  queue wmakeCollect all sub-directories, running Allwmake if present
  exe Compile statically linked executable
  lib Compile statically linked archive lib (.a)
  libo Compile statically linked lib (.o)
  libso Compile dynamically linked lib (.so)
  dep Compile lnInclude and dependencies only
  objects Compile but not link

henry

2022-08-05 08:57

manager   ~0012707

User error

Issue History

Date Modified Username Field Change
2022-08-05 07:53 cgoessni New Issue
2022-08-05 07:53 cgoessni File Added: parallel_utils.diff.txt
2022-08-05 08:11 henry Note Added: 0012704
2022-08-05 08:30 cgoessni Note Added: 0012705
2022-08-05 08:56 henry Note Added: 0012706
2022-08-05 08:57 henry Priority normal => none
2022-08-05 08:57 henry Severity major => trivial
2022-08-05 08:57 henry Assigned To => henry
2022-08-05 08:57 henry Status new => closed
2022-08-05 08:57 henry Resolution open => no change required
2022-08-05 08:57 henry Note Added: 0012707