History log of /petsc/src/sys/tests/ex47-include.yaml (Results 1 – 2 of 2)
Revision Date Author Comments
# 8ec9a424 15-Feb-2021 Satish Balay <balay@mcs.anl.gov>

Merge branch 'dalcinl/options-yaml' into 'master'

Enancements to YAML options

See merge request petsc/petsc!3618


# 5c23ca1c 10-Feb-2021 Lisandro Dalcin <dalcinl@gmail.com>

Enhancements to YAML options

* Pass PetscOptions object to PetscOptionsInsertFileYAML().

* PetscOptionsInsert{File|String}YAML() are now always available and
will fail at runtime if PETSc was not

Enhancements to YAML options

* Pass PetscOptions object to PetscOptionsInsertFileYAML().

* PetscOptionsInsert{File|String}YAML() are now always available and
will fail at runtime if PETSc was not configured with YAML.

* Mapping keys starting with '$$' are considered dummy and not inserted.
These keys can be used with `!include` tags and for the definition of
YAML anchors to be expanded later with the merge key '<<'.

* Sequences of one-mappings insert an option with the list of keys.
For example, the following YAML options

```yaml
map:
- key0: abc
- key1: xyz
- key2: 123
```

insert the following options

```
-map key0,key1,key2
-map_key0 abc
-map_key1 xyz
-map_key2 123
```

show more ...