Skip to content
Snippets Groups Projects
Commit 1a31845d authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing skipping installation cin

parent f9870ec0
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,11 @@ if [ $sq -eq 0 ]; then ...@@ -125,7 +125,11 @@ if [ $sq -eq 0 ]; then
fi fi
echo -e "\033[1mHow many core you want to use to install the dependencies?\033[0m" echo -e "\033[1mHow many core you want to use to install the dependencies?\033[0m"
read ncore if [ $sq -eq 0 ]; then
read ncore
else
ncore = 4
fi
echo -e "Installing requirements into: $i_dir " echo -e "Installing requirements into: $i_dir "
...@@ -141,7 +145,11 @@ if [ ! -d "$i_dir/PETSC" -o ! -d "$i_dir/EIGEN" ]; then ...@@ -141,7 +145,11 @@ if [ ! -d "$i_dir/PETSC" -o ! -d "$i_dir/EIGEN" ]; then
echo -e "\033[1;34m Optional packages \033[0m" echo -e "\033[1;34m Optional packages \033[0m"
echo -e "\033[1mDo you want to install linear algebra packages ?(y/n)\033[0m" echo -e "\033[1mDo you want to install linear algebra packages ?(y/n)\033[0m"
echo "Installation can take long time (90 minutes on i7-3612QM 4 cores)" echo "Installation can take long time (90 minutes on i7-3612QM 4 cores)"
read inst_lin_alg if [ $sq -eq 0 ]; then
read inst_lin_alg
else
inst_lin_alg = n
fi
# if [ ! x"$choose" == x"0" ]; then # if [ ! x"$choose" == x"0" ]; then
# ./script/install_PETSC.sh $i_dir $choose # ./script/install_PETSC.sh $i_dir $choose
......
#! /bin/bash #! /bin/bash
function possible_solutions { function possible_solutions {
if [ $sq -eq 0 ]; then
return
fi
sol=1 sol=1
echo "Possible solutions:" echo "Possible solutions:"
for com in "$@" for com in "$@"
...@@ -15,9 +20,7 @@ function possible_solutions { ...@@ -15,9 +20,7 @@ function possible_solutions {
exit 1 exit 1
fi fi
possible_solutions_ret=`expr $choose - 1` possible_solutions_ret=`expr $choose - 1`
if [ $sq -eq 0 ]; then echo "Executing: ${command[$possible_solutions_ret]}"
echo "Executing: ${command[$possible_solutions_ret]}" eval ${commands[$possible_solutions_ret]}
eval ${commands[$possible_solutions_ret]}
fi
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment