mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
26 lines
816 B
Bash
26 lines
816 B
Bash
#!/bin/bash
|
|
|
|
#===================================================================#
|
|
# pull routine for LIGGGHTS, part of CFDEMproject
|
|
# Christoph Goniva - August. 2013, DCS Computing GmbH
|
|
#===================================================================
|
|
|
|
#- include functions
|
|
source $CFDEM_PROJECT_DIR/etc/functions.sh
|
|
|
|
NOW="$(date +"%Y-%m-%d-%H:%M")"
|
|
logDir="log"
|
|
|
|
cd $CFDEM_PROJECT_DIR/etc
|
|
mkdir -p $logDir
|
|
|
|
#--------------------------------------------------------------------------------#
|
|
#- define variables
|
|
logpath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")/$logDir"
|
|
logfileName="log_pullLIGGGHTS"
|
|
casePath="$CFDEM_LIGGGHTS_SRC_DIR"
|
|
headerText="$logfileName""-$NOW"
|
|
#--------------------------------------------------------------------------------#
|
|
|
|
pullRepo $logpath $logfileName $casePath $headerText
|