Changes between Version 1 and Version 2 of Documentation/UserGuide
- Timestamp:
- 2012-09-11T11:02:56+02:00 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide
v1 v2 8 8 This installation guide has been tested on a laptop computer using Ubuntu 12.04 version. 9 9 Softwares used : gcc (C compiler), gfortran (Fortran 90 compiler), subversion (version control system), netcdf 3.6.3 [[BR]] 10 Follow the steps and you will be able to compile and launch ORCHIDEE on a point to test it !10 Follow the steps and you will be able to compile and launch ORCHIDEE in sequential on a point to test it ! 11 11 12 == = 1. Installing netcdf library ===12 == 1. Installing netcdf library == 13 13 14 14 The most difficult part consists to install the netcdf library. The version chosen is netcdf 3.6.3 ; it is entirely sufficient … … 18 18 Open a terminal and type the following command (> represents the prompt) to download netcdf 3.6.3 : 19 19 {{{ 20 $wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-3.6.3.tar.gz20 > wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-3.6.3.tar.gz 21 21 }}} 22 22 Extract the archive : 23 23 {{{ 24 $tar -xvzf netcdf-3.6.3.tar.gz24 > tar -xvzf netcdf-3.6.3.tar.gz 25 25 }}} 26 26 A directory called netcdf-3.6.3 will be created. Go inside it : 27 27 {{{ 28 $cd netcdf-3.6.328 > cd netcdf-3.6.3 29 29 }}} 30 30 If you type ls, you will find : 31 31 {{{ 32 bash-3.2$ls32 > ls 33 33 acinclude.m4 config.guess configure cxx dods.m4 fortran libsrc Makefile.am man4 ncdump nc_test README 34 34 aclocal.m4 config.h.in configure.ac cxx4 examples INSTALL libsrc4 Makefile.in missing ncgen nc_test4 RELEASE_NOTES … … 40 40 41 41 {{{ 42 $./configure --disable-largefile --disable-cxx42 > ./configure --disable-largefile --disable-cxx 43 43 }}} 44 44 In my case, I deactivate the creation of large netcdf files (larger than 2 GB) with the option --disable-largefile. 45 I deactivate also the creation of netcdf libraries compatiblefor C++ because I don't need it.45 I also deactivate the creation of netcdf libraries for C++ because I don't need it. 46 46 But to create netcdf libraries for FORTRAN, you have to create netcdf libraries for C. 47 47 If you have a C compiler and a FORTRAN compiler, you will have no problems. 48 48 Now you need to be root user. If you are on Ubuntu system (or Debian), type : 49 49 {{{ 50 sudo su50 > sudo su 51 51 }}} 52 52 On Fedora : 53 53 {{{ 54 su54 > su 55 55 }}} 56 56 Enter your password then execute in the following order : 57 57 58 58 {{{ 59 make59 > make 60 60 }}} 61 ( compile netcdf on your computer.) 61 62 Then 63 {{{ 64 > make check 65 }}} 66 ( Test the buiding ) 67 and finally the installation : 62 68 63 69 {{{ 64 make check 65 }}} 66 67 and finally : 68 69 {{{ 70 make install 70 > make install 71 71 }}} 72 72 … … 102 102 103 103 {{{ 104 rm -rf netcdf-3.6.3 netcdf-3.6.3.tar.gz104 > rm -rf netcdf-3.6.3 netcdf-3.6.3.tar.gz 105 105 }}} 106 107 == 2. Installing ORCHIDEE == 108 109 After this hard task, you need to install the modipsl environment into MY_ORCHIDEE (you can change the name of this directory) : 110 {{{ 111 > svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk MY_ORCHIDEE 112 }}} 113 114 Then go to : 115 {{{ 116 > cd MY_ORCHIDEE/util 117 }}} 118 119 You can install a public version on your laptop. Execute : 120 121 {{{ 122 > ./model ORCHIDEE_TAG 123 }}} 124 If you are a developer of ORCHIDEE, you can download your own version with the script recup_my_ORCHIDEE (see SVN course for that). 125 Nearly the end ! Edit AA_make.gdef and replace the following line by : 126 {{{ 127 #-Q- gfortran F_C = gfortran -c 128 }}} 129 by 130 {{{ 131 #-Q- gfortran F_C = gfortran -c -cpp 132 133 }}} 134 and execute the script called ins_make : 135 {{{ 136 > ./ins_make -t gfortran 137 }}} 138 Then go to modeles/ORCHIDEE_OL : 139 {{{ 140 > cd ../modeles/ORCHIDEE_OL 141 }}} 142 and finally compile : 143 {{{ 144 > make; make teststomate; make forcesoil 145 }}} 146 147 CONGRATULATIONS, it's done ! 106 148 107 149