-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Topo opt paramerization implementation and script
- Loading branch information
1 parent
29ab45e
commit 91a5fbe
Showing
2 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Define arrays of values for each variable | ||
ny_values=(64) | ||
selected_case_values=(0 1) | ||
bf_values=(5.0) | ||
fact_values=(0.2) | ||
|
||
# Loop through each combination of values and run the program | ||
for ny in "${ny_values[@]}"; do | ||
for selected_case in "${selected_case_values[@]}"; do | ||
for bf in "${bf_values[@]}"; do | ||
for fact in "${fact_values[@]}"; do | ||
# Build the command | ||
command="./2d_analysis ny=${ny} selected_case=${selected_case} bf=${bf} fact=${fact}" | ||
echo "Running command: $command" | ||
# Run the command | ||
$command | ||
# Check if the command was successful | ||
if [ $? -ne 0 ]; then | ||
echo "Command failed: $command" | ||
# Uncomment the next line if you want the script to exit on failure | ||
# exit 1 | ||
fi | ||
done | ||
done | ||
done | ||
done | ||
|
||
echo "All combinations have been run." |