Skip to content

Commit ed04078

Browse files
committed
minor changes b3e3
1 parent 255b1f3 commit ed04078

23 files changed

Lines changed: 6308 additions & 7406 deletions

c_programs/block3/3-ParallelTempering/Run/plot.ipynb

Lines changed: 181 additions & 21 deletions
Large diffs are not rendered by default.

c_programs/block3/3-ParallelTempering/Run/run_alt_ex3

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,31 @@ mkdir -p swp_diff_est
1313

1414
for ntemp in 1 2 3 4; do
1515
i=1
16+
# check if ntemp is 1, 2, 3 or 4
17+
if [ $ntemp -eq 1 ];
18+
then
19+
temps="0.001"
20+
elif [ $ntemp -eq 2 ];
21+
then
22+
temps="0.001 0.05"
23+
elif [ $ntemp -eq 3 ];
24+
then
25+
temps="0.001 0.015 0.05"
26+
elif [ $ntemp -eq 4 ];
27+
then
28+
temps="0.001 0.003 0.015 0.05"
29+
fi
1630
while [ $i -le 1 ]; do
1731
echo "Running for Nsystems $ntemp, run $i"
1832
cat > input <<EOF
1933
Rho Ppt Nstep Ntemp
2034
$rho $ppt $nstep $ntemp
2135
Temperatures
22-
0.001 0.003 0.015 0.05
36+
$temps
2337
EOF
2438
../Source/pt >> "output_${ntemp}_${i}.txt"
2539
xpos=$(grep -i -A1 "Average X" "output_${ntemp}_${i}.txt" | grep -Eo "[0-9]+\.[0-9]+")
26-
mv "output_${ntemp}_${i}.txt" diff_est/
40+
mv "output_${ntemp}_${i}.txt" swp_diff_est/
2741
mv energy_distribution.dat "swp_diff_est/energy_distribution_${ntemp}_${i}.dat"
2842
mv input "swp_diff_est/input_${ntemp}_${i}"
2943
mv position_distribution.dat "swp_diff_est/position_distribution_${ntemp}_${i}.dat"

solutions/block3/3-ParallelTempering/Run/diff_est/output_10_1.txt

Whitespace-only changes.

solutions/block3/3-ParallelTempering/Run/diff_est/output_12_1.txt

Whitespace-only changes.

solutions/block3/3-ParallelTempering/Run/diff_est/output_14_1.txt

Whitespace-only changes.

solutions/block3/3-ParallelTempering/Run/diff_est/output_5_1.txt

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

solutions/block3/3-ParallelTempering/Run/diff_est/output_6_1.txt

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

0 commit comments

Comments
 (0)