| 
                Last change
                  on this file since 3448 was
                  11,
                  checked in by aslmd, 15 years ago
           | 
        
        
          | 
               
spiga@svn-planeto:ajoute le modele meso-echelle martien 
 
           | 
        
        
          
            
              - 
                  Property svn:executable set to
                  
*
               
             
           | 
        
        | 
            File size:
            1.3 KB
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #!/bin/csh | 
|---|
| 2 |  | 
|---|
| 3 | set root = data1 | 
|---|
| 4 | set root = mmmtmp | 
|---|
| 5 |  | 
|---|
| 6 | echo starting | 
|---|
| 7 | if ( ! -d /$root/${user} ) then | 
|---|
| 8 |         echo give me a break | 
|---|
| 9 |         exit ( 1 ) | 
|---|
| 10 | endif | 
|---|
| 11 | cd /$root/${user} | 
|---|
| 12 |  | 
|---|
| 13 | if ( ! -d /$root/${user}/`hostname` ) then | 
|---|
| 14 |         mkdir /$root/${user}/`hostname` | 
|---|
| 15 | endif | 
|---|
| 16 | cd /$root/${user}/`hostname` | 
|---|
| 17 |  | 
|---|
| 18 | if ( ! -e /$root/${user}/wrfv2.tar ) then | 
|---|
| 19 |         echo need the wrf tar file | 
|---|
| 20 |         exit ( 2 ) | 
|---|
| 21 | endif | 
|---|
| 22 |  | 
|---|
| 23 | echo untar wrfv2 | 
|---|
| 24 | tar -xf ../wrfv2.tar | 
|---|
| 25 |  | 
|---|
| 26 | if      ( `uname` == SunOS ) then | 
|---|
| 27 |         set OPTS = ( 1   3   ) | 
|---|
| 28 | else if ( ( `uname` == Linux ) && ( `hostname` == jacaranda ) ) then | 
|---|
| 29 |         set OPTS = ( 2       ) | 
|---|
| 30 | else if ( `uname` == Linux ) then | 
|---|
| 31 |         set OPTS = ( 1 2 3   ) | 
|---|
| 32 | else if ( `uname` == OSF1  ) then | 
|---|
| 33 |         set OPTS = ( 1 3 6   ) | 
|---|
| 34 | endif | 
|---|
| 35 |  | 
|---|
| 36 | foreach opt ( $OPTS ) | 
|---|
| 37 |         cd /$root/${user}/`hostname`/WRFV2 | 
|---|
| 38 |  | 
|---|
| 39 |         foreach test ( em_real em_b_wave em_quarter_ss ) | 
|---|
| 40 |                 echo building $test for compiler option $opt `date` | 
|---|
| 41 |  | 
|---|
| 42 |                 clean -a >& /dev/null | 
|---|
| 43 |  | 
|---|
| 44 |                 echo "$opt" | ./configure >&! make.out.${test}.opt=${opt}  | 
|---|
| 45 |  | 
|---|
| 46 |                 compile $test >>& make.out.${test}.opt=${opt} | 
|---|
| 47 |  | 
|---|
| 48 |                 if ( $test == em_real ) then | 
|---|
| 49 |                         if ( ( ! -e main/real.exe ) || ( ! -e main/wrf.exe ) ) then | 
|---|
| 50 |                                 echo missing $test executables | 
|---|
| 51 |                                 exit ( 3 ) | 
|---|
| 52 |                         endif | 
|---|
| 53 |                 else | 
|---|
| 54 |                         if ( ( ! -e main/ideal.exe ) || ( ! -e main/wrf.exe ) ) then | 
|---|
| 55 |                                 echo missing $test executables | 
|---|
| 56 |                                 exit ( 4 ) | 
|---|
| 57 |                         endif | 
|---|
| 58 |                 endif | 
|---|
| 59 |                 echo $test exec build OK `date` | 
|---|
| 60 |                 echo " " | 
|---|
| 61 |  | 
|---|
| 62 |         end | 
|---|
| 63 | end | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.