Skip to content

Commit 238f480

Browse files
authored
feat(dfns): render blocks and components (#332)
Add component and block rendering methods ss suggested in #311 (comment). Also some DFN snapshot updates.
1 parent fe6af2f commit 238f480

345 files changed

Lines changed: 599 additions & 1485 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

autotest/dfns/__snapshots__/v2.0.0.dev0/gwe-adv.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"reader": "urword",
1111
"optional": true,
1212
"longname": "advective scheme",
13-
"description": "scheme used to solve the advection term. Can be upstream, central, or TVD. If not specified, upstream weighting is the default weighting scheme.",
13+
"description": "scheme used to solve the advection term. Can be upstream, central, TVD, or UTVD. If not specified, upstream weighting is the default weighting scheme.",
1414
"valid": "central upstream tvd"
1515
},
1616
"ats_percel": {

autotest/dfns/__snapshots__/v2.0.0.dev0/gwe-adv.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type = "string"
99
reader = "urword"
1010
optional = true
1111
longname = "advective scheme"
12-
description = "scheme used to solve the advection term. Can be upstream, central, or TVD. If not specified, upstream weighting is the default weighting scheme."
12+
description = "scheme used to solve the advection term. Can be upstream, central, TVD, or UTVD. If not specified, upstream weighting is the default weighting scheme."
1313
valid = "central upstream tvd"
1414

1515
[options.ats_percel]

autotest/dfns/__snapshots__/v2.0.0.dev0/gwe-adv.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ options:
99
reader: urword
1010
optional: true
1111
longname: advective scheme
12-
description: scheme used to solve the advection term. Can be upstream, central, or TVD. If not specified,
13-
upstream weighting is the default weighting scheme.
12+
description: scheme used to solve the advection term. Can be upstream, central, TVD, or UTVD. If
13+
not specified, upstream weighting is the default weighting scheme.
1414
valid: central upstream tvd
1515
ats_percel:
1616
block: options

autotest/dfns/__snapshots__/v2.0.0.dev0/prt-oc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,14 @@
305305
"longname": "print particle tracking events",
306306
"description": "print a verbose particle tracking event trace to standard output",
307307
"mf6internal": "dev_dump_evtrace"
308+
},
309+
"scratch_buffer": {
310+
"block": "options",
311+
"type": "keyword",
312+
"reader": "urword",
313+
"optional": true,
314+
"longname": "buffer track events in scratch file instead of memory",
315+
"description": "keyword to stage track events in a temporary (scratch) file instead of an in-memory buffer. Particle tracking results calculated during a time step are buffered, and output is deferred, until successful completion of the time step. By default, results are buffered in memory. However, for simulations in which a very large number of track events is generated during a time step, memory limits can be exceeded. In such cases, the SCRATCH_BUFFER option can be invoked to buffer results in a scratch file until successful completion of the time step. Buffering in a scratch file is typically slower than buffering in memory."
308316
}
309317
},
310318
"dimensions": {

autotest/dfns/__snapshots__/v2.0.0.dev0/prt-oc.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,14 @@ longname = "print particle tracking events"
293293
description = "print a verbose particle tracking event trace to standard output"
294294
mf6internal = "dev_dump_evtrace"
295295

296+
[options.scratch_buffer]
297+
block = "options"
298+
type = "keyword"
299+
reader = "urword"
300+
optional = true
301+
longname = "buffer track events in scratch file instead of memory"
302+
description = "keyword to stage track events in a temporary (scratch) file instead of an in-memory buffer. Particle tracking results calculated during a time step are buffered, and output is deferred, until successful completion of the time step. By default, results are buffered in memory. However, for simulations in which a very large number of track events is generated during a time step, memory limits can be exceeded. In such cases, the SCRATCH_BUFFER option can be invoked to buffer results in a scratch file until successful completion of the time step. Buffering in a scratch file is typically slower than buffering in memory."
303+
296304
[dimensions.ntracktimes]
297305
block = "dimensions"
298306
type = "integer"

autotest/dfns/__snapshots__/v2.0.0.dev0/prt-oc.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,19 @@ options:
281281
longname: print particle tracking events
282282
description: print a verbose particle tracking event trace to standard output
283283
mf6internal: dev_dump_evtrace
284+
scratch_buffer:
285+
block: options
286+
type: keyword
287+
reader: urword
288+
optional: true
289+
longname: buffer track events in scratch file instead of memory
290+
description: keyword to stage track events in a temporary (scratch) file instead of an in-memory buffer.
291+
Particle tracking results calculated during a time step are buffered, and output is deferred, until
292+
successful completion of the time step. By default, results are buffered in memory. However, for
293+
simulations in which a very large number of track events is generated during a time step, memory
294+
limits can be exceeded. In such cases, the SCRATCH_BUFFER option can be invoked to buffer results
295+
in a scratch file until successful completion of the time step. Buffering in a scratch file is typically
296+
slower than buffering in memory.
284297
dimensions:
285298
ntracktimes:
286299
block: dimensions

autotest/dfns/__snapshots__/v2.0.0.dev1/gwe-adv.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"options": {
99
"scheme": {
1010
"block": "options",
11-
"description": "scheme used to solve the advection term. Can be upstream, central, or TVD. If not specified, upstream weighting is the default weighting scheme.",
11+
"description": "scheme used to solve the advection term. Can be upstream, central, TVD, or UTVD. If not specified, upstream weighting is the default weighting scheme.",
1212
"valid": "central upstream tvd",
1313
"reader": "urword",
1414
"optional": true,

autotest/dfns/__snapshots__/v2.0.0.dev1/gwe-adv.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ftype = "ADV"
66

77
[blocks.options.scheme]
88
block = "options"
9-
description = "scheme used to solve the advection term. Can be upstream, central, or TVD. If not specified, upstream weighting is the default weighting scheme."
9+
description = "scheme used to solve the advection term. Can be upstream, central, TVD, or UTVD. If not specified, upstream weighting is the default weighting scheme."
1010
valid = "central upstream tvd"
1111
reader = "urword"
1212
optional = true

autotest/dfns/__snapshots__/v2.0.0.dev1/gwe-adv.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ blocks:
77
options:
88
scheme:
99
block: options
10-
description: scheme used to solve the advection term. Can be upstream, central, or TVD. If not
11-
specified, upstream weighting is the default weighting scheme.
10+
description: scheme used to solve the advection term. Can be upstream, central, TVD, or UTVD. If
11+
not specified, upstream weighting is the default weighting scheme.
1212
valid: central upstream tvd
1313
reader: urword
1414
optional: true

autotest/dfns/__snapshots__/v2.0.0.dev1/prt-oc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,14 @@
264264
"mf6internal": "dev_dump_evtrace",
265265
"longname": "print particle tracking events",
266266
"type": "keyword"
267+
},
268+
"scratch_buffer": {
269+
"block": "options",
270+
"description": "keyword to stage track events in a temporary (scratch) file instead of an in-memory buffer. Particle tracking results calculated during a time step are buffered, and output is deferred, until successful completion of the time step. By default, results are buffered in memory. However, for simulations in which a very large number of track events is generated during a time step, memory limits can be exceeded. In such cases, the SCRATCH_BUFFER option can be invoked to buffer results in a scratch file until successful completion of the time step. Buffering in a scratch file is typically slower than buffering in memory.",
271+
"reader": "urword",
272+
"optional": true,
273+
"longname": "buffer track events in scratch file instead of memory",
274+
"type": "keyword"
267275
}
268276
},
269277
"dimensions": {

0 commit comments

Comments
 (0)