Differences
This shows you the differences between two versions of the page.
noresm:runmodel:advancednoresm2 [2014-01-29 14:07:42] alfg |
noresm:runmodel:advancednoresm2 [2022-05-31 09:29:32] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Advanced configuration of NorESM2 test ===== | ||
- | |||
- | === Creating a new compset for use of CAM5-Oslo aerosols === | ||
- | |||
- | In this example we use the CESM1.2 compset FAMIPC5 (AMIP run with CAM5) as basis. | ||
- | If starting from fresh, include the new CAM5-Oslo on a new directory; | ||
- | |||
- | == ~/ | ||
- | |||
- | then add the new CAM5-Oslo capability by editing the following files: | ||
- | |||
- | == ~/ | ||
- | |||
- | Under " | ||
- | |||
- | " | ||
- | |||
- | At the end of the section starting with "The default physics package is cam5...", | ||
- | |||
- | #cam-oslo configuration | ||
- | my $cam_oslo=' | ||
- | my $cam_oslo_nadv = 0; | ||
- | # Check cam-oslo option | ||
- | if (defined $opts{' | ||
- | $cam_oslo=$opts{' | ||
- | } | ||
- | if($cam_oslo != ' | ||
- | die "only valid cam_oslo configuration is currently ' | ||
- | } | ||
- | if($cam_oslo eq ' | ||
- | $cam_oslo_nadv =23; | ||
- | } | ||
- | |||
- | At the end of the section starting with "User source directories", | ||
- | |||
- | #if cam_oslo is defined its source goes before the usr_sources | ||
- | if ($cam_oslo ne ' | ||
- | my @usr_src_dirs = split ',', | ||
- | unshift(@usr_src_dirs, | ||
- | my $usr_src_dirs_string = join(",", | ||
- | $cfg_ref-> | ||
- | } | ||
- | |||
- | At the end of the section starting with " | ||
- | |||
- | # | ||
- | if ($cam_oslo_nadv > 0){ | ||
- | $nadv += $cam_oslo_nadv; | ||
- | if($print >=2 ){ print " | ||
- | } | ||
- | |||
- | At the end of the section starting with "For the CPP tokens", | ||
- | |||
- | if ($cam_oslo eq ' | ||
- | $usr_cppdefs .= ' -DAERLIFE -DDIRIND'; | ||
- | } | ||
- | |||
- | The two chosen cppdefs options make sure that all code under "# | ||
- | so that both the CAM5-Oslo aerosol life cycle and its direct and indirect effects on climate are taken into account. | ||
- | |||
- | == ~/ | ||
- | |||
- | Under "< | ||
- | |||
- | <entry id=" | ||
- | Options for building cam-oslo | ||
- | </ | ||
- | |||
- | |||
- | == ~/ | ||
- | |||
- | Under "< | ||
- | |||
- | <COMPSET sname=" | ||
- | |||
- | |||
- | === Setting up a case with the new compset and building the model === | ||
- | |||
- | It should now be possible to create a new case directory, which we here name FAMIPOSLOtst | ||
- | and configure with 1 degree horizontal atmospheric resolution; | ||
- | |||
- | ./ | ||
- | |||
- | and finally set up and compile the model: | ||
- | |||
- | cd ../ | ||
- | ./ | ||
- | ./ | ||
- | |||