Skip to content

Commit c76d738

Browse files
authored
fix run.sh: explicit density list and fix output path (#74)
Two issues in the original run.sh: 1. Formatting issue that broke the while loop and prevented reaching density 1.2 exactly → replaced with an explicit density lis. 2. Wrong output path: trajectories/ → chains/
1 parent 471ad6d commit c76d738

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • examples/ortho-terphenyl/1-create-config-right-density

examples/ortho-terphenyl/1-create-config-right-density/run.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
uv run --script create-initial-config.py
44

5-
density=0.2
5+
densities=(0.2 0.22 0.24 0.27 0.30 0.33 0.36 0.40 0.44 0.48 0.53 0.58 0.64 0.70 0.77 0.85 0.93 1.02 1.12 1.2)
66

7-
while (( $(echo "$density < 1.2" | bc -l ) ))
7+
for density in "${densities[@]}"
88
do
99
echo "Density" $density
10-
1110
sed "s/DENSITY/$density/" params-template.toml > params.toml
1211
particlesmc params.toml
13-
cp trajectories/1/lastframe.xyz inputframe.xyz
14-
15-
density=$(echo "$density" | awk '{printf "%f", $1 * 1.1}')
12+
cp chains/1/lastframe.xyz inputframe.xyz
13+
echo "Done density: $density"
1614
done
15+
16+
echo "Final density: $density"

0 commit comments

Comments
 (0)