diff --git a/build_FEM.sh b/build_FEM.sh index 9c154670b..a8326a07e 100755 --- a/build_FEM.sh +++ b/build_FEM.sh @@ -15,7 +15,7 @@ if [ ! -d build ]; then mkdir build fi cd build -if [ -d build_FEM ] ; then +if [ -d FEM ] ; then rm -rf FEM fi mkdir FEM @@ -41,6 +41,6 @@ cmake -D PETSC_DIR=${PETSC_DIR} \ echo echo "Please move to the build directory using" -echo " cd build/build_spectral" +echo " cd build/FEM" echo "Using the following command to build DAMASK spectral solver" echo " make clean all install" diff --git a/build_spectral.sh b/build_spectral.sh index a26175b65..51a6fcd74 100755 --- a/build_spectral.sh +++ b/build_spectral.sh @@ -15,11 +15,11 @@ if [ ! -d build ]; then mkdir build fi cd build -if [ -d build ] ; then - rm -rf build +if [ -d spectral ] ; then + rm -rf spectral fi -mkdir build -cd build +mkdir spectral +cd spectral ## # CMake call