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/check-metadata.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,11 @@ cd <casedir>
61
61
<tdmarkdown>Dimension is either invalid or not implemented in CAM</td>
62
62
<tdmarkdown>Confirm that the dimension is valid and that you selected the correct one (e.g. `vertical_layer_dimension` vs `vertical_interface_dimension`. If it's valid and still missing, consult with the other CAM SEs</td>
63
63
</tr>
64
+
<trmarkdown>
65
+
<tdmarkdown>`parse_source.ParseInternalError: Duplicate Group variable <variable>`</td>
66
+
<tdmarkdown>You have multiple variables (with different standard names) that have the same local name</td>
67
+
<tdmarkdown>Change the local name of one (or more) of the variables in your Fortran and metadata</td>
68
+
</tr>
64
69
<trmarkdown>
65
70
<tdmarkdown>Some other misc error</td>
66
71
<tdmarkdown>You've run into either a bug or just a weird scenario</td>
Copy file name to clipboardExpand all lines: docs/development/cam-testing.md
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,19 +19,34 @@ For running Intel tests*:
19
19
env CAM_FC=intel ./test_driver.sh -f
20
20
```
21
21
22
+
*Note: you may also have to include the environment variable `CAM_ACCOUNT` on derecho, which is your account key
23
+
22
24
!!! Note "test_driver.sh default"
23
25
By default, `test_driver.sh` will compare against the baselines in `/glade/campaign/cesm/community/amwg/sima_baselines/latest_<CAM_FC>`. If you wish to compare against different baselines, specify the path to those baselines with the environment variable `BL_TESTDIR`
24
26
25
27
!!! Note "Running test_driver.sh with no baseline comparison"
26
28
If you do not wish to compare to baselines, don't use the `BL_TESTDIR` environment variable and use the flag `--no-bl-compare`
27
29
30
+
28
31
Running the script will produce a directory in your scratch space labeled `aux_sima_<CAM_FC>_<timestamp>`, where `<CAM_FC>` is the compiler you chose, and `<timestamp>` is the timestamp (starting with the date) of when the tests were started, along with a job submitted to the local batch system.
29
32
30
33
Inside the directory you should see an executable labeled `cs.status.*`. Running that command after the submitted job has finished will display the test results. **Everything should be labeled `PASS`. Any other label indicates that a test may have failed, and should be investigated.** Expected failures can be found in the `$CAM-SIMA/test/existing-test-failures.txt` file.
31
34
32
-
Finally, the tests themselves are listed in `<CAM-SIMA>/cime_config/testdefs/testlist_cam.xml`. Any files that need to be included in order for the tests to run properly are located in `<CAM-SIMA/cime_config/testdefs/testmods_dirs/cam/outfrq_XXX`, where `XXX` is the name of the test. Additional information on the CIME testing system, which is what this testing infrastructure is built on, can be found [online here](https://esmci.github.io/cime/versions/master/html/users_guide/testing.html).
35
+
#### Inspecting test output
36
+
If you have an unexpected FAIL or PEND or DIFF, you will want to investigate further. Start by navigating into the test directory, for example:
37
+
```
38
+
cd SMS_Ln9.ne5pg3_ne5pg3_mg37.FTJ16.derecho_intel.cam-outfrq_se_cslam.GC.aux_sima_intel_20241223100339
39
+
```
40
+
41
+
If you have familiarity with CAM cases, the setup and directory structure will be familiar.
42
+
43
+
- A good place to start is the `TestStatus.log` file, which will include almost all test output (including build failures and information on where to look for other failures)
44
+
- Build logs for each component are in the `bld` directory. If you look at the filenames and one or more doesn't have the `.gz` end tag, those are likely culprits for having the error.
45
+
- Run logs are in the `run` directory. Similar to the build logs, log files that aren't zipped up are candidates for containing errors. The `atm.log.*` and `cesm.log.*` files are likely going to contain the information about the error you're seeking.
46
+
- Refer to the procedures for [checking metadata](../conversion/check-metadata.md) and [running CAM-SIMA](../conversion/run-cam-sima.md) for additional debugging help
33
47
34
-
*Note: you may also have to include the environment variable `CAM_ACCOUNT` on derecho, which points to your account key
48
+
#### Additional test info
49
+
The tests themselves are listed in `<CAM-SIMA>/cime_config/testdefs/testlist_cam.xml`. Any files that need to be included in order for the tests to run properly are located in `<CAM-SIMA/cime_config/testdefs/testmods_dirs/cam/outfrq_XXX`, where `XXX` is the name of the test. Additional information on the CIME testing system, which is what this testing infrastructure is built on, can be found [online here](https://esmci.github.io/cime/versions/master/html/users_guide/testing.html).
35
50
36
51
### Archiving baselines
37
52
If your PR changes answers, then after you have run the tests, merged your PR, and created a tag (see [tag workflow](git-basics.md#tagging-a-commit)), you will need to archive your baselines for the next person.
0 commit comments