| 5 |
# extract the name |
# extract the name |
| 6 |
srName=${i%%\(*} |
srName=${i%%\(*} |
| 7 |
echo "/^ SUBROUTINE $srName/i\\" >> temp.sed |
echo "/^ SUBROUTINE $srName/i\\" >> temp.sed |
| 8 |
if [ "$srName" = "the_first_level_loop" -o "$srName" = "the_second_level_loop" -o "$srName" = "the_third_level_loop" -o "$srName" = "the_fourth_level_loop" ] |
if [ "$srName" = "OpenAD_the_first_level_loop" -o "$srName" = "OpenAD_the_second_level_loop" -o "$srName" = "OpenAD_the_third_level_loop" -o "$srName" = "OpenAD_the_fourth_level_loop" ] |
| 9 |
then |
then |
| 10 |
echo "c\$openad XXX Template ../code_shallow_openad/ad_template.checkpoint.f" >> temp.sed |
echo "c\$openad XXX Template ../code_shallow_openad/ad_template.checkpoint.f" >> temp.sed |
| 11 |
else |
else |
| 12 |
if [ "$srName" = "the_first_level_plain" -o "$srName" = "the_second_level_plain" -o "$srName" = "the_third_level_plain" -o "$srName" = "the_fourth_level_plain" ] |
if [ "$srName" = "OpenAD_the_first_level_plain" -o "$srName" = "OpenAD_the_second_level_plain" -o "$srName" = "OpenAD_the_third_level_plain" -o "$srName" = "OpenAD_the_fourth_level_plain" ] |
| 13 |
then |
then |
| 14 |
echo "c\$openad XXX Template ../code_shallow_openad/ad_template.plain.f" >> temp.sed |
echo "c\$openad XXX Template ../code_shallow_openad/ad_template.plain.f" >> temp.sed |
| 15 |
else |
else |
| 16 |
if [ "$srName" = "cg2d" ] |
if [ "$srName" = "OpenAD_cg2d" ] |
| 17 |
then |
then |
| 18 |
echo "c\$openad XXX Template ../code_shallow_openad/ad_template.sa_cg2d.f" >> temp.sed |
echo "c\$openad XXX Template ../code_shallow_openad/ad_template.sa_cg2d.f" >> temp.sed |
| 19 |
else |
else |