Skip to content

Commit 2c4987a

Browse files
MichelMichel
authored andcommitted
Add Allclean script and remove commented script
1 parent 82fd8ed commit 2c4987a

File tree

5 files changed

+44
-19
lines changed

5 files changed

+44
-19
lines changed

cht/adapter.comm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ while adapter.isCouplingOngoing():
137137
filename = "REPE_OUT/output-" + str(k) + ".rmed"
138138
DEFI_FICHIER(FICHIER=filename, UNITE=80+k, TYPE='BINARY')
139139
IMPR_RESU(FORMAT='MED', UNITE=80+k, RESU=_F(RESULTAT=TEMP))
140-
#call(["mv", filename, settings["base-path"] + "/" + participant["directory"]])
141140
DEFI_FICHIER(ACTION='LIBERER', UNITE=80+k)
142141

143142
# Use current solution as initial condition for the next time step
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
echo "Cleaning..."
4+
5+
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
6+
7+
# Participant 1: Solid
8+
Participant1="solid"
9+
rm -fv ${Participant1}/solid.mess
10+
rm -fv ${Participant1}/solid.resu
11+
rm -fv ${Participant1}/solid.rmed
12+
13+
# Participant 2: Fluid
14+
Participant2="fluid"
15+
cd ${Participant2}
16+
cleanCase
17+
touch Fluid.foam
18+
cd ..
19+
# Remove the log files
20+
rm -fv ${Participant2}_blockMesh.log
21+
rm -fv ${Participant2}_checkMesh.log
22+
rm -fv ${Participant2}_decomposePar.log
23+
rm -fv ${Participant2}.log
24+
rm -fv ${Participant2}_reconstructPar.log
25+
26+
# Remove the preCICE-related log files
27+
echo "Deleting the preCICE log files..."
28+
rm -fv \
29+
precice-*.log \
30+
precice-*-events.json
31+
32+
# Output files for preCICE versions before 1.2:
33+
rm -fv \
34+
iterations-${Participant1}.txt iterations-${Participant2}.txt \
35+
convergence-${Participant1}.txt convergence-${Participant2}.txt \
36+
Events-${Participant1}.log Events-${Participant2}.log \
37+
EventTimings-${Participant1}.log EventTimings-${Participant2}.log
38+
39+
# Remove the preCICE address files
40+
rm -rfv precice-run
41+
rm -fv .*.address
42+
43+
echo "Cleaning complete!"

tutorials/buoyantSimpleFoam-aster/Allclean.sh

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

tutorials/buoyantSimpleFoam-aster/config.comm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
settings = \
2-
{'base-path': '/home/michel/Git/code_aster-adapter/tutorials/buoyantSimpleFoam-aster',
2+
{'base-path': 'path/to/code_aster-adapter/tutorials/buoyantSimpleFoam-aster',
33
'couplings': [['Solid-Interface', 'Fluid-Interface']],
44
'participants': {'Fluid': {'directory': 'fluid',
55
'domain-decomposed': False,

tutorials/buoyantSimpleFoam-aster/fluid/Allclean

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

0 commit comments

Comments
 (0)