Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
noresm:settingupcamonlinuxpc [2015-06-08 13:39:40] alfg [Including cam-oslo code] |
noresm:settingupcamonlinuxpc [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
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 | ||
- | Works with latest version of " | + | Works with latest version of oslo aerosol development |
< | < | ||
| | ||
Line 140: | 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:// | ||