Skip to content

Commit

Permalink
Merge pull request #242 from cecilehannay/main
Browse files Browse the repository at this point in the history
update reservation queue through various notebooks
  • Loading branch information
cecilehannay authored Aug 1, 2024
2 parents bc0fea4 + adfe523 commit 4c3af34
Show file tree
Hide file tree
Showing 172 changed files with 30,673 additions and 37 deletions.
4 changes: 2 additions & 2 deletions notebooks/challenge/cam-chem_waccm/exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@
"**# Change the job queue and account number**\n",
"\n",
"**If needed**, change ``job queue`` and ``account number``.<br>\n",
"For instance, to run in the queue ``regular`` and the tutorial project number ``UESM0013``\n",
"For instance, to run in the queue ``tutorial`` and the tutorial project number ``UESM0013``\n",
"``` \n",
"cd $CASEDIR\n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"This step can be redone at anytime in the process. \n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/challenge/cam-chem_waccm/exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@
"**# Change the job queue and account number**\n",
"\n",
"**If needed**, change ``job queue`` and ``account number``.<br>\n",
"For instance, to run in the queue ``regular`` and the project number ``UESM0013``\n",
"For instance, to run in the queue ``tutorial`` and the project number ``UESM0013``\n",
"``` \n",
"cd $CASEDIR\n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"This step can be redone at anytime in the process. \n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/challenge/cam-chem_waccm/exercise_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@
"**# Change the job queue and account number**\n",
"\n",
"**If needed**, change ``job queue`` and ``account number``.<br>\n",
"For instance, to run in the queue ``regular`` and the project number ``UESM0013``\n",
"For instance, to run in the queue ``tutorial`` and the project number ``UESM0013``\n",
"``` \n",
"cd $CASEDIR\n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"This step can be redone at anytime in the process. \n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/challenge/cam/exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@
"**# Change the job queue and account number**\n",
"\n",
"If needed, change ``job queue`` and ``account number``.<br>\n",
"For instance, to run in the queue ``regular`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"For instance, to run in the queue ``tutorial`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"``` \n",
"cd $CASEDIR\n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"This step can be redone at anytime in the process. \n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/challenge/cam/exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@
"**# Change the job queue and account number**\n",
"\n",
"If needed, change ``job queue`` and ``account number``.<br>\n",
"For instance, to run in the queue ``regular`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"For instance, to run in the queue ``tutorial`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"``` \n",
"cd $CASEDIR\n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"This step can be redone at anytime in the process. \n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/challenge/cam/exercise_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@
"**# Change the job queue and account number**\n",
"\n",
"If needed, change ``job queue`` and ``account number``.<br>\n",
"For instance, to run in the queue ``regular`` and the project number ``UESM0013``\n",
"For instance, to run in the queue ``tutorial`` and the project number ``UESM0013``\n",
"``` \n",
"cd $CASEDIR\n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"This step can be redone at anytime in the process. \n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/challenge/cam/exercise_4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@
"**# Change the job queue and account number**\n",
"\n",
"If needed, change ``job queue`` and ``account number``.<br>\n",
"For instance, to run in the queue ``regular`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"For instance, to run in the queue ``tutorial`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"``` \n",
"cd $CASEDIR\n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"This step can be redone at anytime in the process. \n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/challenge/cam/exercise_5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@
"**# Change the job queue and account number**\n",
"\n",
"If needed, change ``job queue`` and ``account number``.<br>\n",
"For instance, to run in the queue ``regular`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"For instance, to run in the queue ``tutorial`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"``` \n",
"cd $CASEDIR\n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"This step can be redone at anytime in the process. \n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/challenge/cam/exercise_6.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@
"**# Change the job queue and account number**\n",
"\n",
"If needed, change ``job queue`` and ``account number``.<br>\n",
"For instance, to run in the queue ``regular`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"For instance, to run in the queue ``tutorial`` and the project number ``UESM0013``. You should use the project number given for this tutorial.\n",
"``` \n",
"cd $CASEDIR\n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"This step can be redone at anytime in the process. \n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/cice/cice_exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"<br>\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/cice/cice_exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"<br>\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/cice/cice_exercise_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"<br>\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/cism/cism_exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"\n",
"Modify the environment variables:\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/clm_ctsm/clm_exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"If needed, change <font face=\"Courier\" color='purple'><strong>job queue</strong></font>, <font face=\"Courier\" color='purple'><strong>account number</strong></font>, or <font face=\"Courier\" color='purple'><strong>wallclock time</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013,JOB_WALLCLOCK_TIME=0:15:00\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013,JOB_WALLCLOCK_TIME=0:15:00\n",
"```\n",
"<br>\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/clm_ctsm/clm_exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"If needed, change <font face=\"Courier\" color='purple'><strong>job queue</strong></font>, <font face=\"Courier\" color='purple'><strong>account number</strong></font>, or <font face=\"Courier\" color='purple'><strong>wallclock time</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013,JOB_WALLCLOCK_TIME=0:15:00\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013,JOB_WALLCLOCK_TIME=0:15:00\n",
"```\n",
"<br>\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/clm_ctsm/clm_exercise_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"If needed, change <font face=\"Courier\" color='purple'><strong>job queue</strong></font>, <font face=\"Courier\" color='purple'><strong>account number</strong></font>, or <font face=\"Courier\" color='purple'><strong>wallclock time</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013,JOB_WALLCLOCK_TIME=0:15:00\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013,JOB_WALLCLOCK_TIME=0:15:00\n",
"```\n",
"<br>\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/mom/mom_exercise_5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"<br>\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/pop/pop_exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"<br>\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/pop/pop_exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"\n",
"Build and submit:\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/pop/pop_exercise_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"\n",
"Build and submit:\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/challenge/pop/pop_exercise_4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"\n",
"Build and submit:\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/namelist/exercises/exercise_cam_output.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"If needed, change `job queue` and `account number`. <br>\n",
"For instance, to run in the queue `regular` and the project number ``UESM0013`` (You should use the project number given for this tutorial), use the command:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"\n",
"**# Build and submit**\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"If needed, change `job queue` and `account number`. <br>\n",
"For instance, to run in the queue `regular` and the project number `UESM0013`, use the command:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/resources/profile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"\n",
"- If (Wed at another time) then\n",
"```\n",
"./xmlchange JOB_QUEUE=regular\n",
"./xmlchange JOB_QUEUE=tutorial\n",
"```\n",
"\n",
"If you do use these commands, make sure for the `JOB_QUEUE` you are using the **correct** reservation code for the relevant day _and_ time of that lab session. You should not have to set the `PROJECT` more than once during the tutorial if your profile is set up, as described below, but we include it for your reference in case you are having trouble."
Expand Down
2 changes: 1 addition & 1 deletion notebooks/resources/tutorial_specific.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
"\n",
"Copy over the `.tcshrc` file to your home directory:\n",
"```\n",
"cp /glade/campaign/cesm/tutorial/tutorial_2024_envy/tcshrc ~/.tcshrc\n",
"cp /glade/campaign/cesm/tutorial/tutorial_2024_env/tcshrc ~/.tcshrc\n",
"```\n",
" \n",
"<br>\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/sourcemods/exercises/exercise_add_field.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"For instance, to run in the queue `regular` and the project number `UESM0013`, use the command:\n",
"\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"\n",
"**# Build and submit**\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"If needed, change `job queue` and `account number` \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"\n",
"Build and submit:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"For instance, to run in the queue `regular` and the project number ``UESM0013`` (you should use the project number given for this tutorial), use the command:\n",
"\n",
"``` \n",
"./xmlchange JOB_QUEUE=regular,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"```\n",
"\n",
"**# Build and submit**\n",
Expand Down
109 changes: 109 additions & 0 deletions notebooks_copy/basics/basics_overview.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "b2cd974a-dfbb-4937-8ed0-ab87ab60f1ef",
"metadata": {},
"source": [
"# Basics"
]
},
{
"cell_type": "markdown",
"id": "9db9d54e-ef78-44ef-a003-4ddd8a416317",
"metadata": {},
"source": [
"The CESM Model is developed around a structured workflow. The first step of this workflow is to set up your workspace, which is usually a one-time task. After setting up your workspace, a basic CESM simulation can be run with only four commands. This section will cover these steps and enable you to complete your first CESM run."
]
},
{
"cell_type": "markdown",
"id": "e2abf5cb-c507-408e-8f2a-2fd12934873d",
"metadata": {},
"source": [
"## Workflow Elements"
]
},
{
"cell_type": "markdown",
"id": "acfe09a5-e3ee-457a-a328-bde665cfe761",
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
"<div class=\"alert alert-info\" style=\"text-align: left;\">\n",
"\n",
"- Set up workspace (one time setup)\n",
" - **``Download``** the CESM code\n",
" - **``Create or Locate ``** an **``Input Data``** Root Directory\n",
" - Possibly **``Porting``** if not on a setup machine\n",
"- Creating, Running and Reviewing a Case\n",
" - **``Create``** a new case\n",
" - **``Invoke``** `case.setup`\n",
" - **``Build``** the executable with `case.build`\n",
" - **``Run``** the model with `case.submit`\n",
" - **``Review``** output data\n",
"\n",
"</div>"
]
},
{
"cell_type": "markdown",
"id": "0c07b51d-f999-4737-9739-3ea989f20802",
"metadata": {},
"source": [
"## Setting up your environment"
]
},
{
"cell_type": "markdown",
"id": "9d6954eb-3505-4a58-b6fa-bea7047c63cf",
"metadata": {},
"source": [
"Every time you log onto the NCAR HPC you want to ensure you have the correct modules loaded. Please refer to the [NCAR HPC environment](https://ncar.github.io/CESM-Tutorial/notebooks/resources/profile.html#setting-up-your-ncar-hpc-environment) section to make sure you are setting up your environment properly. \n",
"\n",
"**YOU SHOULD ENSURE YOU CHECK THIS EVERY TIME YOU ARE BUILDING A NEW CASE**\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "523165e7-728b-4305-b9f7-4e6ee530a27d",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "715674b2-a858-49ae-b044-7f7fc61a750c",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
},
"toc-showcode": false
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading

0 comments on commit 4c3af34

Please sign in to comment.