From 46cf0394ec151291cf2eb4d539a149385ee43f88 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 14 Jul 2016 17:07:08 +0200 Subject: [PATCH] cleaned, exeption not needed (SOLVER and PROCESSING are always defined) --- DAMASK_env.sh | 6 +++--- DAMASK_env.zsh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DAMASK_env.sh b/DAMASK_env.sh index 760ee056a..d17412a2f 100644 --- a/DAMASK_env.sh +++ b/DAMASK_env.sh @@ -10,7 +10,7 @@ else DAMASK_ROOT=${STAT##* } fi -# allows to source the same file for tcsh and bash, with and without space around = +# defining set() allows to source the same file for tcsh and bash, with and without space around = set() { export $1$2$3 } @@ -58,8 +58,8 @@ if [ ! -z "$PS1" ]; then echo echo Using environment with ... echo "DAMASK $DAMASK_ROOT" - [[ "x$SOLVER" != "x" ]] && echo "Spectral Solver $SOLVER" - [[ "x$PROCESSING" != "x" ]] && echo "Post Processing $PROCESSING" + echo "Spectral Solver $SOLVER" + echo "Post Processing $PROCESSING" echo "Multithreading DAMASK_NUM_THREADS=$DAMASK_NUM_THREADS" if [ "x$PETSC_DIR" != "x" ]; then echo "PETSc location $PETSC_DIR" diff --git a/DAMASK_env.zsh b/DAMASK_env.zsh index b3666b34b..d23b00f80 100644 --- a/DAMASK_env.zsh +++ b/DAMASK_env.zsh @@ -8,7 +8,7 @@ else print 'Not done yet' fi -# allows to source the same file for tcsh and zsh, with and without space around = +# defining set() allows to source the same file for tcsh and zsh, with and without space around = set() { export $1$2$3 } @@ -57,8 +57,8 @@ if [ ! -z "$PS1" ]; then echo echo Using environment with ... echo "DAMASK $DAMASK_ROOT" - [[ "x$SOLVER" != "x" ]] && echo "Spectral Solver $SOLVER" - [[ "x$PROCESSING" != "x" ]] && echo "Post Processing $PROCESSING" + echo "Spectral Solver $SOLVER" + echo "Post Processing $PROCESSING" echo "Multithreading DAMASK_NUM_THREADS=$DAMASK_NUM_THREADS" if [ "x$PETSC_DIR" != "x" ]; then echo "PETSc location $PETSC_DIR"