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
fi
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 "
......@@ -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[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)"
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
# ./script/install_PETSC.sh $i_dir $choose
......
#! /bin/bash
function possible_solutions {
if [ $sq -eq 0 ]; then
return
fi
sol=1
echo "Possible solutions:"
for com in "$@"
......@@ -15,9 +20,7 @@ function possible_solutions {
exit 1
fi
possible_solutions_ret=`expr $choose - 1`
if [ $sq -eq 0 ]; then
echo "Executing: ${command[$possible_solutions_ret]}"
eval ${commands[$possible_solutions_ret]}
fi
echo "Executing: ${command[$possible_solutions_ret]}"
eval ${commands[$possible_solutions_ret]}
}
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