Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit e2b58300 authored by perdereau's avatar perdereau
Browse files

script pour profile mnu 3 nu degeneres

parent 24454a5f
#!/bin/bash
#vhl
M=(0.01 0.02 0.04 0.06 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.70 0.80 0.90 1)
#M=(0 0.06 0.10 0.20 0.30 0.40 0.50 0.60 0.7 0.80 0.90 1 1.2 1.5)
#BAO
#M=(0 0.02 0.04 0.06 0.08 0.10 0.12 0.15 0.17 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.60 0.7 0.8 0.9 1.0)
cd `dirname $1`
dirpar=$PWD
cd -
parbase=`basename $1`
file=$dirpar/$parbase
dirout=${parbase%".par"}_degnuprof
if [ -d "$dirout" ] ; then
echo "directory $dirout exists: still want to run? (o/n)"
read answer
if [ $answer != 'o' ] ; then
echo "exiting"
exit 1
fi
fi
mkdir $dirout
if [ -z "${CAMELROOT}" ] ; then
echo "CAMELROOT undefined"
exit
fi
if [ -z "$CLIKDIR" ] ; then
echo "miss CLIKDIR"
exit
fi
if [ ! -f "$file" ] ; then
echo "mssing $file"
exit
fi
CAMELDIR=${GROUP_DIR}/camel
HERE=$PWD
##########LOOP MNU################################
for inu in $(seq 0 $((${#M[@]}-1))) ; do
mnu=${M[$inu]}
echo $mnu
bmnu=$(echo "scale=4; $mnu / 3.0" | bc -l )
echo $bmnu
echo '...'
OUTDIR=$HERE/$dirout/nu_${mnu}
mkdir $OUTDIR
cd $OUTDIR
###################################################
cat > camelrun <<EOBATCH
#!/bin/bash
#$ -N $(basename $(dirname $PWD))_$(basename $PWD)
#$ -l os=sl6
#$ -R y
#$ -j y
#$ -o $PWD
#$ -e $PWD
cd \$TMPDIR
uname -a
echo "NSLOTS=\$NSLOTS"
export OMP_NUM_THREADS=8
export PYTHONPATH=${PICO_CODE}
# copies localeS
cp $CAMELROOT/$CMTCONFIG/Profile .
cp $CAMELROOT/work/tools/awk/genrand.awk .
###cp $file parfile_in
#
#input file
# enleve lo:w-l
# vire les vieux trucs
grep -v T_ncdm $file | grep -v N_ncdm | grep -v N_eff | grep -v N_ur > parfile_in
#settings 3 neutrinos degeneres
echo "class N_ncdm 1" >> parfile_in
echo "class deg_ncdm 3" >> parfile_in
echo "class N_ur .00641" >> parfile_in
#rajouter MNU
#================================
#if [ "$mnu" == "0" ] ; then
#echo "class N_ncdm 0" >> parfile_in
#echo "class N_eff 3.046" >> parfile_in
#else
#echo "class N_ncdm 1" >> parfile_in
#echo "class m_ncdm $mnu" >> parfile_in
#echo "class N_eff 2.046" >> parfile_in
#fi
#echo "init par:"
#cat parfile_in
#================================
#randomize si id ne 1
#================================
echo "***************************************************************"
if [ \${SGE_TASK_ID} -eq 1 ] ; then
cp parfile_in parfile
else
vrRANDOM=\${SGE_TASK_ID}
awk -v seed=\$RANDOM -f genrand.awk parfile_in > parfile
fi
cp parfile $OUTDIR/camel\${SGE_TASK_ID}.par
echo "***************************************************************"
#================================
# Camel run
#================================
./Profile parfile m_ncdm $bmnu $bmnu 1 bestfit
cp -f bestfit $OUTDIR/best_fit\${SGE_TASK_ID}
EOBATCH
#####################################################################################################################################
qsub -t 1-10 -pe multicores 8 -q mc_long camelrun
#qsub -P P_planck_prod -t 1-5 -pe multicores 8 -q mc_longlasting camelrun
#qsub -P P_planck_prod -t 11-28 -pe multicores 8 -q mc_long camelrun
#qsub -P P_planck_prod -t 9-16 -pe openmpi_8 8 -q pa_long camelrun
#sps=1
#qsub -t 1-10 -pe multicores 8 -l sps=1 -q mc_long camelrun
#qsub -t 6-10 -pe openmpi_8 8 -l sps=1 -q pa_long camelrun
#####################################################################################################################################
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment