This commit is contained in:
crivelphilip committed 2023-01-20 10:29:35 +01:00
1 parent 6fc22b0da5
commit 766efce688
475 files changed
+72727 -1

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
rm -r log.*
rm -r *.obj
# Get application directory
application=`getApplication`
echo $application
## Get the number of processors to run on from system/decomposeParDict
nProc=$(getNumberOfProcessors)
echo "the number of processors to run on from system/decomposeParDict: $nProc"
# Create mesh
runApplication fluent3DMeshToFoam MOSAiC_seaice.msh
# Re-assign the patches
runApplication createPatch -overwrite
# Distribute domain among processors
runApplication decomposePar
# Run snow transport model
runApplication mpirun -np $nProc $application -parallel