| 1 | = ORCHIDEE-HIGH-LATITUDES = |
| 2 | |
| 3 | This 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 | |
| 8 | This version needs specific options for compilation (Obelix + Titane only). [[BR]] |
| 9 | If 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]] |
| 10 | Without 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) |
| 13 | for_diags_intel.c:(.text+0xa38): relocation truncated to fit: |
| 14 | R_X86_64_PC32 against `tmp_ptr' |
| 15 | for_diags_intel.c:(.text+0xab9): relocation truncated to fit: |
| 16 | R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section |
| 17 | in |
| 18 | /applications/intel/cprof/11.1.056/lib/intel64/libifcore.a(for_diags_intel.o) |
| 19 | for_diags_intel.c:(.text+0xac2): relocation truncated to fit: |
| 20 | R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section |
| 21 | in |
| 22 | /applications/intel/cprof/11.1.056/lib/intel64/libifcore.a(for_diags_intel.o) |
| 23 | for_diags_intel.c:(.text+0xaf4): additional relocation overflows omitted |
| 24 | from the output |
| 25 | gmake[1]: *** [../../bin/orchidee_ol] Error 1 |
| 26 | gmake[1]: Leaving directory |
| 27 | `/home/cont003/p25krin/ORCHIDEE_HIGH_LAT/modipsl/modeles/ORCHIDEE_OL' |
| 28 | make: *** [orchidee_ol] Error 2 |
| 29 | |
| 30 | }}} |
| 31 | |
| 32 | In modipsl/util, edit AA_make.gdef and look for the host (lxiv8 for obelix and titane) and modify it. |
| 33 | Look 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 | }}} |
| 61 | After that, execute ./ins_make and compile it from modeles/ORCHIDEE_OL. The compilation should be OK. |
| 62 | |