source: CONFIG/trunk/IPSLCM4_v2/AA_make @ 41

Last change on this file since 41 was 41, checked in by aclsce, 15 years ago

MAFo+ACa : IPSLCM4_v2 first import

File size: 7.0 KB
Line 
1#- $Id: AA_make,v 1.6.2.2 2007/04/05 15:15:47 adm Exp $
2#-
3#- Key options for OPA ocean model + UCL sea ice model : ORCA_R4 - Coupled
4#-
5#--- -Wp,-Dkey_orca_r4                    resolution option(4,2,05,025)
6#--- -Wp,-Dkey_ice_lln                    + use the Louvain La Neuve sea ice model
7#--- -Wp,-Dkey_freesurf_cstvol            Free surface formulation
8#--- -Wp,-Dkey_zdftke                     tke 1.5 turbulent closure scheme   
9#--- -Wp,-Dkey_flxqsr                     + solar radiation penetration
10#--- -Wp,-Dkey_trahdfiso         tracer   diffusion along neutral surfaces   
11#--- -Wp,-Dkey_trahdfcoef2d      tracer   latitude and longitude dependent coef.
12#--- -Wp,-Dkey_dynhdfcoef3d      dynamic  latitude and longitude dependent coef.
13#--- -Wp,-Dkey_trahdfeiv                  eddy induced advection
14#--- -Wp,-Dkey_convevd                    + enhanced vertical diffusion         
15#--- -Wp,-Dkey_temdta                     temperature data file (Levitus)
16#--- -Wp,-Dkey_saldta                     salinity data file    (Levitus) 
17#--- -Wp,-Dkey_saldta_monthly              + salinity data file (Levitus monthly)
18#--- -Wp,-Dkey_diaznl                     Diagnostics: zonal fluxes
19#--- -Wp,-Dkey_diahth                     Diagnostics: thermocline depth,
20#-                                        and depth of the 20 degrees isotherm
21#--- -Wp,-Dkey_diaeiv                     Diagnostics: Eddy induced velocities
22#--- -Wp,-Dkey_monotasking                monotasking option
23#--- -Wp,-Dkey_coupled                    coupled version - Boundary conditions:
24#-                                        momentum, heat and fresh water fluxes (coupled)
25#--- -Wp,-Dkey_coupled_prism              coupled version with OASIS3
26#-
27KEY4='-Wp,-Dkey_orca_r4 -Wp,-Dkey_ice_lln -Wp,-Dkey_freesurf_cstvol -Wp,-Dkey_zdftke -Wp,-Dkey_flxqsr -Wp,-Dkey_trahdfiso -Wp,-Dkey_trahdfcoef2d -Wp,-Dkey_dynhdfcoef3d -Wp,-Dkey_trahdfeiv -Wp,-Dkey_convevd -Wp,-Dkey_temdta -Wp,-Dkey_saldta -Wp,-Dkey_saldta_monthly -Wp,-Dkey_diaznl -Wp,-Dkey_diahth -Wp,-Dkey_diaeiv -Wp,-Dkey_monotasking -Wp,-Dkey_coupled -Wp,-Dkey_coupled_prism -Wp,-Dkey_coupled_ipslcm4 -Wp,-Dkey_lim_fdd -Wp,-Dkey_lim_cp2'
28KEY2='-Wp,-Dkey_orca_r2 -Wp,-Dkey_ice_lln -Wp,-Dkey_freesurf_cstvol -Wp,-Dkey_zdftke -Wp,-Dkey_flxqsr -Wp,-Dkey_trahdfiso -Wp,-Dkey_trahdfcoef2d -Wp,-Dkey_dynhdfcoef3d -Wp,-Dkey_trahdfeiv -Wp,-Dkey_convevd -Wp,-Dkey_temdta -Wp,-Dkey_saldta -Wp,-Dkey_saldta_monthly -Wp,-Dkey_diaznl -Wp,-Dkey_diahth -Wp,-Dkey_diaeiv -Wp,-Dkey_monotasking -Wp,-Dkey_coupled -Wp,-Dkey_coupled_prism -Wp,-Dkey_coupled_ipslcm4 -Wp,-Dkey_lim_fdd -Wp,-Dkey_lim_cp2'
29PRISM_DIR = ../../prism
30OASIS3_DIR = $(PRISM_DIR)/src/mod/oasis3
31
32all :
33        if [ -s ./.resol ] ; then gmake `cat .resol` ; else gmake ORCA2xLMD9671 ; fi
34
35ORCA4xLMD7245 : libioipsl oasis3 libparameters libstomate libsechiba lmdz7245 orca4
36        echo "ORCA4xLMD7245" >.resol
37        echo "$(LIB_MPI)" >.libmpi
38
39ORCA2xLMD7245 : libioipsl oasis3 libparameters libstomate libsechiba lmdz7245 orca2
40        echo "ORCA2xLMD7245" >.resol
41        echo "$(LIB_MPI)" >.libmpi
42
43ORCA2xLMD9671 : libioipsl oasis3 libparameters libstomate libsechiba lmdz9671 orca2
44        echo "ORCA2xLMD9671" >.resol
45        echo "$(LIB_MPI)" >.libmpi
46
47ORCA2xLMD14496 : libioipsl oasis3 libparameters libstomate libsechiba lmdz14496 orca2
48        echo "ORCA2xLMD14496" >.resol
49        echo "$(LIB_MPI)" >.libmpi
50
51ORCA2xLMD144142 : libioipsl oasis3 libparameters libstomate libsechiba lmdz144142 orca2
52        echo "ORCA2xLMD144142" >.resol
53        echo "$(LIB_MPI)" >.libmpi
54
55libioipsl :
56        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
57
58oasis3: $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) $(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME)
59        (cd $(OASIS3_DIR) ; ./COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) ; )
60
61$(OASIS3_DIR)/COMP_oasis3_$(LIB_MPI).$(PRISM_NAME) :
62        (cd $(PRISM_DIR) ; ./util/compile/frames/Create_COMP_libs.frm  - - "${PRISM_NAME}" "${LIB_MPI_BIS}" ; ./util/compile/frames/Create_COMP_models.frm oasis3 "${LIB_MPI_BIS}" - - "${PRISM_NAME}" "" "" ; )
63
64libparameters :
65        (cd ../../modeles/ORCHIDEE/src_parameters ; $(M_K) -f Makefile)
66
67libsechiba :
68        (cd ../../modeles/ORCHIDEE/src_sechiba ; $(M_K) -f Makefile)
69
70libstomate :
71        (cd ../../modeles/ORCHIDEE/src_stomate ; $(M_K) -f Makefile)
72
73precsechiba :
74        (cd ../../modeles/ORCHIDEE/src_parameters ; $(M_K) -f Makefile checkprec)
75
76config : libioipsl
77        (cd ../../modeles/IOIPSL/src; $(M_K) -f Makefile config)
78        (cd ../../modeles/ORCHIDEE/src_parameters; $(M_K) -f Makefile config)
79        (cd ../../modeles/ORCHIDEE/src_sechiba; $(M_K) -f Makefile config)
80        (cd ../../modeles/ORCHIDEE/src_stomate; $(M_K) -f Makefile config)
81        $(BINDIR)/Fparser -main -name ORCHIDEE_OL $(MODS1)
82        $(SCPDIR)/build_tkmenus
83        ./config.tk
84        $(RM) Config.*
85
86lmdz7245:
87        (cd ../../modeles/LMDZ4; ./makegcm -d 72x45x19 -psmile true -v true -c true -include $(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI) -link '-L$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' create_etat0_limit ; cp create_etat0_limit.e ../../bin/create_etat0_limit.e ; )
88        (cd ../../modeles/LMDZ4; ./makegcm -d 72x45x19 -psmile true -v true -c true -include $(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI) -link '-L$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' gcm ; cp gcm.e ../../bin/gcm.e ; )
89lmdz9671:
90        (cd ../../modeles/LMDZ4; ./makegcm -d 96x71x19 -psmile true -v true -c true -include $(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI) -link '-L$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' create_etat0_limit ; cp create_etat0_limit.e ../../bin/create_etat0_limit.e ; )
91        (cd ../../modeles/LMDZ4; ./makegcm -d 96x71x19 -psmile true -v true -c true -include $(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI) -link '-L$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' gcm ; cp gcm.e ../../bin/gcm.e ; )
92lmdz14496:
93        (cd ../../modeles/LMDZ4; ./makegcm -d 144x96x19 -psmile true -v true -c true -include $(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI) -link '-L$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' create_etat0_limit ; cp create_etat0_limit.e ../../bin/create_etat0_limit.e ; )
94        (cd ../../modeles/LMDZ4; ./makegcm -d 144x96x19 -psmile true -v true -c true -include $(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI) -link '-L$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' gcm ; cp gcm.e ../../bin/gcm.e ; )
95
96lmdz144142:
97        (cd ../../modeles/LMDZ4; ./makegcm -d 144x142x19 -psmile true -v true -c true -include $(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI) -link '-L$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' create_etat0_limit ; cp create_etat0_limit.e ../../bin/create_etat0_limit.e ; )
98        (cd ../../modeles/LMDZ4; ./makegcm -d 144x142x19 -psmile true -v true -c true -include $(PRISM_DIR)/$(PRISM_ARCH)/build/lib/psmile.$(LIB_MPI) -link '-L$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' gcm ; cp gcm.e ../../bin/gcm.e ; )
99
100orca4:
101        (cd ../../modeles/OPA/WORK; $(M_K) P_P=$(KEY4) OASISMPI2_LIB='-L../$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' ; )
102orca2:
103        (cd ../../modeles/OPA/WORK; $(M_K) P_P=$(KEY2) OASISMPI2_LIB='-L../$(PRISM_DIR)/$(PRISM_ARCH)/lib -lpsmile.$(LIB_MPI) -lmpp_io' ; )
104
Note: See TracBrowser for help on using the repository browser.