Skip to content
Snippets Groups Projects
Commit 7d87ceb8 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Update all example scripts with long options

parent 83bedfc4
No related branches found
No related tags found
1 merge request!689Add GNU style long command line arguments
Showing
with 20 additions and 20 deletions
...@@ -13,7 +13,7 @@ then ...@@ -13,7 +13,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -s -t 2 noh.yml 2>&1 | tee output.log ../swift --hydro --threads=2 noh.yml 2>&1 | tee output.log
# Plot the solution # Plot the solution
python plotSolution.py 12 python plotSolution.py 12
...@@ -7,4 +7,4 @@ then ...@@ -7,4 +7,4 @@ then
python makeIC.py 50 python makeIC.py 50
fi fi
../swift -s -t 16 perturbedBox.yml 2>&1 | tee output.log ../swift --hydro --threads=16 perturbedBox.yml 2>&1 | tee output.log
#!/bin/bash #!/bin/bash
# Run SWIFT # Run SWIFT
../swift -c -s -G -t 28 santa_barbara.yml ../swift --cosmology --hydro --self-gravity --threads=28 santa_barbara.yml
#!/bin/bash #!/bin/bash
# Run SWIFT # Run SWIFT
../swift -c -s -G -t 28 santa_barbara.yml ../swift --cosmology --hydro --self-gravity --threads=28 santa_barbara.yml
...@@ -8,7 +8,7 @@ then ...@@ -8,7 +8,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -s -t 1 sedov.yml 2>&1 | tee output.log ../swift --hydro --threads=1 sedov.yml 2>&1 | tee output.log
# Plot the solution # Plot the solution
python plotSolution.py 5 python plotSolution.py 5
...@@ -13,7 +13,7 @@ then ...@@ -13,7 +13,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -s -t 1 sedov.yml 2>&1 | tee output.log ../swift --hydro --threads=1 sedov.yml 2>&1 | tee output.log
# Plot the solution # Plot the solution
python plotSolution.py 5 python plotSolution.py 5
...@@ -13,7 +13,7 @@ then ...@@ -13,7 +13,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -s -t 4 sedov.yml 2>&1 | tee output.log ../swift --hydro --threads=4 sedov.yml 2>&1 | tee output.log
# Plot the solution # Plot the solution
python plotSolution.py 5 python plotSolution.py 5
...@@ -6,7 +6,7 @@ then ...@@ -6,7 +6,7 @@ then
python makeIC.py python makeIC.py
fi fi
../swift -g -s -t 2 sineWavePotential.yml 2>&1 | tee output.log ../swift --external-gravity --hydro --threads=2 sineWavePotential.yml 2>&1 | tee output.log
for f in sineWavePotential_*.hdf5 for f in sineWavePotential_*.hdf5
do do
......
...@@ -6,7 +6,7 @@ then ...@@ -6,7 +6,7 @@ then
python makeIC.py python makeIC.py
fi fi
../swift -g -s -t 2 sineWavePotential.yml 2>&1 | tee output.log ../swift --external-gravity --hydro --threads=2 sineWavePotential.yml 2>&1 | tee output.log
for f in sineWavePotential_*.hdf5 for f in sineWavePotential_*.hdf5
do do
......
...@@ -6,7 +6,7 @@ then ...@@ -6,7 +6,7 @@ then
python makeIC.py python makeIC.py
fi fi
../swift -g -s -t 2 sineWavePotential.yml 2>&1 | tee output.log ../swift --external-gravity --hydro --threads=2 sineWavePotential.yml 2>&1 | tee output.log
for f in sineWavePotential_*.hdf5 for f in sineWavePotential_*.hdf5
do do
......
...@@ -8,7 +8,7 @@ then ...@@ -8,7 +8,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -c -s -G -t 8 small_cosmo_volume.yml 2>&1 | tee output.log ../swift --cosmology --hydro --self-gravity --threads=8 small_cosmo_volume.yml 2>&1 | tee output.log
# Plot the temperature evolution # Plot the temperature evolution
python plotTempEvolution.py python plotTempEvolution.py
...@@ -8,5 +8,5 @@ then ...@@ -8,5 +8,5 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -c -G -t 8 small_cosmo_volume_dm.yml 2>&1 | tee output.log ../swift --cosmology --self-gravity --threads=8 small_cosmo_volume_dm.yml 2>&1 | tee output.log
...@@ -8,7 +8,7 @@ then ...@@ -8,7 +8,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -c -s -G -x -t 8 small_cosmo_volume.yml 2>&1 | tee output.log ../swift --cosmology --hydro --self-gravity --velociraptor --threads=8 small_cosmo_volume.yml 2>&1 | tee output.log
echo "Make a plot of the HMF" echo "Make a plot of the HMF"
if command -v python3 &>/dev/null; then if command -v python3 &>/dev/null; then
......
...@@ -8,7 +8,7 @@ then ...@@ -8,7 +8,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -c -s -G -C -t 8 small_cosmo_volume.yml 2>&1 | tee output.log ../swift --cosmology --hydro --self-gravity --cooling --threads=8 small_cosmo_volume.yml 2>&1 | tee output.log
# Plot the temperature evolution # Plot the temperature evolution
python plotTempEvolution.py python plotTempEvolution.py
...@@ -13,7 +13,7 @@ then ...@@ -13,7 +13,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -n 1 -s -t 4 smoothed_metallicity.yml 2>&1 | tee output.log ../swift --steps=1 --hydro --threads=4 smoothed_metallicity.yml 2>&1 | tee output.log
# Plot the solution # Plot the solution
python plotSolution.py 1 python plotSolution.py 1
...@@ -13,7 +13,7 @@ then ...@@ -13,7 +13,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -s -t 1 sodShock.yml 2>&1 | tee output.log ../swift --hydro --threads=1 sodShock.yml 2>&1 | tee output.log
# Get the high resolution 1D reference solution if not present. # Get the high resolution 1D reference solution if not present.
if [ ! -e sodShockSpherical2D_exact.txt ] if [ ! -e sodShockSpherical2D_exact.txt ]
......
...@@ -13,7 +13,7 @@ then ...@@ -13,7 +13,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -s -t 4 sodShock.yml 2>&1 | tee output.log ../swift --hydro --threads=4 sodShock.yml 2>&1 | tee output.log
# Get the high resolution 1D reference solution if not present. # Get the high resolution 1D reference solution if not present.
if [ ! -e sodShockSpherical3D_exact.txt ] if [ ! -e sodShockSpherical3D_exact.txt ]
......
...@@ -8,7 +8,7 @@ then ...@@ -8,7 +8,7 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -s -t 1 sodShock.yml 2>&1 | tee output.log ../swift --hydro --threads=1 sodShock.yml 2>&1 | tee output.log
# Plot the result # Plot the result
python plotSolution.py 1 python plotSolution.py 1
...@@ -13,6 +13,6 @@ then ...@@ -13,6 +13,6 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -s -t 1 sodShock.yml 2>&1 | tee output.log ../swift --hydro --threads=1 sodShock.yml 2>&1 | tee output.log
python plotSolution.py 1 python plotSolution.py 1
...@@ -13,6 +13,6 @@ then ...@@ -13,6 +13,6 @@ then
fi fi
# Run SWIFT # Run SWIFT
../swift -s -t 4 sodShock.yml 2>&1 | tee output.log ../swift --hydro --threads=4 sodShock.yml 2>&1 | tee output.log
python plotSolution.py 1 python plotSolution.py 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment