Skip to content

Commit 1e74500

Browse files
committed
rename participant
1 parent 5cbcf4b commit 1e74500

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

free-flow-over-porous-media/compile-dumux-cases.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#!/usr/bin/env sh
22
set -e -u
33

4+
(
45
cd free-flow-dumux/build-cmake/appl
56
make free_flow_dumux
6-
cd ../../../porous-media-dumux/build-cmake/appl
7+
)
8+
9+
(
10+
cd porous-media-dumux/build-cmake/appl
711
make porous_media_dumux
8-
cd ../../../
12+
)
913

1014
# Move free-flow-dumux and porous-media-dumux executables to the participant folder level
1115
mv free-flow-dumux/build-cmake/appl/free_flow_dumux free-flow-dumux/

free-flow-over-porous-media/free-flow-dumux/solver-dumux/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ int main(int argc, char **argv)
353353
std::string preciceConfigFilename = "../precice-config.xml";
354354

355355
auto &couplingParticipant = Dumux::Precice::CouplingAdapter::getInstance();
356-
couplingParticipant.announceSolver("FreeFlow", preciceConfigFilename,
356+
couplingParticipant.announceSolver("Free-Flow", preciceConfigFilename,
357357
mpiHelper.rank(), mpiHelper.size());
358358

359359
const std::string meshName("Free-Flow-Mesh"); // mesh name

free-flow-over-porous-media/porous-media-dumux/solver-dumux/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int main(int argc, char **argv)
166166
std::string preciceConfigFilename = "../precice-config.xml";
167167

168168
auto &couplingParticipant = Dumux::Precice::CouplingAdapter::getInstance();
169-
couplingParticipant.announceSolver("Darcy", preciceConfigFilename,
169+
couplingParticipant.announceSolver("Porous-Media", preciceConfigFilename,
170170
mpiHelper.rank(), mpiHelper.size());
171171

172172
const std::string meshName("Porous-Media-Mesh");

free-flow-over-porous-media/precice-config.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<use-data name="Pressure" />
2222
</mesh>
2323

24-
<participant name="FreeFlow">
24+
<participant name="Free-Flow">
2525
<provide-mesh name="Free-Flow-Mesh" />
26-
<receive-mesh name="Porous-Media-Mesh" from="Darcy" />
26+
<receive-mesh name="Porous-Media-Mesh" from="Porous-Media" />
2727
<read-data name="Velocity" mesh="Free-Flow-Mesh" />
2828
<write-data name="Pressure" mesh="Free-Flow-Mesh" />
2929
<mapping:nearest-neighbor
@@ -38,30 +38,30 @@
3838
constraint="consistent" />
3939
</participant>
4040

41-
<participant name="Darcy">
41+
<participant name="Porous-Media">
4242
<provide-mesh name="Porous-Media-Mesh" />
4343
<read-data name="Pressure" mesh="Porous-Media-Mesh" />
4444
<write-data name="Velocity" mesh="Porous-Media-Mesh" />
4545
</participant>
4646

47-
<m2n:sockets acceptor="FreeFlow" connector="Darcy" exchange-directory=".." />
47+
<m2n:sockets acceptor="Free-Flow" connector="Porous-Media" exchange-directory=".." />
4848

4949
<coupling-scheme:parallel-implicit>
50-
<participants first="FreeFlow" second="Darcy" />
50+
<participants first="Free-Flow" second="Porous-Media" />
5151
<max-time value="1" />
5252
<time-window-size value="1" />
5353
<max-iterations value="100" />
5454
<exchange
5555
data="Pressure"
5656
mesh="Porous-Media-Mesh"
57-
from="FreeFlow"
58-
to="Darcy"
57+
from="Free-Flow"
58+
to="Porous-Media"
5959
initialize="false" />
6060
<exchange
6161
data="Velocity"
6262
mesh="Porous-Media-Mesh"
63-
from="Darcy"
64-
to="FreeFlow"
63+
from="Porous-Media"
64+
to="Free-Flow"
6565
initialize="true" />
6666
<relative-convergence-measure limit="1e-6" data="Pressure" mesh="Porous-Media-Mesh" />
6767
<relative-convergence-measure limit="1e-6" data="Velocity" mesh="Porous-Media-Mesh" />

0 commit comments

Comments
 (0)