Ignore:
Timestamp:
Dec 20, 2019, 3:25:27 PM (5 years ago)
Author:
dubos
Message:

simple_physics : cleanup Mellor & Yamada

Location:
dynamico_lmdz/simple_physics/bash
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/simple_physics/bash/replace_keywords.sh

    r4202 r4203  
    1010function replace_key()
    1111{
    12     LOW=$1
    13     UP=$2
     12    LOW="$1"
     13    UP="$2"
    1414    sed -i -e "s/\b${LOW}\b/${UP}/g" $3
    1515}
     
    2222# enddo => ENDDO
    2323    replace_key subroutine SUBROUTINE $NEW
     24    replace_key 'do i=' 'DO i=' $NEW
     25    replace_key 'do k=' 'DO k=' $NEW
     26    replace_key 'end do' 'END DO' $NEW
     27    replace_key 'parameter' 'PARAMETER' $NEW
     28    replace_key 'integer' 'INTEGER' $NEW
     29    replace_key 'real' 'REAL' $NEW
     30    replace_key 'then' 'THEN' $NEW
     31    replace_key 'else' 'ELSE' $NEW
     32    replace_key 'endif' 'END IF' $NEW
     33    replace_key 'end if' 'END IF' $NEW
    2434    diff $NEW $ORIG
    2535    cp -i -u $NEW $ORIG
Note: See TracChangeset for help on using the changeset viewer.