Changes between Version 37 and Version 38 of doc/tec/radiation
- Timestamp:
- Jun 15, 2016 12:33:43 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
doc/tec/radiation
v37 v38 164 164 The 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: 165 165 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.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/lib/rrtmg}}}. The installation will not work if you try to install it from the source directory. 167 167 2. Open [source:palm/trunk/LIB/rrtmg/install_rrtmg install_rrtmg] and modify the following lines: 168 168 {{{ … … 176 176 compile_shared_debug=false 177 177 }}} 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 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. 180 180 181 181 … … 184 184 ./install_rrtmg -p $HOME/lib/rrtmg 185 185 }}} 186 The script will create up to four directories depen ing 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: 187 187 {{{ 188 188 $HOME/lib/rrtmg/shared … … 212 212 }}} 213 213 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.: 214 5. 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.: 217 215 {{{ 218 216 export LD_LIBRARY_PATH=$HOME/lib/rrtmg/shared/lib:$LD_LIBRARY_PATH 219 217 }}} 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. 218 when 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 220 6. Recompile PALM for the respective host. The RRTMG library will be included either as static or shared library, depending on your configuration. 224 221 225 222