Skip to content

Commit 2ea46b2

Browse files
authored
Merge branch 'main' into dpstokes_open
2 parents 0d7cbb6 + c9c39c2 commit 2ea46b2

10 files changed

Lines changed: 19 additions & 331 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ jobs:
5454
make html
5555
shell: micromamba-shell {0}
5656

57-
- name: Compile examples
58-
run: |
59-
mkdir examples/cpp/build && cd examples/cpp/build
60-
cmake -DCMAKE_VERBOSE_MAKEFILE=yes -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX ..
61-
make -j3
62-
shell: micromamba-shell {0}
63-
6457
- name: Try to import libMobility
6558
run: |
6659
python -c "import libMobility"
@@ -73,7 +66,13 @@ jobs:
7366
#Only SelfMobility tests can run in the CPU
7467
pytest -sv -k SelfMobility tests/test*py
7568
shell: micromamba-shell {0}
76-
69+
70+
- name: Run examples
71+
run: |
72+
cd examples/
73+
python example.py
74+
shell: micromamba-shell {0}
75+
7776
- name: Install via pip
7877
run: |
7978
pip install -vv .

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ channels:
55
dependencies:
66
- python <3.13
77
- cmake >=3.24
8-
- cuda-version<=13.1
8+
- cuda-version <= 13.1
99
- gxx >9,<15
1010
- cuda-libraries-dev
1111
- cuda-nvcc
File renamed without changes.

examples/cpp/CMakeLists.txt

Lines changed: 0 additions & 41 deletions
This file was deleted.

examples/cpp/README.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/cpp/example.cu

Lines changed: 0 additions & 98 deletions
This file was deleted.

examples/cpp/example_gpu.cu

Lines changed: 0 additions & 112 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@
5656

5757
# Some solvers (e.g. SelfMobility) have no thermal drift and return all zeros.
5858
# In general, the thermal drift is non-zero and other solvers (e.g. DPStokes) return a non-zero value.
59-
linear_drift, _ = solver.thermalDrift()
59+
linear_drift, _ = solver.divM()
6060
print("Thermal drift:", linear_drift)
6161
solver.clean()

solvers/DPStokes/extra/uammd_interface.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ std::string getPrecision();
2323

2424
struct PyParameters {
2525
// The number of cells in each direction
26-
// If -1, they will be autocomputed from the tolerance if possible (DP cannot
27-
// do it, FCM can)
2826
int nx = -1;
2927
int ny = -1;
3028
int nz = -1;
3129
real viscosity;
3230
real Lx;
3331
real Ly;
3432
real zmin, zmax;
35-
// Tolerance will be ignored in DP mode, TP will use only tolerance and nxy/nz
33+
// Tolerance will be ignored in DP mode
3634
real tolerance = 1e-5;
3735
real delta = 1e-3; // RFD step size
3836
real w, w_d;

0 commit comments

Comments
 (0)