Skip to content

Commit c4a407d

Browse files
committed
Fix a bug concerning compilation and libtbb available versions. The desactivation of TTB routines do not impact the overall performances of pre-processing part.
1 parent b7bdb39 commit c4a407d

4 files changed

Lines changed: 21 additions & 22 deletions

File tree

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@ The solver is based on [GMSH](http://gmsh.info/) library and supports a wide ran
2828

2929
First, make sure the following libraries are installed. If you are running a linux distribution (ubuntu, debian, ...), an installation [script](https://github.com/skhelladi/DGFEM-CAA/blob/main/build.sh) is provided.
3030

31-
```
32-
Gmsh (v4.10.5)
33-
Eigen (v3.4.0)
34-
Lapack
35-
Blas
36-
OpenMP
37-
Libtbb
38-
VTK (v9.x)
39-
FFTW
40-
```
31+
- Gmsh (v4.10.5)
32+
- Eigen (v3.4.0)
33+
- Lapack
34+
- Blas
35+
- OpenMP
36+
- ~~Libtbb~~
37+
- VTK (v9.x)
38+
- FFTW
39+
4140

4241
### Installing
4342
```

build.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ else
5252
echo "Lapack/Blas installed.";
5353
fi
5454

55-
dpkg -s libtbb2 > /dev/null 2>&1;
56-
if [ $? -eq 0 ]; then
57-
echo "TBB found.";
58-
else
59-
echo "TBB not found, installing...";
60-
sudo apt-get -y install libtbb2;
61-
echo "TBB installed.";
62-
fi
55+
# dpkg -s libtbb2 > /dev/null 2>&1;
56+
# if [ $? -eq 0 ]; then
57+
# echo "TBB found.";
58+
# else
59+
# echo "TBB not found, installing...";
60+
# sudo apt-get -y install libtbb2;
61+
# echo "TBB installed.";
62+
# fi
6363

6464
dpkg -s libglu1-mesa > /dev/null 2>&1;
6565
if [ $? -eq 0 ]; then

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ SET(SRCS
1515
)
1616

1717
ADD_EXECUTABLE(dgalerkin ${SRCS})
18-
TARGET_LINK_LIBRARIES(dgalerkin ${GMSH_LIBRARIES} ${LAPACKBLAS_LIBRARIES} ${VTK_LIBRARIES} -fopenmp -ltbb -lpthread -lwave)
18+
TARGET_LINK_LIBRARIES(dgalerkin ${GMSH_LIBRARIES} ${LAPACKBLAS_LIBRARIES} ${VTK_LIBRARIES} -fopenmp -lpthread -lwave) #-ltbb
1919

2020
vtk_module_autoinit(
2121
TARGETS dgalerkin

src/Mesh.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Mesh::Mesh(Config config) : config(config)
253253
jacobian[i * m_elDim + j] = fJacobian(f, g, i, j);
254254
}
255255
}
256-
std::copy(std::execution::par, &fUGradBasisFct(g, n), &fUGradBasisFct(g, n) + m_elDim, &fGradBasisFct(f, g, n));
256+
std::copy(/*std::execution::par,*/ &fUGradBasisFct(g, n), &fUGradBasisFct(g, n) + m_elDim, &fGradBasisFct(f, g, n));
257257
eigen::solve(jacobian.data(), &fGradBasisFct(f, g, n), m_elDim);
258258
}
259259
}
@@ -983,7 +983,7 @@ void Mesh::getUniqueFaceNodeTags()
983983
m_elFNodeTagsOrdered = m_elFNodeTags;
984984
// #pragma omp parallel for
985985
for (int i = 0; i < m_elFNodeTagsOrdered.size(); i += m_fNumNodes)
986-
std::sort(std::execution::par, m_elFNodeTagsOrdered.begin() + i, m_elFNodeTagsOrdered.begin() + (i + m_fNumNodes));
986+
std::sort(/*std::execution::par,*/ m_elFNodeTagsOrdered.begin() + i, m_elFNodeTagsOrdered.begin() + (i + m_fNumNodes));
987987

988988
screen_display::write_string("get Unique Face Node Tags", RED);
989989

@@ -1065,7 +1065,7 @@ void Mesh::getUniqueFaceNodeTags()
10651065
// m_fNodeTagsOrdered.clear();
10661066
m_fNodeTagsOrdered = m_fNodeTags;
10671067
for (int i = 0; i < m_fNodeTagsOrdered.size(); i += m_fNumNodes)
1068-
std::sort(std::execution::par, m_fNodeTagsOrdered.begin() + i, m_fNodeTagsOrdered.begin() + (i + m_fNumNodes));
1068+
std::sort(/*std::execution::par,*/ m_fNodeTagsOrdered.begin() + i, m_fNodeTagsOrdered.begin() + (i + m_fNumNodes));
10691069

10701070
screen_display::write_if_false(tmp == m_fNumNodes, "Bad dimension error...");
10711071

0 commit comments

Comments
 (0)