1 |
cnh |
1.1 |
#!/bin/csh -fxv |
2 |
|
|
# |
3 |
cnh |
1.2 |
set OPATH = ( ) |
4 |
|
|
set OINC = ( ) |
5 |
cnh |
1.1 |
|
6 |
|
|
source ${BUILDROOT}/mytools/comp_profile.BASE |
7 |
|
|
source ${BUILDROOT}/mytools/comp_profile.${COMP_PROF} |
8 |
|
|
|
9 |
cnh |
1.2 |
foreach PE ( $pesizelist ) |
10 |
|
|
|
11 |
|
|
set includes = ( -I${APPINC_PATH}/${PE}pe -I${APPF90MOD_PATH}/${PE}pe ${compinc} ) |
12 |
|
|
set libs = ( -L${APPLIB_PATH}/${PE}pe -lmitgcm_org_ocn -lmitgcmrtl ${complibs} -lesmf ) |
13 |
cnh |
1.1 |
|
14 |
|
|
$comp $compopts -c ../utils/mitgcm_org_esmf_utils.F $includes $libs |
15 |
|
|
$comp $compopts -c mitgcm_org_ocn_esmf_exports.F $includes $libs |
16 |
|
|
$comp $compopts -c mitgcm_org_ocn_esmf_imports.F $includes $libs |
17 |
|
|
$comp $compopts -c mitgcm_org_ocn_esmf_driver.F $includes $libs |
18 |
|
|
\rm main.o |
19 |
|
|
|
20 |
|
|
${arcommand} ${aropts} libmitgcm_org_ocn_esmf_driver.a *.o |
21 |
|
|
|
22 |
cnh |
1.2 |
cp *.a ${APPLIB_PATH}/${PE}pe |
23 |
|
|
cp *.mod ${APPF90MOD_PATH}/${PE}pe |
24 |
cnh |
1.1 |
\rm *.a *.mod |
25 |
cnh |
1.2 |
end |
26 |
cnh |
1.1 |
|