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
Branches
Tags
1 merge request!689Add GNU style long command line arguments
......@@ -8,7 +8,7 @@ then
fi
# Run SWIFT
../swift -s -t 1 square.yml 2>&1 | tee output.log
../swift --hydro --threads=1 square.yml 2>&1 | tee output.log
# Plot the solution
python plotSolution.py 5
......@@ -13,7 +13,7 @@ then
fi
# Run SWIFT
../swift -g -b -s -S -t 4 SN_feedback.yml 2>&1 | tee output.log
../swift --external-gravity --feedback --hydro --stars --threads=4 SN_feedback.yml 2>&1 | tee output.log
# Plot the solution
# TODO
......@@ -7,4 +7,4 @@ then
python makeIC.py 100
fi
../swift -s -t 16 uniformPlane.yml 2>&1 | tee output.log
../swift --hydro --threads=16 uniformPlane.yml 2>&1 | tee output.log
......@@ -7,4 +7,4 @@ then
python makeIC.py 100
fi
../swift -s -t 16 uniformBox.yml 2>&1 | tee output.log
../swift --hydro --threads=16 uniformBox.yml 2>&1 | tee output.log
......@@ -13,7 +13,7 @@ then
fi
# Run SWIFT
../swift -s -t 4 vacuum.yml 2>&1 | tee output.log
../swift --hydro --threads=4 vacuum.yml 2>&1 | tee output.log
# Get the 1D high resolution reference result if not present.
if [ ! -e vacuumSpherical2D_exact.txt ]
......
......@@ -13,7 +13,7 @@ then
fi
# Run SWIFT
../swift -s -t 16 vacuum.yml 2>&1 | tee output.log
../swift --hydro --threads=16 vacuum.yml 2>&1 | tee output.log
# Get the reference solution if it is not present.
if [ ! -e vacuumSpherical3D_exact.txt ]
......
......@@ -8,7 +8,7 @@ then
fi
# Run SWIFT
../swift -s -t 1 vacuum.yml 2>&1 | tee output.log
../swift --hydro --threads=1 vacuum.yml 2>&1 | tee output.log
# Plot the result
python plotSolution.py 1
......@@ -13,7 +13,7 @@ then
fi
# Run SWIFT
../swift -s -t 4 vacuum.yml 2>&1 | tee output.log
../swift --hydro --threads=4 vacuum.yml 2>&1 | tee output.log
# Plot the result
python plotSolution.py 1
......@@ -13,7 +13,7 @@ then
fi
# Run SWIFT
../swift -s -t 16 vacuum.yml 2>&1 | tee output.log
../swift --hydro --threads=16 vacuum.yml 2>&1 | tee output.log
# Plot the result
python plotSolution.py 1
......@@ -8,7 +8,7 @@ then
fi
# Run SWIFT
../swift -s -c -G -t 8 zeldovichPancake.yml 2>&1 | tee output.log
../swift ---hydro --cosmology --self-gravity --threads=8 zeldovichPancake.yml 2>&1 | tee output.log
# Plot the result
for i in {0..119}
......
......@@ -7,5 +7,5 @@ then
./getIC.sh
fi
../swift -b -c -G -s -S -t 8 zoom_in.yml 2>&1 | tee output.log
../swift --feedback --cosmology --self-gravity --hydro --stars --threads=8 zoom_in.yml 2>&1 | tee output.log
......@@ -193,14 +193,14 @@ int main(int argc, char *argv[]) {
"Run with self-gravity.", NULL, 0, 0),
OPT_BOOLEAN('M', "multipole-reconstruction", &with_mpole_reconstruction,
"Reconstruct the multipoles every time-step.", NULL, 0, 0),
OPT_BOOLEAN('s', "hydrodynamics", &with_hydro, "Run with hydrodynamics.",
OPT_BOOLEAN('s', "hydro", &with_hydro, "Run with hydrodynamics.",
NULL, 0, 0),
OPT_BOOLEAN('S', "stars", &with_stars, "Run with stars", NULL, 0, 0),
OPT_BOOLEAN('x', "velociraptor", &with_structure_finding,
"Run with structure finding", NULL, 0, 0),
OPT_GROUP(" Control options:"),
OPT_BOOLEAN('a', "affinity", &with_aff,
OPT_BOOLEAN('a', "pin", &with_aff,
"Pin runners using processor affinity.", NULL, 0, 0),
OPT_BOOLEAN('d', "dry-run", &dry_run,
"Dry run. Read the parameter file, allocates memory but does "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment