Changes between Version 37 and Version 38 of doc/tec/radiation


Ignore:
Timestamp:
Jun 15, 2016 12:33:43 PM (9 years ago)
Author:
maronga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/radiation

    v37 v38  
    164164The RRTMG source code for creating an external library can be found under [source:palm/trunk/LIB/rrtmg trunk/LIB/rrtmg]. It is accompanied by an installation script called [source:palm/trunk/LIB/rrtmg/install_rrtmg install_rrtmg]. In order to install RRTMG, perform the following steps:
    165165
    166 1. Copy all files from [source:palm/trunk/LIB/rrtmg trunk/LIB/rrtmg] to the host where PALM/RRTMG shall be executed, e.g. {{{$HOME/palm/rrtmg}}}. The installation will not work if you try to install it from the source directory.
     1661. Copy all files from [source:palm/trunk/LIB/rrtmg trunk/LIB/rrtmg] to the host where PALM/RRTMG shall be executed, e.g. {{{$HOME/lib/rrtmg}}}. The installation will not work if you try to install it from the source directory.
    1671672. Open [source:palm/trunk/LIB/rrtmg/install_rrtmg install_rrtmg] and modify the following lines:
    168168{{{
     
    176176 compile_shared_debug=false
    177177}}}
    178   For a proper configuration, see your .mrun.config file for the respective computer architecture where RRTMG shall be installed. fopts_trace is only required if you want to have debug options enabled.
    179   Use the switch parameters  compile_static=true, compile_shared=true, compile_static_debug=false, and compile_shared_debug=false to set flags for compilation of RRTMG as static library, shared library (recommended), static library with debug options (recommended), and shared library with debug options, respectively. Save your changes.
     178  For a proper configuration, see your .mrun.config file for the respective computer architecture where RRTMG shall be installed. Also, add the path to the netCDF library. fopts_trace is only required if you want to have debug options enabled.
     179  Use the switch parameters compile_static=true, compile_shared=true, compile_static_debug=false, and compile_shared_debug=false to set flags for compilation of RRTMG as static library, shared library (recommended), static library with debug options (recommended), and shared library with debug options, respectively. Save your changes.
    180180
    181181
     
    184184./install_rrtmg -p $HOME/lib/rrtmg
    185185}}}
    186   The script will create up to four directories depening on the setting of the flag parameters (see above), each including one installation of RRTMG:
     186  The script will create up to four directories depending on the setting of the flag parameters (see above), each including one installation of RRTMG:
    187187{{{
    188188$HOME/lib/rrtmg/shared
     
    212212}}}
    213213
    214 5. Recompile PALM for the respective host. The RRTMG library will be included either as static or shared library, depending on your configuration.
    215 
    216 6. To be able to use RRTMG, the LD_LIBRARY_PATH variable has to be extended by the path where RRTMG library (plus "/lib" added) was installed. For convenience, setting should be done in the respective profile of the users default shell (e.g. in .profile, if ksh is used), e.g.:
     2145. To be able to use RRTMG, the LD_LIBRARY_PATH variable has to be extended by the path where RRTMG library (plus "/lib" added) was installed. For convenience, setting should be done in the respective profile of the users default shell (e.g. in .profile, if ksh is used), e.g.:
    217215{{{
    218216  export LD_LIBRARY_PATH=$HOME/lib/rrtmg/shared/lib:$LD_LIBRARY_PATH
    219217}}}
    220 when RRTMG was installed as shared library under "$HOME/lib/rrtmg/shared/".
    221 
    222 
    223 You may have to login again in order to activate the profile settings.
     218when RRTMG was installed as shared library under "$HOME/lib/rrtmg/shared/". You may have to login again in order to activate the profile settings.
     219
     2206. Recompile PALM for the respective host. The RRTMG library will be included either as static or shared library, depending on your configuration.
    224221
    225222