-
Notifications
You must be signed in to change notification settings - Fork 353
Convert READMEs to markdown #3816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
slevis-lmwg
wants to merge
44
commits into
ESCOMP:b4b-dev
Choose a base branch
from
slevis-lmwg:readmes_to_md
base: b4b-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
896e3da
Covert README.CHECKLIST.new_case.md to markdown
slevis-lmwg 58dbce5
Remove README.CHECKLIST.new_case now that I added markdown version
slevis-lmwg 0df9a7b
Convert README_GITFLEXIMOD.rst to README_GITFLEXIMOD.md
slevis-lmwg 8c0d6eb
Apply suggestion from @slevis-lmwg
slevis-lmwg 06b3fae
Apply suggestion from @slevis-lmwg
slevis-lmwg 6f44d78
Apply suggestion from @slevis-lmwg
slevis-lmwg 1e8ebd3
Apply suggestion from @slevis-lmwg
slevis-lmwg 748d1e8
Updates to README
slevis-lmwg ccb8e4b
Replace README with README_on_CTSM.md
slevis-lmwg 04bd3cc
Merge branch 'b4b-dev' into readmes_to_md
slevis-lmwg dbd84e7
Formatting corrections to markdown file
slevis-lmwg 5649db2
Formatting update to the same markdown file (README_on_CTSM.md)
slevis-lmwg 6285c40
Replace another README with README.md
slevis-lmwg cd5792f
Replace one more README with README.md
slevis-lmwg 4d863f6
Replace another README with README.md
slevis-lmwg 769a5b2
Formatting correction to latest README.md
slevis-lmwg 91612e3
Formatting correction (2nd attempt)
slevis-lmwg 80ca017
Formatting corrections (3rd)
slevis-lmwg a972423
Formatting corrections (4th)
slevis-lmwg 31641ba
Formatting corrections (5th)
slevis-lmwg 2f40fb3
Formatting corrections (6th)
slevis-lmwg f7463b8
Replace README.unit_testing with README.unit_testing.md
slevis-lmwg 5b91272
Replace one more README with README.md
slevis-lmwg d8d58a7
Replace README.filecopies with README.filecopies.md
slevis-lmwg 1ca5c3e
Replace README.fsurdat_modifier, README.mesh_mask_modifier w md versions
slevis-lmwg 9953a12
Formatting corrections to the two most recenty committed .md files
slevis-lmwg 190a95a
Formatting corrections (2nd)
slevis-lmwg b02a4d2
Putting back README.unit_testing
slevis-lmwg 7973009
Formatting corrections (3rd)
slevis-lmwg aa651b9
Merge branch 'b4b-dev' into readmes_to_md
slevis-lmwg 7838aba
Merge branch 'b4b-dev' into readmes_to_md
slevis-lmwg 6edf80e
Apply suggestion from https://github.com/ESCOMP/CTSM/pull/3816#discus…
slevis-lmwg d7b0e90
Merge branch 'b4b-dev' into readmes_to_md
slevis-lmwg f2f90cd
Restore heading as suggested in https://github.com/ESCOMP/CTSM/pull/3…
slevis-lmwg e860a4d
Change according to suggestion https://github.com/ESCOMP/CTSM/pull/38…
slevis-lmwg 21fe960
Change according to same https://github.com/ESCOMP/CTSM/pull/3816#dis…
slevis-lmwg 0fe719f
Apply suggestion from https://github.com/ESCOMP/CTSM/pull/3816#discus…
slevis-lmwg e763f1c
Replace README_GITFLEXIMOD.rst with README_GITFLEXIMOD.md using pandoc
slevis-lmwg 6a6e452
Replace README.python_pkgs.rst with README.python_pkgs.md
slevis-lmwg 0ac34cd
Fix references to README file that should have been README.md
slevis-lmwg 7e0f99e
Replace README.unit_testing with README.unit_testing.md
slevis-lmwg 89a65a1
Fix reference to another README that should have been README.md
slevis-lmwg e7bfa84
Remove creating-domain-files.rst as not needed with nuopc
slevis-lmwg 73cd625
Put back creating-domain-files.rst; should not have removed in this PR
slevis-lmwg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| $CTSMROOT/README.CHECKLIST.new\_case 03/01/2021 | ||
|
|
||
| This is a check list of things to do when setting up a new case in order to help ensure everything is correct. There are lots of tiny details that need to be right and it's easy to get something wrong. So the first screening to make sure it's right is for you to carefully check through your case and make sure it's right. | ||
|
|
||
| The following assumes you have created a new case and are in it's case directory. | ||
|
|
||
| General Checklist to always do: | ||
|
|
||
| - Make sure CLM\_ env settings are correct: ./xmlquery \-p CLM | ||
| - Make sure you are using the correct CLM\_PHYSICS\_VERSION: ./xmlquery \-p CLM\_PHYSICS\_VERSION | ||
| - Make sure you are running the appropriate overall CLM vegetation model, i.e. the "-bgc" option of either Satellite Phenology (sp) or Full BioGeoChemistry (bgc) or FATES (fates): ./xmlquery \-p CLM\_BLDNML\_OPTS | ||
| - If you are running the bgc model, check to see if you should be running the prognostic crop model: option \-crop in CLM\_BLDNML\_OPTS | ||
| - Make sure the LND\_TUNING\_MODE is correct: ./xmlquery LND\_TUNING\_MODE | ||
| - For an "I compset" make sure you are running over the correct forcing years: usually ./xmlquery \-p DATM\_YR | ||
| - For an "I compset" make sure the DATM streams are operating over the correct years: look at the CaseDocs/datm.streams.xml file | ||
| - First and align year for streams should be the start year of a historical simulation: ./xmlquery RUN\_STARTDATE; grep stream\_year\_first CaseDocs/lnd\_in; grep model\_year\_align CaseDocs/lnd\_in | ||
| - Last year for streams should be the last year you are going to run to (or beyond it): grep stream\_year\_last CaseDocs/lnd\_in | ||
| - Make sure you are starting from appropriate spunup initial conditions: | ||
| - Check the run-type with: ./xmlquery RUN\_TYPE | ||
| - Check finidat for a startup or hybrid simulation: grep finidat CaseDocs/lnd\_in | ||
| - Check nrevsn for a branch simulation: grep nrevsn CaseDocs/lnd\_in | ||
| - Run for a month (or some short period) and go over the log files and especially the settings and files read in them: for an I case you especially want to look at the lnd.log and atm.log files | ||
|
|
||
| Some other suggestions on things that can be done: | ||
|
|
||
| - Compare namelist files to an existing case if you are doing something almost the same as a previous simulation | ||
| - Ask another collaborator to look over your case directory |
|
slevis-lmwg marked this conversation as resolved.
slevis-lmwg marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| # Obtaining the full model code and associated scripting infrastructure | ||
|
|
||
| CTSM is released via GitHub. You will need some familiarity with git in order | ||
| to modify the code and commit these changes. However, to simply checkout and run the | ||
| code, no git knowledge is required other than what is documented in the following steps. | ||
|
|
||
| To obtain the CTSM code you need to do the following: | ||
|
|
||
| 1. Clone the repository. : | ||
|
|
||
| git clone https://github.com/ESCOMP/CTSM.git my_ctsm_sandbox | ||
|
|
||
| This will create a directory `my_ctsm_sandbox/` in your current working directory. | ||
|
|
||
| 2. Run **./bin/git-fleximod update**. : | ||
|
|
||
| cd my_ctsm_sandbox | ||
| ./bin/git-fleximod update | ||
| ./bin/git-fleximod --help # for a user's guide | ||
|
|
||
| **git-fleximod** is a package manager that will | ||
| populate the ctsm directory with the relevant versions of each of the | ||
| components along with the CIME infrastructure code. | ||
| Additional documentation for git-fleximod appears here: | ||
| <https://github.com/ESMCI/git-fleximod?tab=readme-ov-file#git-fleximod> | ||
|
|
||
| \"components\" here refers to seperate git repositories for seperable parts of | ||
| the code (such as the MOSART or mizuRoute river models). Because they are | ||
| managed with \"submodule\" in git hereafter we will refer to them as \"submodule(s)\". | ||
|
|
||
| At this point you have a working version of CTSM. | ||
|
|
||
| To see full details of how to set up a case, compile and run, see the CIME documentation at <http://esmci.github.io/cime/> . | ||
|
|
||
| ## More details on git-fleximod | ||
|
|
||
| The file **.gitmodules** in your top-level CTSM directory tells | ||
| **git-fleximod** which tag/branch of each submodule | ||
| should be brought in to generate your sandbox. | ||
|
|
||
| NOTE: If you manually modify a submodule without updating .gitmodules, | ||
| e.g. switch to a different tag, then rerunning git-fleximod will warn you of | ||
| local changes you need to resolve. | ||
| git-fleximod will not change a modified submodule back to what is specified in | ||
| .gitmodules without the \--force option. | ||
| See below documentation [Customizing your CTSM sandbox](#customizing-your-ctsm-sandbox) for more details. | ||
|
|
||
| **You need to rerun git-fleximod whenever .gitmodules has | ||
| changed** (unless you have already manually updated the relevant | ||
| submodule(s) to have the correct branch/tag checked out). Common times | ||
| when this is needed are: | ||
|
|
||
| - After checking out a new CTSM branch/tag | ||
| - After merging some other CTSM branch/tag into your currently | ||
| checked-out branch | ||
|
|
||
| # Customizing your CTSM sandbox | ||
|
|
||
| There are several use cases to consider when you want to customize or modify your CTSM sandbox. | ||
|
|
||
| ## Switching to a different CTSM branch or tag | ||
|
|
||
| If you have already checked out a branch or tag and **HAVE NOT MADE ANY | ||
| MODIFICATIONS** it is simple to change your sandbox. Say that you | ||
| checked out ctsm5.2.0 but really wanted to have ctsm5.3.0; | ||
| you would simply do the following: | ||
|
|
||
| git checkout ctsm5.3.0 | ||
| ./bin/git-fleximod update | ||
|
|
||
| You should **not** use this method if you have made any source code | ||
| changes, or if you have any ongoing CTSM cases that were created from | ||
| this sandbox. In these cases, it is often easiest to do a second **git | ||
| clone**. | ||
|
|
||
| ## Pointing to a different version of a submodule | ||
|
|
||
| Each entry in **.gitmodules** has the following form (we use CIME as an | ||
| example below): | ||
|
|
||
| [submodule "cime"] | ||
| path = cime | ||
| url = https://github.com/ESMCI/cime | ||
| fxtag = cime6.0.246 | ||
| fxrequired = ToplevelRequired | ||
| fxDONOTUSEurl = https://github.com/ESMCI/cime | ||
|
|
||
| Each entry specifies either a tag or a hash. To point to a new tag or hash: | ||
|
|
||
| 1. Modify the relevant entry/entries in **.gitmodules** (e.g., changing | ||
| `cime6.0.246` to `cime6.0.247` above) | ||
|
|
||
| 2. Checkout the new submodule(s): | ||
|
|
||
| ./bin/git-fleximod update <submodule> | ||
|
|
||
| Keep in mind that changing individual submodule from a tag may result | ||
| in an invalid model (won\'t compile, won\'t run, not scientifically | ||
| meaningful) and is unsupported. | ||
|
|
||
| ### Committing your change to .gitmodules | ||
|
|
||
| After making this change, it\'s a good idea to commit the change in your | ||
| local CTSM git repository. First create a branch in your local | ||
| repository, then commit it. Feel free to create whatever local branches | ||
| you\'d like in git. For example: | ||
|
|
||
| git checkout -b my_ctsm_branch | ||
| git add .gitmodules | ||
| git commit -m "Update CIME to cime6.0.247" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.