Many thanks for investigate @weipeng1999.
Search Criteria
Package Details: openfoam-com v2406-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/openfoam-com.git (read-only, click to copy) |
---|---|
Package Base: | openfoam-com |
Description: | The open source CFD toolbox (www.openfoam.com) |
Upstream URL: | https://www.openfoam.com |
Licenses: | GPL-3.0-or-later |
Submitter: | dl6tud |
Maintainer: | carlosal1015 |
Last Packager: | carlosal1015 |
Votes: | 11 |
Popularity: | 0.002183 |
First Submitted: | 2020-12-24 16:36 (UTC) |
Last Updated: | 2024-11-07 16:29 (UTC) |
Dependencies (8)
- boost (boost-gitAUR)
- cgal (cgal-gitAUR)
- fftw (fftw-amdAUR)
- kahipAUR
- openmpi (openmpi-gitAUR)
- paraview (paraview-gitAUR)
- parmetis-gitAUR
- scotchAUR (scotch-gitAUR)
Required by (2)
Sources (3)
carlosal1015 commented on 2024-11-07 16:27 (UTC)
weipeng1999 commented on 2024-11-07 14:37 (UTC)
I found this issue https://develop.openfoam.com/Development/openfoam/-/issues/3234
weipeng1999 commented on 2024-11-07 14:16 (UTC) (edited on 2024-11-07 14:17 (UTC) by weipeng1999)
I found a reason why this package was broken recently, because the cgal was
Replaced boost::variant with std::variant and boost::optional with std::optional in the intersection functions.
see https://www.cgal.org/2024/10/23/CGAL-6.0/
to deal with this problem, I use the following temporary patch update_to_std_variant.patch
diff --git a/applications/utilities/surface/surfaceBooleanFeatures/surfaceBooleanFeatures.C b/applications/utilities/surface/surfaceBooleanFeatures/surfaceBooleanFeatures.C
index 9bd01d4e..a920b754 100644
--- a/applications/utilities/surface/surfaceBooleanFeatures/surfaceBooleanFeatures.C
+++ b/applications/utilities/surface/surfaceBooleanFeatures/surfaceBooleanFeatures.C
@@ -647,7 +647,7 @@ labelPair edgeIntersectionsCGAL
// Get intersection object
if
(
- const Point* ptPtr = boost::get<Point>(&(intersect->first))
+ const Point* ptPtr = std::get_if<Point>(&(intersect->first))
)
{
point pt
@@ -679,7 +679,7 @@ labelPair edgeIntersectionsCGAL
}
else if
(
- const Segment* sPtr = boost::get<Segment>(&(intersect->first))
+ const Segment* sPtr = std::get_if<Segment>(&(intersect->first))
)
{
#if defined (CGAL_VERSION_NR) && (CGAL_VERSION_NR < 1041400000)
update_to_std_optional.patch
diff --git a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C
index 9e9c3d34..00b22082 100644
--- a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C
+++ b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C
@@ -119,7 +119,7 @@ typedef std::vector<Triangle>::iterator Iterator;
typedef CGAL::AABB_triangle_primitive<K, Iterator> Primitive;
typedef CGAL::AABB_traits<K, Primitive> AABB_triangle_traits;
typedef CGAL::AABB_tree<AABB_triangle_traits> Tree;
-typedef boost::optional
+typedef std::optional
<
Tree::Intersection_and_primitive_id<Segment>::Type
> Segment_intersection;
and update all -std=c++14 to -std=c++17 it just works
Aurelius_Nero commented on 2024-10-30 08:31 (UTC)
Will this be enough @carlosal1015 ? Or do you need more ? https://pastebin.com/Zkwtv9mp
carlosal1015 commented on 2024-10-29 04:29 (UTC)
Thanks @Aurelius_Nero for report here.
The error message is truncated, maybe could you post the full in pastebin (hint: makepkg -s 2>&1 | tee -a error.log >/dev/null 2>&1
).
Aurelius_Nero commented on 2024-10-29 03:19 (UTC) (edited on 2024-10-29 03:20 (UTC) by Aurelius_Nero)
I get this error. During the make process.
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2406 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I../pdrFields/lnInclude -I/home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/src/finiteVolume/lnInclude -I/home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/src/fileFormats/lnInclude -I/home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/src/surfMesh/lnInclude -I/home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/src/meshTools/lnInclude -I/home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/src/mesh/blockMesh/lnInclude -iquote. -IlnInclude -I/home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/src/OpenFOAM/lnInclude -I/home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/build/linux64GccDPInt32Opt/applications/utilities/preProcessing/PDR/PDRsetFields/PDRsetFields.o -L/home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/platforms/linux64GccDPInt32Opt/lib \
-lfiniteVolume -lfileFormats -lsurfMesh -lmeshTools -lblockMesh -lpdrFields -lOpenFOAM -ldl \
-lm -o /home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/platforms/linux64GccDPInt32Opt/bin/PDRsetFields
make: *** [/home/agnelo/.cache/yay/openfoam-com/src/OpenFOAM-v2406/wmake/makefiles/apps:28: preProcessing] Error 2
carlosal1015 commented on 2024-09-24 13:24 (UTC)
Thanks for the hint @blacklightdragon
blacklightdragon commented on 2024-09-24 12:15 (UTC) (edited on 2024-09-24 12:16 (UTC) by blacklightdragon)
to document my problems: scotch is currently not working, scotch-git tho did work and currently I'm installing it after I installed scotch-git myself
carlosal1015 commented on 2024-01-21 17:33 (UTC)
I am offer as volunteer to (co)maintain the package.
carlosal1015 commented on 2023-06-02 16:25 (UTC)
With this change since commit OpenFOAM-v2012 (2023-03-09) it is working
Pinned Comments
blacklightdragon commented on 2024-09-24 12:15 (UTC) (edited on 2024-09-24 12:16 (UTC) by blacklightdragon)
to document my problems: scotch is currently not working, scotch-git tho did work and currently I'm installing it after I installed scotch-git myself