You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/atmospheric_physics/development_workflow.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,10 @@ The general workflow for adding a feature, bug-fix, or modification to atmospher
18
18
19
19
If you need an official tag for your new additions, then once your `development` PR has been merged you will need to do the following:
20
20
21
-
1.**Open a PR that merges the atmospheric_physics `development` branch into `main`. Ensure that the PR description lists every PR that went into `development` since the last update to `main`.**
21
+
1.**Open a PR that merges the atmospheric_physics `development` branch into `main`. Ensure that the PR description lists the title and number of every PR that went into `development` since the last update to `main`.**
22
22
2.**Fix any failing tests. This includes tests on the target host models that will be using the new tag.**
23
23
3.**Merge (do not squash!) the PR.**
24
-
4.**Tag the new merge commit.**
24
+
4.**[Tag](Tagging-Instructions.md) the new merge commit.**
25
25
26
26
## Workflow details
27
27
@@ -224,7 +224,10 @@ At a minimum, unit tests for ESCOMP source code should:
224
224
225
225
**11. Update the `NamesNotInDictionary.txt` file using the instructions [below](#updating-namesnotindictionarytxt-file).**
226
226
227
-
**12. Once all reviewers sign off on your modifications, then the PR will be squashed and merged. Congratulations! Your code is now in atmospheric_physics!**
227
+
**12. Once all reviewers sign off on your modifications, then the PR can be merged. Congratulations! Your code is now in atmospheric_physics!**
228
+
229
+
- If the PR is to `develop`, you should select "Squash and Merge"
230
+
- If the PR is to `main`, DO NOT squash and instead select "Merge Commit"
Copy file name to clipboardExpand all lines: docs/conversion/walkthrough.md
+156-1Lines changed: 156 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -690,7 +690,162 @@ Bug gets extremely lucky (or maybe he's just really skilled) and there are no di
690
690
Bug commits his changes to his fork/branch of the three repos: CAM, CAM-SIMA, atmospheric_physics.
691
691
692
692
### Unit testing
693
-
Bug adds PfUnit tests for his newly-created scheme per the [atmospheric_physics development workflow](../atmospheric_physics/development_workflow.md#5-unit-testing).
693
+
694
+
Lets say you added a utility function in `physics_tendency_updaters.F90
695
+
` to apply the pressure tendency of the atmosphere:
Then you would need to check that the file you've modified is being built by the tests. You can check this in `test/unit-test/CMakeLists.txt` and see that we have:
The values should be scientifically relevant to test a valid physics case or be set up to test edge cases that the subroutine must support.
809
+
810
+
Notice that we are only testing `intent(out)` and `intent(inout)` as these are the only values that can change.
811
+
812
+
Assuming you have built the test framework according to the [instructions](../atmospheric_physics/development_workflow.md#5-unit-testing), you can now run:
2/2 Test #1: utilities_tests .................. Passed 0.00 sec
844
+
845
+
100% tests passed, 0 tests failed out of 1
846
+
```
847
+
848
+
If 100% of the tests pass, you may proceed to the next section.
694
849
695
850
### Pull Requests
696
851
- He opens a PR into atmospheric_physics (target: `development` branch), goes through the review process, updates the NamesNotInDictionary.txt file, and then commits the PR when approvals are received. He then opens a PR from `development` to `main` and makes a tag (incrementing the minor version) when that is merged.
0 commit comments