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/conversion/walkthrough.md
+158-1Lines changed: 158 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -690,7 +690,164 @@ 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.
811
+
812
+
Notice that we are only testing `intent(out)` and `intent(inout)` as these are the only values that can change.
813
+
814
+
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
846
+
847
+
100% tests passed, 0 tests failed out of 1
848
+
```
849
+
850
+
If 100% of the tests pass, you may proceed to the next section.
694
851
695
852
### Pull Requests
696
853
- 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