source: trunk/mesoscale/LMD_MM_MARS/SRC/ARWpost/compile @ 13

Last change on this file since 13 was 11, checked in by aslmd, 14 years ago

spiga@svn-planeto:ajoute le modele meso-echelle martien

  • Property svn:executable set to *
File size: 733 bytes
Line 
1#!/bin/csh -f
2
3if ( ! -e configure.arwp ) then
4        echo "Do 'configure' first"
5        exit ( 1 ) 
6endif
7
8if  ( ( ! $?NETCDF ) && ( -d netcdf_links ) ) then
9        setenv NETCDF `pwd`/netcdf_links
10        setenv temp_netcdf 1
11else
12        setenv temp_netcdf 0
13endif
14
15set DEV_TOP = `pwd`
16set first_char = `grep ^WRF_DIR configure.arwp | awk '{print $3}' | cut -c -1`
17
18if ( "$first_char" == "/" ) then
19        set WRF_DIR_PRE =
20else
21        set WRF_DIR_PRE =       ${DEV_TOP}/
22endif
23
24
25echo " "
26echo "**** Compiling ARWpost ****"
27echo " "
28
29echo ${WRF_DIR_PRE}
30( cd src ; make -i -r WRF_DIR_PRE="${WRF_DIR_PRE}" all )
31     if ( -e src/ARWpost.exe ) then
32             ln -sf src/ARWpost.exe .
33     endif
34
35
36if ( $temp_netcdf == 1 ) then
37        unsetenv NETCDF
38endif
39
40exit(0)
Note: See TracBrowser for help on using the repository browser.