source: CONFIG/LMDZOR/branches/LMDZ4OR_v3/AA_make @ 602

Last change on this file since 602 was 602, checked in by jgipsl, 13 years ago

Compilation of LMDZ has changed :
makegcm_fcm => makelmdz_fcm
option -m => -arch
_t4 removed from binary suffix (option -t not existing anymore)

File size: 2.9 KB
Line 
1#- $Id$
2
3
4all :
5        if [ -s ./.resol ] ; then gmake `cat .resol` ; else gmake LMD9671 ; fi
6
7LMD7245 : libioipsl liborchidee lmdz7245 verif
8        echo "LMD7245" >.resol
9        echo "$(LIB_MPI)" >.libmpi
10
11LMD9671 : libioipsl liborchidee lmdz9671 verif
12        echo "LMD9671" >.resol
13        echo "$(LIB_MPI)" >.libmpi
14
15LMD14496 : libioipsl liborchidee lmdz14496 verif
16        echo "LMD14496" >.resol
17        echo "$(LIB_MPI)" >.libmpi
18
19LMD144142 : libioipsl liborchidee lmdz144142 verif
20        echo "LMD144142" >.resol
21        echo "$(LIB_MPI)" >.libmpi
22
23libioipsl :
24        (cd ../../modeles/IOIPSL/src ; $(M_K) -f Makefile)
25
26liborchidee :
27        (cd ../../modeles/ORCHIDEE/ ; ./configure_orchidee -p MPI -arch $(FCM_ARCH) ; fcm build ; ln -sf ../modeles/ORCHIDEE/lib/liborglob.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/libparallel.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/libsechiba.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/libstomate.a  ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/libparameters.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/liborchidee.a ../../lib ; ln -sf ../modeles/ORCHIDEE/lib/intersurf.mod ../../lib )
28
29precsechiba :
30        (cd ../../modeles/ORCHIDEE/src_parameters ; $(M_K) -f Makefile checkprec)
31
32config : libioipsl
33        (cd ../../modeles/IOIPSL/src; $(M_K) -f Makefile config)
34        (cd ../../modeles/ORCHIDEE; $(M_K) -f Makefile config)
35        $(BINDIR)/Fparser -main -name ORCHIDEE_OL $(MODS1)
36        $(SCPDIR)/build_tkmenus
37        ./config.tk
38        $(RM) Config.*
39
40cleanORC :
41        (cd ../../modeles/ORCHIDEE; $(M_K) -f Makefile clean)
42
43lmdz7245:
44        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -d 72x45x19 -arch $(FCM_ARCH) create_etat0_limit ; cp bin/create_etat0_limit_72x45x19_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
45        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -d 72x45x19 -v true -parallel mpi -arch $(FCM_ARCH) gcm ; cp bin/gcm_72x45x19_phylmd_para_orch.e ../../bin/gcm.e ; )
46lmdz9671:
47        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -d 96x71x19 -arch $(FCM_ARCH) create_etat0_limit ; cp bin/create_etat0_limit_96x71x19_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
48        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -d 96x71x19 -v true -parallel mpi -arch $(FCM_ARCH) gcm ; cp bin/gcm_96x71x19_phylmd_para_orch.e ../../bin/gcm.e ; )
49lmdz14496:
50        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -d 144x96x19 -arch $(FCM_ARCH) create_etat0_limit ; cp bin/create_etat0_limit_144x96x19_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
51        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -d 144x96x1 -v true -parallel mpi -arch $(FCM_ARCH) gcm ; cp bin/gcm_144x96x19_phylmd_para_orch.e ../../bin/gcm.e ; )
52lmdz144142:
53        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -d 144x142x19 -arch $(FCM_ARCH) create_etat0_limit ; cp bin/create_etat0_limit_144x142x19_phylmd_seq.e ../../bin/create_etat0_limit.e ; )
54        (cd ../../modeles/LMDZ4; ./makelmdz_fcm -d 144x142x19 -v true -parallel mpi -arch $(FCM_ARCH) gcm ; cp bin/gcm_144x142x19_phylmd_para_orch.e ../../bin/gcm.e ; )
55
56verif:
57        ls -l ../../bin
58
59clean :
60        (rm -rf $(LIBDIR)/* ; rm -f $(BINDIR)/* ; rm -rf ../../modeles/LMDZ4/libo/* ../../modeles/LMDZ4/.lock ; rm -fr .resol .libmpi ; )
61
Note: See TracBrowser for help on using the repository browser.