Changes between Initial Version and Version 1 of DevelopmentActivities/ORCHIDEE-HIGH-LATITUDES


Ignore:
Timestamp:
2012-04-17T16:53:53+02:00 (12 years ago)
Author:
dsolyga
Comment:

Add notes about the compilation of ORCHIDEE-HIGH-LAT version

Legend:

Unmodified
Added
Removed
Modified
  • DevelopmentActivities/ORCHIDEE-HIGH-LATITUDES

    v1 v1  
     1= ORCHIDEE-HIGH-LATITUDES = 
     2 
     3This branch results from the merge of three versions developed by Isabelle Gouttevin (CWRR soil freezing hydrology), Charles Koven (permafrost soil carbon) and Bruno Ringeval (wetlands and methane emissions). 
     4 
     5 
     6== Notes on the compilation == 
     7 
     8This version needs specific options for compilation (Obelix + Titane only). [[BR]] 
     9If you use modipsl, you have to add the option -mcmodel=medium as an option of the compiler and to link by the option -mcmodel=medium -shared-intel.This option works on sequential and parallel mode. [[BR]] 
     10Without this option, you will have the following error message at the end of the compilation : 
     11{{{ 
     12/applications/intel/cprof/11.1.056/lib/intel64/libifcore.a(for_diags_intel.o) 
     13for_diags_intel.c:(.text+0xa38): relocation truncated to fit: 
     14R_X86_64_PC32 against `tmp_ptr' 
     15for_diags_intel.c:(.text+0xab9): relocation truncated to fit: 
     16R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section 
     17in 
     18/applications/intel/cprof/11.1.056/lib/intel64/libifcore.a(for_diags_intel.o) 
     19for_diags_intel.c:(.text+0xac2): relocation truncated to fit: 
     20R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section 
     21in 
     22/applications/intel/cprof/11.1.056/lib/intel64/libifcore.a(for_diags_intel.o) 
     23for_diags_intel.c:(.text+0xaf4): additional relocation overflows omitted 
     24from the output 
     25gmake[1]: *** [../../bin/orchidee_ol] Error 1 
     26gmake[1]: Leaving directory 
     27`/home/cont003/p25krin/ORCHIDEE_HIGH_LAT/modipsl/modeles/ORCHIDEE_OL' 
     28make: *** [orchidee_ol] Error 2 
     29 
     30}}} 
     31 
     32In modipsl/util, edit AA_make.gdef and look for the host (lxiv8 for obelix and titane) and modify it. 
     33Look at the following of a correct AA_make.gdef :  
     34{{{ 
     35#-Q- lxiv8    #- Global definitions for Intel compiler (ifort) at LSCE 
     36#-Q- lxiv8    M_K = gmake 
     37#-Q- lxiv8    P_C = cpp 
     38#-Q- lxiv8    P_O = -P -C $(P_P) 
     39#-Q- lxiv8    F_C = ifort -c -cpp 
     40#-Q- lxiv8    #-D- MD    F_D = -g 
     41#-Q- lxiv8    #-D- MN    F_D = 
     42#-Q- lxiv8    #-P- I4R4  F_P = -i4 
     43#-Q- lxiv8    #-P- I4R8  F_P = -i4 -r8 
     44#-Q- lxiv8    #-P- I8R8  F_P = -i8 -r8 
     45#-Q- lxiv8    F_O = -mcmodel=medium -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) 
     46#-Q- lxiv8    F_L = ifort -mcmodel=medium -shared-intel 
     47#-Q- lxiv8    M_M = 0 
     48#-Q- lxiv8    L_X = 0 
     49#-Q- lxiv8    L_O = -Vaxlib 
     50#-Q- lxiv8    A_C = ar -r 
     51#-Q- lxiv8    A_G = ar -x 
     52#-Q- lxiv8    C_C = cc -c 
     53#-Q- lxiv8    C_O = 
     54#-Q- lxiv8    C_L = cc 
     55#-Q- lxiv8    #- 
     56#-Q- lxiv8    NCDF_INC = /usr/local/include 
     57#-Q- lxiv8    NCDF_LIB = -L/usr/local/lib -lnetcdff -lnetcdf 
     58#-Q- lxiv8    #- 
     59 
     60}}} 
     61After that, execute ./ins_make and compile it from modeles/ORCHIDEE_OL. The compilation should be OK. 
     62