-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ExaCA support to all tutorials (#39)
* Added ExaCA support to all tutorials with optional Allrun -withExaCA flag Co-authored-by: Matt Rolchigo <[email protected]> * cleaned up tutorials and added auto-enabled fucntion option with -withExaCA Allrun flag * Update Allrun to remove exaca openmp setting --------- Co-authored-by: Matt Rolchigo <[email protected]>
- Loading branch information
1 parent
f484321
commit b0fa890
Showing
45 changed files
with
392 additions
and
115 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
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
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,33 @@ | ||
#!/bin/bash | ||
|
||
# Function to attempt removing .nfs files, even if in use | ||
remove_nfs_files() { | ||
find "$1" -type f -name '.nfs*' | while read -r nfs_file; do | ||
echo "Removing: $nfs_file" | ||
|
||
# Find the process holding the file and kill it | ||
lsof_output=$(lsof "$nfs_file" 2>/dev/null) | ||
if [[ -n "$lsof_output" ]]; then | ||
pid=$(echo "$lsof_output" | awk 'NR>1 {print $2}' | sort -u) | ||
if [[ -n "$pid" ]]; then | ||
echo "Killing process $pid holding file $nfs_file" | ||
kill -9 $pid | ||
fi | ||
fi | ||
|
||
# Attempt to remove the file again | ||
rm -f "$nfs_file" | ||
done | ||
} | ||
|
||
# Navigate through every directory from the current one | ||
echo "Starting search and removal of .nfs files from: $(pwd)" | ||
remove_nfs_files "$(pwd)" | ||
|
||
# Traverse through all subdirectories | ||
find . -type d | while read -r dir; do | ||
remove_nfs_files "$dir" | ||
done | ||
|
||
echo "Finished removing .nfs files." | ||
|
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
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,35 @@ | ||
{ | ||
"SimulationType": "FromFile", | ||
"MaterialFileName": "Inconel625.json", | ||
"GrainOrientationFile": "GrainOrientationVectors.csv", | ||
"RandomSeed": 0, | ||
"Domain": { | ||
"CellSize": 2.5, | ||
"TimeStep": 0.125, | ||
"NumberOfLayers": 1, | ||
"LayerOffset": 0 | ||
}, | ||
"Nucleation": { | ||
"Density": 100, | ||
"MeanUndercooling": 5, | ||
"StDev": 0.5 | ||
}, | ||
"TemperatureData": { | ||
"LayerwiseTempRead": false, | ||
"TemperatureFiles": ["./ExaCA/time-temperature.csv"] | ||
}, | ||
"Substrate": { | ||
"MeanBaseplateGrainSize": 8.3, | ||
"MeanPowderGrainSize": 2.5 | ||
}, | ||
"Printing": { | ||
"PathToOutput": "./ExaCA/", | ||
"OutputFile": "Output", | ||
"PrintBinary": false, | ||
"PrintExaConstitSize": 0, | ||
"Interlayer": { | ||
"Fields": ["GrainID", "LayerID", "GrainMisorientation", "UndercoolingCurrent", "SolidificationEventCounter"], | ||
"Layers": [0, 1] | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.