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:06:19] alfg [Obtain CAM 5.3 source code] |
noresm:settingupcamonlinuxpc [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 13: | Line 13: | ||
(the first time it will use your unix user name.. Just type the wrong password, and then it will prompt you for another user name, then use the one provided by NCAR). | (the first time it will use your unix user name.. Just type the wrong password, and then it will prompt you for another user name, then use the one provided by NCAR). | ||
- | **To use the development version of CAM5-Oslo, check out NorESM from the noresm repository** | + | **To use the development version of CAM5-Oslo, check out NorESM |
< | < | ||
- | 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 109: | Line 109: | ||
</ | </ | ||
- | ===== Including cam-oslo code ===== | + | Finally |
- | + | ||
- | Some cam-oslo code has been preliminary ported to work in CAM 5.3 to run alongside CESM1.2. This code can be accessed with git using the command: | + | |
< | < | ||
- | git clone ssh:// | + | ./cam |
</ | </ | ||
- | (Execute the command from ~/ | ||
- | **The git repository | + | |
+ | NOTE: In CAM5.5 (upcoming versions) this same procedure | ||
< | < | ||
- | svn checkout https:// | + | $camcfg/configure -fc gfortran -fc_type gnu -debug -nospmd -nosmp -dyn fv -res 10x15 -ice sice -phys cam5 |
</ | </ | ||
- | **In order to include CAM-Oslo code you need to change the config-options: | + | ===== Including cam-oslo code ===== |
+ | |||
+ | This assumes | ||
+ | |||
+ | 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 144: | 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 168: | Line 172: | ||
Save the xml-file to the use_cases directory as " | Save the xml-file to the use_cases directory as " | ||
+ | < | ||
$camcfg/ | $camcfg/ | ||
+ | </ | ||
< | < |