forked from MPAS-Dev/MPAS-Model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mpas_modify_att() subroutines to mpas_attlist
CF compliance requires certain attributes to be updated periodically throughout a run. The current attlist module only supports creation and retrieval of attributes. This commit addds this functionality, and some basic tests. A couple of modifications were also required in the test core to pass the correct iErr variable, as the field tests were erroneously signaling failures. Changes were also required to initialize "threadErrs". Noteably, this has the potential to cause issues if there are changes to allow threads other than thread 0 to modify the threadErrs array- if that change does occur, threadErrs should be initialized from outside the omp parallel directive surrouding test_attlist in mpas_test_core. Some superfluous whitespace was also reformatted. It is also noted that these procedures are not currently threadsafe. Future work may include threadsafe attribute modification and a more comprehensive test suite for all of the attlist procedures.
- Loading branch information
Matthew Dimond
committed
Jun 30, 2023
1 parent
bddcbe4
commit 41b2bef
Showing
2 changed files
with
268 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 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