Changes between Version 1 and Version 2 of Documentation/UserGuide


Ignore:
Timestamp:
2012-09-11T11:02:56+02:00 (12 years ago)
Author:
dsolyga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide

    v1 v2  
    88This installation guide has been tested on a laptop computer using Ubuntu 12.04 version. 
    99Softwares 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 ! 
     10Follow the steps and you will be able to compile and launch ORCHIDEE in sequential on a point to test it ! 
    1111 
    12 === 1. Installing netcdf library === 
     12== 1. Installing netcdf library == 
    1313 
    1414The most difficult part consists to install the netcdf library. The version chosen is netcdf 3.6.3 ; it is entirely sufficient  
     
    1818Open a terminal and type the following command (> represents the prompt) to download netcdf 3.6.3 :  
    1919{{{ 
    20     $   wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-3.6.3.tar.gz 
     20    >   wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-3.6.3.tar.gz 
    2121}}} 
    2222Extract the archive : 
    2323{{{ 
    24     $    tar -xvzf netcdf-3.6.3.tar.gz 
     24    >    tar -xvzf netcdf-3.6.3.tar.gz 
    2525}}} 
    2626A directory called netcdf-3.6.3 will be created. Go inside it : 
    2727{{{ 
    28     $    cd  netcdf-3.6.3 
     28    >    cd  netcdf-3.6.3 
    2929}}} 
    3030If you type ls, you will find : 
    3131{{{ 
    32 bash-3.2$ ls 
     32    > ls 
    3333acinclude.m4  config.guess  configure     cxx      dods.m4   fortran     libsrc     Makefile.am  man4      ncdump  nc_test   README 
    3434aclocal.m4    config.h.in   configure.ac  cxx4     examples  INSTALL     libsrc4    Makefile.in  missing   ncgen   nc_test4  RELEASE_NOTES 
     
    4040 
    4141{{{ 
    42       $  ./configure  --disable-largefile --disable-cxx 
     42      >  ./configure  --disable-largefile --disable-cxx 
    4343}}} 
    4444In 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 compatible for C++ because I don't need it.  
     45I also deactivate the creation of netcdf libraries for C++ because I don't need it.  
    4646But to create netcdf libraries for FORTRAN, you have to create netcdf libraries for C. 
    4747If you have a C compiler and a FORTRAN compiler, you will have no problems. 
    4848Now you need to be root user. If you are on Ubuntu system (or Debian), type : 
    4949{{{ 
    50     sudo su 
     50      >  sudo su 
    5151}}} 
    5252On Fedora : 
    5353{{{ 
    54     su 
     54      >  su 
    5555}}} 
    5656Enter your password then execute in the following order : 
    5757 
    5858{{{ 
    59      make 
     59      > make 
    6060}}} 
     61( compile netcdf on your computer.) 
    6162Then 
     63{{{ 
     64      > make check 
     65}}} 
     66( Test the buiding ) 
     67and finally the installation : 
    6268 
    6369{{{ 
    64     make check 
    65 }}} 
    66  
    67 and finally : 
    68  
    69 {{{ 
    70    make install 
     70      > make install 
    7171}}} 
    7272 
     
    102102 
    103103{{{ 
    104    rm -rf netcdf-3.6.3  netcdf-3.6.3.tar.gz 
     104     >  rm -rf netcdf-3.6.3  netcdf-3.6.3.tar.gz 
    105105}}} 
     106 
     107== 2. Installing ORCHIDEE == 
     108 
     109After 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 
     114Then go to : 
     115{{{ 
     116      >  cd MY_ORCHIDEE/util 
     117}}} 
     118 
     119You can install a public version on your laptop. Execute : 
     120 
     121{{{ 
     122      > ./model ORCHIDEE_TAG 
     123}}} 
     124If you are a developer of ORCHIDEE, you can download your own version with the script recup_my_ORCHIDEE (see SVN course for that). 
     125Nearly the end ! Edit AA_make.gdef and replace the following line by : 
     126{{{ 
     127#-Q- gfortran  F_C = gfortran -c 
     128}}} 
     129by  
     130{{{ 
     131#-Q- gfortran  F_C = gfortran -c -cpp 
     132 
     133}}} 
     134and execute the script called ins_make : 
     135{{{ 
     136    >  ./ins_make -t gfortran 
     137}}} 
     138Then go to modeles/ORCHIDEE_OL : 
     139{{{ 
     140    >  cd ../modeles/ORCHIDEE_OL 
     141}}} 
     142and finally compile : 
     143{{{ 
     144   >  make; make teststomate; make forcesoil 
     145}}} 
     146 
     147CONGRATULATIONS, it's done ! 
    106148 
    107149