Skip to content

Commit 002ed8a

Browse files
Address review comments for G+Smo tutorial
1 parent 598712e commit 002ed8a

File tree

6 files changed

+23
-69
lines changed

6 files changed

+23
-69
lines changed

partitioned-heat-conduction/README.md

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -75,35 +75,23 @@ If you want to use Nutils or OpenFOAM, use `cd dirichlet/neumann-nutils`, respec
7575
mpirun -n <N_PROC> heat.py -d
7676
```
7777

78-
The G+Smo-based version of the tutorial offers IsoGeometric Analysis discretization method. To run the example you need to follow the following steps:
78+
For running G+Smo, follow the [G+Smo adapter installation instructions](https://precice.org/adapter-gismo.html) to build the `partitioned-heat-conduction` example. Then link the compiled executable to the `dirichlet-gismo` and `neumann-gismo` folders:
7979

80-
- Download G+Smo and Create a Build Folder
81-
```
82-
git clone [email protected]:gismo/gismo.git
83-
cd gismo
84-
mkdir build
85-
cd build
86-
```
87-
- Configure G+Smo
88-
```
89-
cmake .. -DGISMO_OPTIONAL="<other submodules>;gsPreCICE"
90-
```
91-
- Build the Example
92-
```
93-
make partitioned-heat-conduction -j <number of threads to use>
94-
```
95-
- Link the compiled executable to the gismo-executable folder within the tutorial directory
96-
```
97-
cd <Your preCICE tutorial folder>/partitioned-heat-conduction/gismo-executable
98-
ln -sf <You G+Smo build folder>/bin/partitioned-heat-conduction ./gismo_executable`
99-
```
100-
- Open two terminals and run
101-
```
102-
cd dirichlet-gismo
103-
./run.sh
80+
```bash
81+
cd <tutorial-directory>/partitioned-heat-conduction/dirichlet-gismo
82+
ln -sf <gismo-build-directory>/bin/partitioned-heat-conduction ./gismo-executable
83+
cd ../neumann-gismo
84+
ln -sf <gismo-build-directory>/bin/partitioned-heat-conduction ./gismo-executable
10485
```
10586

87+
Then open two terminals and run:
88+
89+
```bash
90+
cd dirichlet-gismo
91+
./run.sh
10692
```
93+
94+
```bash
10795
cd neumann-gismo
10896
./run.sh
10997
```
Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env sh
2+
set -e -u
23

3-
# Cleaning script for partitioned-heat-conduction directory
4-
5-
echo "Cleaning unnecessary files..."
6-
7-
# Remove precice-profiling directory
8-
if [ -d "precice-profiling" ]; then
9-
rm -rf precice-profiling
10-
echo "Deleted 'precice-profiling' folder."
11-
fi
12-
13-
# Remove precice-run directory
14-
if [ -d "../precice-run" ]; then
15-
rm -rf ../precice-run
16-
echo "Deleted 'precice-run' folder."
17-
fi
18-
19-
20-
# Remove files ending with .pvd, .vts, .vtp, .log, and .txt
21-
for ext in pvd vts vtp log txt; do
22-
find . -type f -name "*.$ext" -exec rm -f {} \;
23-
echo "Deleted all *.$ext files."
24-
done
25-
26-
echo "Cleaning completed!"
4+
. ../../tools/cleaning-tools.sh
275

6+
clean_gismo .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
set -e -u
33

4-
../gismo-executable/gismo-executable -c ../precice-config.xml --plot -s 0
4+
./gismo-executable -c ../precice-config.xml --plot -s 0
Binary file not shown.
Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env sh
2+
set -e -u
23

3-
# Cleaning script for partitioned-heat-conduction directory
4+
. ../../tools/cleaning-tools.sh
45

5-
echo "Cleaning unnecessary files..."
6-
7-
# Remove precice-profiling directory
8-
if [ -d "precice-profiling" ]; then
9-
rm -rf precice-profiling
10-
echo "Deleted 'precice-profiling' folder."
11-
fi
12-
13-
# Remove files ending with .pvd, .vts, .vtp, .log, and .txt
14-
for ext in pvd vts vtp log txt; do
15-
find . -type f -name "*.$ext" -exec rm -f {} \;
16-
echo "Deleted all *.$ext files."
17-
done
18-
19-
echo "Cleaning completed!"
6+
clean_gismo .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
set -e -u
33

4-
../gismo-executable/gismo-executable -c ../precice-config.xml --plot -s 1
4+
./gismo-executable -c ../precice-config.xml --plot -s 1

0 commit comments

Comments
 (0)