Skip to content

Commit 916dbc8

Browse files
authored
Update of minor things (#433)
* Updating README * Removing numbers package * Switching off apt-spy2 * Ignore coverage reduction
1 parent 5eade8b commit 916dbc8

File tree

8 files changed

+31
-19
lines changed

8 files changed

+31
-19
lines changed

.codecov.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
ignore:
22
- "**/pugi*" # ignore pugixml
3+
coverage:
4+
status:
5+
project:
6+
default:
7+
threshold: 100%

.github/actions/install/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ inputs:
5454
default: false
5555
bestapt:
5656
description: select the best APT before installing stuff
57-
default: true
57+
default: false
5858
runs:
5959
using: 'composite'
6060
steps:

.github/workflows/cpu_test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: TESTS_GCC
1+
name: CPU
22

33
on: [ push, pull_request ]
44

.github/workflows/gpu_comp.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GPU
1+
name: CUDA
22

33
on: [ push, pull_request ]
44

README.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,14 @@ Nevertheless, TCLB can be compiled on Windows using the [Windows Subsystem for L
5252
### Dependencies
5353

5454
For the code to compile and work you'll need a few things:
55-
- [R](https://www.r-project.org/) and some R packages ([optparse](https://cran.r-project.org/package=optparse), [numbers](https://cran.r-project.org/package=numbers), [rtemplate](https://github.com/llaniewski/rtemplate), [gvector](https://github.com/llaniewski/gvector), [polyAlgebra](https://github.com/llaniewski/polyAlgebra))
55+
- [R](https://www.r-project.org/) and some R packages ([optparse](https://cran.r-project.org/package=optparse), [rtemplate](https://github.com/llaniewski/rtemplate), [gvector](https://github.com/llaniewski/gvector), [polyAlgebra](https://github.com/llaniewski/polyAlgebra))
5656
- [MPI](https://en.wikipedia.org/wiki/Message_Passing_Interface). We recommend [OpenMPI](http://www.open-mpi.org/)
57-
- To use your GPU, you'll need [nVidia CUDA](https://developer.nvidia.com/cuda-zone)
57+
- To use your GPU, you'll need [nVidia CUDA](https://developer.nvidia.com/cuda-zone) or [AMD HIP/ROCm](https://www.amd.com/en/graphics/servers-solutions-rocm)
58+
59+
Optionally, you may need:
5860
- To integrate TCLB with R, you'll need R package [rinside](https://github.com/eddelbuettel/rinside)
5961
- To integrate TCLB with Python, you'll need [python](https://www.python.org/), [numpy](http://www.numpy.org/) with libraries and headers
60-
- To develop a model using Python, you'll need [python](https://www.python.org/), [sympy](http://www.sympy.org/) and R package: [rPython](https://cran.r-project.org/package=rPython)
62+
- To develop a model using Python, you'll need [python](https://www.python.org/), [sympy](http://www.sympy.org/) and R package [reticulate](https://cran.r-project.org/package=reticulate)
6163

6264
You can install many of these with the provided `tools/install.sh` script (note that this requires sudo):
6365
```bash
@@ -112,17 +114,19 @@ TCLB began development in 2012 with the aim at providing a framework for efficie
112114

113115
Author: [Łukasz Łaniewski-Wołłk](https://github.com/llaniewski)
114116

115-
Co-authors:
117+
Major contributors:
116118
* [Michał Dzikowski](https://github.com/mdzik)
119+
* [Travis Mitchell](https://github.com/TravisMitchell)
117120

118121
Contributors:
119-
* [Wojtek Regulski](https://github.com/wojtasMEiL)
120-
* [Zbigniew Gawłowicz](https://github.com/zgawlowicz)
122+
* [Nathan Di Vaira](https://github.com/ndivaira)
123+
* [Grzegorz Gruszczyński](https://github.com/ggruszczynski)
124+
* [Bryce Hill](https://github.com/bhill23)
125+
* [Jon McCullough](https://github.com/JonMcCullough)
126+
* [Paweł Obrępalski](https://github.com/PabloOb)
127+
* [Wojciech Regulski](https://github.com/wojtasMEiL)
121128
* [Mariusz Rutkowski](https://github.com/mrutkowski-aero)
122129
* [Dmytro Sashko](https://github.com/shkodm)
123-
* [Travis Mitchell](https://github.com/TravisMitchell)
124-
* [Paweł Obrępalski](https://github.com/PabloOb)
125-
* [Grzegorz Gruszczyński](https://github.com/ggruszczynski)
126130

127131
Developed at:
128132
- [Zakład Aerodynamiki](https://meil.pw.edu.pl/ZA/) at [Politechnika Warszawska (Warsaw University of Technology)](http://pw.edu.pl/)

src/configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ fi
686686

687687
AC_MSG_CHECKING([R package: optparse])
688688
AS_IF([$R_BIN --vanilla --slave -e 'if (!require("optparse")) stop("No");' >/dev/null 2>&1],AC_MSG_RESULT([yes]),AC_MSG_ERROR([no]))
689-
AC_MSG_CHECKING([R package: numbers])
690-
AS_IF([$R_BIN --vanilla --slave -e 'if (!require("numbers")) stop("No");' >/dev/null 2>&1],AC_MSG_RESULT([yes]),AC_MSG_ERROR([no]))
689+
#AC_MSG_CHECKING([R package: numbers])
690+
#AS_IF([$R_BIN --vanilla --slave -e 'if (!require("numbers")) stop("No");' >/dev/null 2>&1],AC_MSG_RESULT([yes]),AC_MSG_ERROR([no]))
691691
AC_MSG_CHECKING([R package: rtemplate])
692692
AS_IF([$R_BIN --vanilla --slave -e 'if (!require("rtemplate")) stop("No");' >/dev/null 2>&1],AC_MSG_RESULT([yes]),AC_MSG_ERROR([no]))
693693
AC_MSG_CHECKING([R package: gvector])

src/lib/feq.R

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#library(polyAlgebra)
22

3-
gcd <- function(a,b) ifelse (b==0, a, gcd(b, a %% b))
4-
library(numbers)
3+
gcd = function(a,b) ifelse (b==0, a, gcd(b, a %% b))
4+
lcm = function(a,b) (a/gcd(a,b))*b
5+
lcm_vec = function(x) if (length(x) == 1) x else lcm(x[1],lcm_vec(x[-1]))
6+
7+
# library(numbers)
58

69
MRT_polyMatrix = function(U) {
710
if (any(U > 1)) stop("Too high velocities in calculate_feq")
@@ -25,7 +28,7 @@ MRT_integerOrtogonal = function(M) {
2528
g = gcd(a,b)
2629
a = a/g
2730
b = b/g
28-
if (length(b) == 1) l = b else l=mLCM(b);
31+
if (length(b) == 1) l = b else l = lcm_vec(b);
2932
M[,i] = M[,i]*l - M[,1:(i-1),drop=F] %*% (l*a/b)
3033
}
3134
M

tools/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ do
329329
then
330330
install_rpackage_github cran/getopt
331331
install_rpackage_github cran/optparse
332-
install_rpackage_github cran/numbers
332+
# install_rpackage_github cran/numbers
333333
install_rpackage_github cran/yaml
334334
else
335335
install_rpackage optparse
336-
install_rpackage numbers
336+
# install_rpackage numbers
337337
install_rpackage yaml
338338
fi
339339
install_rpackage_github llaniewski/rtemplate

0 commit comments

Comments
 (0)