Changes between Version 57 and Version 58 of DevelopmentActivities/Branches/ORCHIDEE-MICT-IMBALANCE-P/Compile


Ignore:
Timestamp:
2019-09-27T16:00:08+02:00 (5 years ago)
Author:
ajornet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopmentActivities/Branches/ORCHIDEE-MICT-IMBALANCE-P/Compile

    v57 v58  
    6565= Guide = 
    6666 
     67This guide is meant to work for any module found in your environment. For that reason, it is necessary to properly select them. 
     68 
     69Download Modipsl 
     70{{{ 
     71svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl 
     72}}} 
     73 
     74Get into your new download modipsl folder 
     75{{{ 
     76cd modipsl 
     77}}} 
     78 
     79Modify util/AA_make.gdef (diff notation) 
     80{{{ 
     81[ajornet@obelix3 util]$ svn diff 
     82Index: AA_make.gdef 
     83=================================================================== 
     84--- AA_make.gdef        (révision 4740) 
     85+++ AA_make.gdef        (copie de travail) 
     86@@ -379,8 +379,8 @@ 
     87 #-Q- lxiv8    C_O = 
     88 #-Q- lxiv8    C_L = cc 
     89 #-Q- lxiv8    #- 
     90-#-Q- lxiv8    NCDF_INC = /usr/local/install/netcdf-4.3.2p/include  
     91-#-Q- lxiv8    NCDF_LIB = -L/usr/local/install/netcdf-4.3.2p/lib -lnetcdff -lnetcdf 
     92+#-Q- lxiv8    NCDF_INC = $(shell nc-config --includedir) 
     93+#-Q- lxiv8    NCDF_LIB = -L$(shell nc-config --libdir) -lnetcdff -lnetcdf 
     94 #-Q- lxiv8    #- 
     95 #-Q- occigen  #- 
     96 #-Q- occigen  #- Global definitions for Curie at TGCC 
     97}}} 
     98 
     99Add the lines below into util/mod.def: 
     100  
     101{{{ 
     102#-H- ORCHIDEE_mict_latest  ORCHIDEE MICT offline configuration 
     103#-H- ORCHIDEE_mict_latest  This is a working configuration using the latest revision of ORCHIDEE mict 
     104#-M- ORCHIDEE_mict_latest  albert.jornet-puig@lsce.ipsl.fr 
     105#-C- ORCHIDEE_mict_latest  branches/ORCHIDEE-MICT/IOIPSL            HEAD    14 IOIPSL             modeles 
     106#-C- ORCHIDEE_mict_latest  trunk/libIGCM                            1487    10 libIGCM            . 
     107#-C- ORCHIDEE_mict_latest  branches/ORCHIDEE-MICT/ORCHIDEE          HEAD    14 ORCHIDEE           modeles 
     108#-C- ORCHIDEE_mict_latest  branches/ORCHIDEE-MICT/ORCHIDEE_OL       HEAD    14 ORCHIDEE_OL        config 
     109#-C- ORCHIDEE_mict_latest  XIOS/branchs/xios-2.5                    1550    12 XIOS               modeles 
     110 
     111#-H- ORCHIDEE_mict_tag890  ORCHIDEE MICT version 8.9.0 offline configuration 
     112#-H- ORCHIDEE_mict_tag890  This is a working configuration using the version 8.9.0 of ORCHIDEE mict 
     113#-M- ORCHIDEE_mict_tag890  albert.jornet-puig@lsce.ipsl.fr 
     114#-C- ORCHIDEE_mict_tag890  branches/ORCHIDEE-MICT/IOIPSL                    HEAD    14 IOIPSL             modeles 
     115#-C- ORCHIDEE_mict_tag890  trunk/libIGCM                                    1487    10 libIGCM            . 
     116#-C- ORCHIDEE_mict_tag890  branches/ORCHIDEE-MICT/tags/ORCHIDEE_MICT_8.9.0  HEAD    14 ORCHIDEE           modeles 
     117#-C- ORCHIDEE_mict_tag890  branches/ORCHIDEE-MICT/ORCHIDEE_OL               HEAD    14 ORCHIDEE_OL        config 
     118#-C- ORCHIDEE_mict_tag890  XIOS/branchs/xios-2.5                            1550    12 XIOS               modeles 
     119 
     120}}} 
     121 
     122Download the whole model by running the command (chose one): 
     123 
     124* Latest Orchidee MICT development: 
     125{{{ 
     126./model ORCHIDEE_mict_latest 
     127}}} 
     128 
     129* (preferred) Latest Orchidee MICT version: 
     130{{{ 
     131./model ORCHIDEE_mict_tag890 
     132}}} 
     133 
     134Install the Makefiles all across the model 
     135 
     136{{{ 
     137./ins_make 
     138}}} 
     139 
     140Go to XIOS 
     141{{{ 
     142cd ../modeles/XIOS 
     143}}} 
     144 
     145Modify the file according to (diff notation): 
     146 
     147{{{ 
     148[ajornet@obelix3 XIOS]$ svn diff 
     149Index: arch/arch-ifort_LSCE.path 
     150=================================================================== 
     151--- arch/arch-ifort_LSCE.path   (révision 1550) 
     152+++ arch/arch-ifort_LSCE.path   (copie de travail) 
     153@@ -1,6 +1,6 @@ 
     154-NETCDF_INCDIR="-I /usr/local/install/netcdf-4.3.2p/include" 
     155-NETCDF_LIBDIR="-L/usr/local/install/netcdf-4.3.2p/lib" 
     156-NETCDF_LIB="-lnetcdf -lnetcdff" 
     157-HDF5_INCDIR="-I /usr/local/install/hdf5-1.8.9p/include" 
     158-HDF5_LIBDIR="-L/usr/local/install/hdf5-1.8.9p/lib" 
     159-HDF5_LIB="-lhdf5_hl -lhdf5 -lhdf5 -lz -lcurl" 
     160+NETCDF_INCDIR=`nc-config --fflags` 
     161+NETCDF_LIBDIR=`nc-config --flibs` 
     162+NETCDF_LIB="" 
     163+HDF5_INCDIR="" 
     164+HDF5_LIBDIR="" 
     165+HDF5_LIB="" 
     166}}} 
     167 
     168Go to Orchidee 
     169{{{ 
     170cd ../ORCHIDEE 
     171}}} 
     172 
     173Apply this modification if it is not yet done: 
     174https://forge.ipsl.jussieu.fr/orchidee/changeset/6218/ 
     175 
     176= Old guide = 
     177 
    67178This guide assumes modipsl/ligIGCM is already download with the ORCHIDEE_trunk configuration: 
    68179 
    69180https://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/UserGuide/InstallingORCHIDEEBasic#ORCHIDEEtrunkversion 
    70181 
    71 The following steps describes what is required to change to compile Orchidee-MICT. 
     182It was meant to work with the default ORCHIDEE_trunk environment modules (netcdf/4p and hdf/1.8.9p). For that reason, if you are using other modules it might not work.  
     183 
     184The following steps describes what is required to change to compile Orchidee-MICT.  
    72185 
    73186== IOIPSL == 
     
    217330}}} 
    218331 
    219 Modify Makefile to include "-otherexec"  
    220 from 
     332Modify Makefile to include "-otherexec", from: 
    221333{{{ 
    222334... 
     
    231343}}} 
    232344 
    233 to 
     345to: 
    234346{{{ 
    235347... 
     
    246358Compile the whole model (IOIPSL, XIOS and Orchidee): 
    247359{{{ 
    248 gmake 
     360gmake clean && gmake 
    249361}}} 
    250362