Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
noresm:settingupcamonlinuxpc [2014-03-05 12:10:04] alfg [Compile CAM on your Linux PC] |
noresm:settingupcamonlinuxpc [2022-05-31 09:29:32] (current) |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| **To use the development version of CAM5-Oslo, check out NorESM (not CESM) from the noresm repository** | **To use the development version of CAM5-Oslo, check out NorESM (not CESM) from the noresm repository** | ||
| < | < | ||
| - | svn checkout https:// | + | svn checkout https:// |
| </ | </ | ||
| ===== Compile the netcdf libraries using gfortran ===== | ===== Compile the netcdf libraries using gfortran ===== | ||
| Line 51: | Line 51: | ||
| * export CXXFLAGS=-O0 | * export CXXFLAGS=-O0 | ||
| - | The netcdf c-library complains about a non-successful compilation because it can not find Doxyfile. This is not important. | + | The netcdf c-library complains about a non-successful compilation because it can not find Doxyfile. This is not important. |
| 3) Get the netcdf source code (including the c-headers) from | 3) Get the netcdf source code (including the c-headers) from | ||
| Line 59: | Line 59: | ||
| c) make install | c) make install | ||
| - | 4) Get fortran netcdf api (http:// | + | 4) Get fortran netcdf api (http:// |
| http:// | http:// | ||
| Line 81: | Line 81: | ||
| * export CSMDATA=/ | * export CSMDATA=/ | ||
| - | This command | + | This command |
| < | < | ||
| Line 87: | Line 87: | ||
| </ | </ | ||
| - | As long as $camcfg is defined, you can execute this from any directory.. | + | **As long as $camcfg is defined, you can execute this from any directory..** |
| - | Then you need the following commands | + | Then you need the following commands |
| < | < | ||
| $camcfg/ | $camcfg/ | ||
| Line 112: | Line 112: | ||
| < | < | ||
| ./cam | ./cam | ||
| + | </ | ||
| + | |||
| + | |||
| + | NOTE: In CAM5.5 (upcoming versions) this same procedure is supposed to work with the following command (NOT VERIFIED): | ||
| + | < | ||
| + | $camcfg/ | ||
| </ | </ | ||
| Line 118: | Line 124: | ||
| This assumes you checked out NorESM (and CESM) with subversion | This assumes you checked out NorESM (and CESM) with subversion | ||
| - | **In order to include CAM-Oslo code you need to change the config-options: | + | Works with latest version of oslo aerosol development branch |
| < | < | ||
| - | | + | |
| </ | </ | ||
| + | |||
| There are additional input needed for the CAM-Oslo code. They are available in the same input-directory as the normal CESM-input files. | There are additional input needed for the CAM-Oslo code. They are available in the same input-directory as the normal CESM-input files. | ||
| Line 139: | Line 146: | ||
| gdb has problems with printing info about allocatable arrays. Allocatable arrays have to be displayed as " | gdb has problems with printing info about allocatable arrays. Allocatable arrays have to be displayed as " | ||
| + | |||
| + | It is sometimes useful to let the compiler tell you about additional errors. Assuming you use gfortran on your PC: See https:// | ||
| Line 163: | Line 172: | ||
| Save the xml-file to the use_cases directory as " | Save the xml-file to the use_cases directory as " | ||
| + | < | ||
| $camcfg/ | $camcfg/ | ||
| + | </ | ||
| < | < | ||