Skip to content

Commit

Permalink
mb calc
Browse files Browse the repository at this point in the history
  • Loading branch information
oguyon committed Oct 9, 2024
1 parent 8859ca3 commit f0cc4d0
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions AOloopControl/scripts/aorun/cacao-aorun-045-compCM-byblocks
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,18 @@ echo "NB modes = ${NBRMmodes}"



mbstartarray=(1 2 3 4 8 16 32 64 128 256 512 1024 2048 4096 8192)
mbstartarray=(1 2 3 12 50 200 1000 5000 10000)

maxi=${#mbstartarray[@]}
let maxi=maxi-1


if [[ ${MARGMODE} -eq 1 ]]; then
margstring=""
else
margstring="0:1"
fi

for (( i=0; i<$maxi; i++)); do
mb0=${mbstartarray[$i]}
let i1=i+1
Expand All @@ -101,10 +108,25 @@ let mb1=NBRMmodes
fi
printf "MODE BLOCK %02d : %4d : %4d\n" $i $mb0 $mb1
fi
done

if [[ $i -lt 2 ]]; then
echo "cacao-aorun-039-compstrCM -mb $i -mr $mb0:$mb1"
else
if [[ $i -eq 2 ]]; then
margstring="2"
else
margstring="margstring:$i"
fi

if [[ ${MARGMODE} -eq 1 ]]; then
echo "cacao-aorun-039-compstrCM -mb $i -mr $mb0:$mb1 ${WHICH_MARG} ${margstring} ${MARGTT}"
else
echo "cacao-aorun-039-compstrCM -mb $i -mr $mb0:$mb1 ${WHICH_MARG} 0:1:${margstring}"
fi

fi

done

exit

Expand All @@ -128,6 +150,10 @@ fi







# make LO CM
cacao-fpsctrl setval compstrCM svdlim ${SVDlim}

Expand Down

0 comments on commit f0cc4d0

Please sign in to comment.