mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
24 lines
507 B
Bash
24 lines
507 B
Bash
#!/bin/bash
|
|
|
|
#===================================================================#
|
|
# sets variables for CFDEM utility scripts
|
|
# Tim MJ Nijssen - September 2021
|
|
#===================================================================#
|
|
|
|
#- casepath
|
|
|
|
currentPath=$(pwd)
|
|
|
|
if [ -z "$1" ]; then
|
|
#- parent directory if no other path is specified
|
|
casePath="$(dirname "$scriptPath")"
|
|
else
|
|
#- read input
|
|
casePath="$(dirname "$(readlink -f $1)/.")"
|
|
fi
|
|
|
|
#- other paths
|
|
logpath=$casePath/log
|
|
mkdir $logpath
|
|
|