Skip to content

Commit

Permalink
Merge pull request #257 from rrbuchholz/main
Browse files Browse the repository at this point in the history
Updating chemistry exercises: correcting emission paths.
  • Loading branch information
cecilehannay authored Aug 7, 2024
2 parents 0442f52 + 102d2db commit fb63c32
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 64 deletions.
9 changes: 2 additions & 7 deletions notebooks/challenge/cam-chem_waccm/exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
"cells": [
{
"cell_type": "markdown",
"id": "arctic-workstation",
"metadata": {},
"source": [
"# 1: Control case: running with chemistry"
]
},
{
"cell_type": "markdown",
"id": "urban-jason",
"metadata": {},
"source": [
"\n",
Expand All @@ -31,7 +29,6 @@
},
{
"cell_type": "markdown",
"id": "animal-crash",
"metadata": {},
"source": [
"\n",
Expand Down Expand Up @@ -92,7 +89,6 @@
},
{
"cell_type": "markdown",
"id": "synthetic-reproduction",
"metadata": {},
"source": [
"\n",
Expand Down Expand Up @@ -234,15 +230,14 @@
{
"cell_type": "code",
"execution_count": null,
"id": "northern-agency",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -256,7 +251,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
11 changes: 3 additions & 8 deletions notebooks/challenge/cam-chem_waccm/exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
"cells": [
{
"cell_type": "markdown",
"id": "prepared-adaptation",
"metadata": {},
"source": [
"# 2: Test case: changing the chemistry"
]
},
{
"cell_type": "markdown",
"id": "sound-recovery",
"metadata": {},
"source": [
"\n",
Expand Down Expand Up @@ -46,7 +44,6 @@
},
{
"cell_type": "markdown",
"id": "daily-acting",
"metadata": {},
"source": [
"\n",
Expand All @@ -73,21 +70,20 @@
"(note this will be different for WACCM)\n",
" \n",
"- Use xmlchange to append a pointer to your user mechanism: <br>\n",
"``--usr_mech_infile `pwd`/my_chem_mech.in``\n",
"``./xmlchange --append CAM_CONFIG_OPTS=\"--usr_mech_infile `pwd`/my_chem_mech.in\"``\n",
" \n",
"- Check the ``CAM_CONFIG_OPTS`` has been changed <br>\n",
"``./xmlquery CAM_CONFIG_OPTS`` <br>\n",
"``CAM_CONFIG_OPTS: -phys cam6 -chem trop_strat_mam4_vbs -age_of_air_trcs --usr_mech_infile /glade/u/home/$USER/cases/$CASENAME/my_chem_mech.in``\n",
" \n",
"- You will need to reset the case setup, and rebuild before submitting\n",
"- When an important xml variable like CAM_CONFIG_OPTS is changed, resetting the setup is needed. You will need to reset the case setup, and rebuild before submitting. (Note that in general, you only need to reset or clean build when a message shows up in the command prompt stating to reset or clean build).\n",
"\n",
"</details>\n",
"</div>\n"
]
},
{
"cell_type": "markdown",
"id": "political-wages",
"metadata": {},
"source": [
"\n",
Expand Down Expand Up @@ -252,7 +248,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "alpha-politics",
"metadata": {},
"outputs": [],
"source": []
Expand All @@ -274,7 +269,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.1"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit fb63c32

Please sign in to comment.