Skip to content

Commit

Permalink
Merge branch 'fix/nuopc-attributes' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
theurich committed Jul 8, 2023
2 parents c66dd7f + 8a8d576 commit c089096
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
20 changes: 12 additions & 8 deletions AtmOcnMedIngestFromConfigProto/esmAppRun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,25 @@ runSeq4: |
@
#-------------------------------------------------------------------------------

generalAttributes: &general # YAML anchor
Verbosity: 4609 # decimal representation of explicit bit pattern

#-------------------------------------------------------------------------------
# Attributes for components
driverAttributes:
Verbosity: "4609"
Profiling: "0"
<<: *general # merge key with alias, brings in Verbosity
# Verbosity: 0 # still able to override Verbosity here
Profiling: 0

# Another way of specifying the ConnectionOptions Attribute for a Connector is
# to explicitly set the Attribute here:
MED-TO-ATM-Attributes:
ConnectionOptions: :remapMethod=nearest_stod
Verbosity: "4609" # must explicitly quote this integer
Profiling: low # this is naturally a string
Diagnostic: "0" # again explicitly quote the zero
CustomSeq1: [1, 2, 3, 4] # sequence of integers
CustomSeq2: [1., 2., 3., 4.] # sequence of floats
CustomSeq3: [true, false] # sequence of bools
<<: *general # merge key with alias, brings in Verbosity
Profiling: low # pre-defined NUOPC setting
Diagnostic: 0 # explicit 0 turns OFF feature
CustomSeq1: [1, 2, 3, 4] # sequence of integers
CustomSeq2: [1., 2., 3., 4.] # sequence of floats
CustomSeq3: [true, false] # sequence of bools
CustomType: {k1: [a, aa, aaa], k2: b, k3: c} # complex structure
#-------------------------------------------------------------------------------
8 changes: 6 additions & 2 deletions ESMX_AtmOcnProto/esmxRun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ ESMX:
OCN
@
attributes: &common # define an anchor so it can be used by multiple components
Verbosity: low # good default for Verbosity setting

ATM:
model: Tawas # model value is case insensitive to match Fortran
ompNumThreads: 4
attributes:
Verbosity: low
<<: *common # use the attributes map via an alias common
Verbosity: high # override the setting from common alias
petList: [3, [2-0]] # petList is list of scalars and lists.
# each list again can be of scalars and lists
# recursively.
Expand All @@ -33,4 +37,4 @@ OCN:
model: lumo
petList: [0-1, 3]
attributes:
Verbosity: low
<<: *common

0 comments on commit c089096

Please sign in to comment.