diff --git a/src/petsc4Foam/Allwmake b/src/petsc4Foam/Allwmake index c07c3937fb3aa24fefed23a01c47425456f1dc2a..b718bd88dd7c9780c09645d53f369fd63a6fac51 100755 --- a/src/petsc4Foam/Allwmake +++ b/src/petsc4Foam/Allwmake @@ -11,16 +11,19 @@ then echo "wmake(petsc) $targetType : $PETSC_ARCH_PATH" wmake $targetType - /bin/cat<<INFO 1>&2 + /bin/cat<<INFORMATION 1>&2 ==> Before running, verify that PETSc libraries can be found +For example, -Enable in the OpenFOAM etc/bashrc, define manually or try with the -following (POSIX shell): + foamHasLibrary -verbose petscFoam + +Define manually, enable in OpenFOAM etc/bashrc, or try the following [POSIX]: eval \$(foamEtcFile -sh -config petsc -- -force) == -INFO +INFORMATION + fi #------------------------------------------------------------------------------ diff --git a/src/petsc4Foam/Make/options b/src/petsc4Foam/Make/options index f49918300903cd62a0f9b3583928892381fbda6f..a4d0a735fe47159a15d407563fdc707ce8e07219 100644 --- a/src/petsc4Foam/Make/options +++ b/src/petsc4Foam/Make/options @@ -12,11 +12,10 @@ EXE_INC = \ $(PFLAGS) $(PINC) \ -Wno-old-style-cast \ -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/fvOptions/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ - -I${PETSC_INC_DIR} + $(foreach dir,$(PETSC_INC_DIR),-I$(dir)) LIB_LIBS = \ -lfiniteVolume \ - -L$(FOAM_EXT_LIBBIN)/$(FOAM_MPI) \ - -L${PETSC_LIB_DIR} -lpetsc + -lmeshTools \ + $(foreach dir,$(PETSC_LIB_DIR),-L$(dir)) -lpetsc