Package Details: openfoam-org 11.20240704-1

Git Clone URL: https://aur.archlinux.org/openfoam.git (read-only, click to copy)
Package Base: openfoam
Description: The open source CFD toolbox (www.openfoam.org)
Upstream URL: http://www.openfoam.org
Licenses: GPL
Provides: openfoam
Submitter: None
Maintainer: petronny (AutoUpdateBot)
Last Packager: AutoUpdateBot
Votes: 63
Popularity: 1.53
First Submitted: 2009-07-02 09:16 (UTC)
Last Updated: 2024-07-05 09:28 (UTC)

Pinned Comments

petronny commented on 2020-08-04 08:36 (UTC) (edited on 2023-04-14 08:48 (UTC) by petronny)

Pre-built binaries of this package and its dependencies can be found in the arch4edu repository.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 .. 27 Next › Last »

jancici commented on 2018-11-22 08:09 (UTC) (edited on 2018-11-22 08:10 (UTC) by jancici)

I am getting this error:

Making dependency list for source file UOPwrite.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 -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c UOPwrite.C -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UOPwrite.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 -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c UIPread.C -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UIPread.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 -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c UPstream.C -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UPstream.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 -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c PstreamGlobals.C -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/PstreamGlobals.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 -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UOPwrite.o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UIPread.o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/UPstream.o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/PstreamGlobals.o -L/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32OptOPENMPI/lib \ -L/home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/lib64 -L/home/jano/.cache/yay/openfoam/src/ThirdParty-6/platforms/linux64Gcc/openmpi-2.1.1/lib -lmpi -o /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32Opt/lib/openmpi-2.1.1/libPstream.so /usr/bin/ld: cannot find -lmpi collect2: error: ld returned 1 exit status make: *** [/home/jano/.cache/yay/openfoam/src/OpenFOAM-6/wmake/makefiles/general:169: /home/jano/.cache/yay/openfoam/src/OpenFOAM-6/platforms/linux64GccDPInt32Opt/lib/openmpi-2.1.1/libPstream.so] Error 1 ==> ERROR: A failure occurred in build(). Aborting... Error making: openfoam

lahwaacz commented on 2018-11-22 07:39 (UTC) (edited on 2018-11-22 11:44 (UTC) by lahwaacz)

@petronny Upon closer look, it fails for me because in my case cd is not a builtin command, but a custom function which prints text on stdout. To always call the builtin cd the command would have to be builtin cd. But since you set $FOAM_INST_DIR in /etc/profile.d/openfoam-6.sh anyway, those commands in openfoam's bashrc may as well be commented out.

petronny commented on 2018-11-22 04:02 (UTC)

@lahwaacz ofoam works fine for me under bash or zsh.
And $FOAM_INST_DIR is set to /opt/OpenFOAM correctly.
So I won't apply your patch for now.

If anyone else find this patch is necessary, please let me know and I will do more research.

lahwaacz commented on 2018-11-21 14:57 (UTC)

To fix the openfoam's bashrc the following patch is needed:

diff --git a/etc/bashrc b/etc/bashrc
index bd7df4c..13ab385 100755
--- a/etc/bashrc
+++ b/etc/bashrc
@@ -42,9 +42,9 @@ export WM_PROJECT_VERSION=6
 #
 # Please set to the appropriate path if the default is not correct.
 #
-[ "$BASH" -o "$ZSH_NAME" ] && \
-export FOAM_INST_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../.. && pwd -P) || \
-export FOAM_INST_DIR=$HOME/$WM_PROJECT
+#[ "$BASH" -o "$ZSH_NAME" ] && \
+#export FOAM_INST_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../.. && pwd -P) || \
+#export FOAM_INST_DIR=$HOME/$WM_PROJECT
 # export FOAM_INST_DIR=~$WM_PROJECT
 # export FOAM_INST_DIR=/opt/$WM_PROJECT
 # export FOAM_INST_DIR=/usr/local/$WM_PROJECT

Otherwise the ofoam alias fails as I mentioned below.

roarchero commented on 2018-07-20 17:49 (UTC)

@petronny thanks for your effort!

petronny commented on 2018-07-20 01:52 (UTC)

@roarchero I'm trying to upgrade it to Openfoam 6 now. It will take some time.

aslakstubsgaard commented on 2018-07-19 20:49 (UTC)

@petronny thanks, fixed the issues on my system

roarchero commented on 2018-07-19 17:42 (UTC)

Will this stay at Openfoam 5 or will it upgrade to Openfoam 6? Is there some package coming for Openfoam 6 then?

petronny commented on 2018-07-16 06:23 (UTC)

@aslakstubsgaard I have fixed the errors but I'm not sure the patches are right. Please help me to check them.

aslakstubsgaard commented on 2018-07-15 16:26 (UTC)

is it just me or is this package still missing an upgrade to work with the gcc 8.1 release from back in may?