|
6 | 6 | --- |
7 | 7 | caption: Error message 1 when running Step 1. |
8 | 8 | linenos: True |
9 | | -emphasize-lines: 15,16 |
| 9 | +emphasize-lines: 3-6 |
10 | 10 | --- |
11 | | -$ pylith step01_gravity.cfg |
12 | | -
|
13 | | -Traceback (most recent call last): |
14 | | - File "/software/baagaard/py38-venv/pylith-debug/bin/pylith", line 28, in <module> |
15 | | - start(applicationClass=PyLithApp) |
16 | | - File "/software/baagaard/py38-venv/pylith-debug/lib/python3.8/site-packages/pythia/pyre/applications/__init__.py", line 42, in start |
17 | | - shell.run(**kwds) |
18 | | -
|
19 | | - # -- many line omitted -- |
20 | | -
|
21 | | - File "/software/baagaard/py38-venv/pylith-debug/lib/python3.8/site-packages/pythia/pyre/inventory/ConfigContext.py", line 68, in configureComponent |
22 | | - component._validate(self) |
23 | | - File "/software/baagaard/py38-venv/pylith-debug/lib/python3.8/site-packages/pylith/bc/DirichletTimeDependent.py", line 120, in _validate |
24 | | - raise ValueError(f"No constrained degrees of freedom found for time-dependent Dirichlet boundary condition '{self.aliases[-1]}'. " |
25 | | -ValueError: No constrained degrees of freedom found for time-dependent Dirichlet boundary condition 'bc_xpos'. |
26 | | -'constrained_dof' must be a zero-based integer array (0=x, 1=y, 2=z). |
| 11 | +$ pylith step01a_gravity.cfg |
| 12 | +
|
| 13 | + >> {default}:: |
| 14 | + -- pyre.inventory(error) |
| 15 | + -- timedependent.problem_defaults.name <- '' |
| 16 | + -- Missing required property 'name' in default options for problem. |
| 17 | + >> {default}:: |
| 18 | + -- pyre.inventory(error) |
| 19 | + -- timedependent.bc.dirichlettimedependent.label <- '' |
| 20 | + -- Label for boundary condition group/nodeset/pset in mesh not specified. |
| 21 | + >> {default}:: |
| 22 | + -- pyre.inventory(error) |
| 23 | + -- timedependent.bc.dirichlettimedependent.simpledb.description <- '' |
| 24 | + -- Description for spatial database not specified. |
| 25 | + >> {default}:: |
| 26 | + -- pyre.inventory(error) |
| 27 | + -- timedependent.bc.dirichlettimedependent.simpledb.simpleioascii.filename <- '' |
| 28 | + -- Filename for spatial database not specified. |
| 29 | + >> {default}:: |
| 30 | + -- pyre.inventory(error) |
| 31 | + -- timedependent.bc.dirichlettimedependent.constrained_dof <- '[]' |
| 32 | + -- No constrained degrees of freedom found for time-dependent Dirichlet boundary condition 'bc_xpos'. 'constrained_dof' must be a zero-based integer array (0=x, 1=y, 2=z). |
| 33 | + >> ./pylithapp.cfg:118: |
| 34 | + -- pyre.inventory(error) |
| 35 | + -- pylithapp.timedependent.materials.elasticity.auxiliary_subfields.bulk_modulus.basis_order <- '0' |
| 36 | + -- unknown component 'pylithapp.timedependent.materials.elasticity.auxiliary_subfields.bulk_modulus' |
| 37 | + >> ./pylithapp.cfg:119: |
| 38 | + -- pyre.inventory(error) |
| 39 | + -- pylithapp.timedependent.materials.elasticity.auxiliary_subfields.shear_modulus.basis_order <- '0' |
| 40 | + -- unknown component 'pylithapp.timedependent.materials.elasticity.auxiliary_subfields.shear_modulus' |
| 41 | + >> ./pylithapp.cfg:141: |
| 42 | + -- pyre.inventory(error) |
| 43 | + -- pylithapp.timedependent.bc.xpos.label <- 'boundary_xpos' |
| 44 | + -- unknown component 'pylithapp.timedependent.bc.xpos' |
| 45 | + >> ./pylithapp.cfg:142: |
| 46 | + -- pyre.inventory(error) |
| 47 | + -- pylithapp.timedependent.bc.xpos.label_value <- '11' |
| 48 | + -- unknown component 'pylithapp.timedependent.bc.xpos' |
| 49 | + >> ./pylithapp.cfg:143: |
| 50 | + -- pyre.inventory(error) |
| 51 | + -- pylithapp.timedependent.bc.xpos.constrained_dof <- '[0]' |
| 52 | + -- unknown component 'pylithapp.timedependent.bc.xpos' |
| 53 | + >> ./pylithapp.cfg:144: |
| 54 | + -- pyre.inventory(error) |
| 55 | + -- pylithapp.timedependent.bc.xpos.db_auxiliary_field <- 'pylith.bc.ZeroDB' |
| 56 | + -- unknown component 'pylithapp.timedependent.bc.xpos' |
| 57 | + >> ./pylithapp.cfg:145: |
| 58 | + -- pyre.inventory(error) |
| 59 | + -- pylithapp.timedependent.bc.xpos.db_auxiliary_field.description <- 'Dirichlet BC +x edge' |
| 60 | + -- unknown component 'pylithapp.timedependent.bc.xpos.db_auxiliary_field' |
| 61 | + >> ./pylithapp.cfg:147: |
| 62 | + -- pyre.inventory(error) |
| 63 | + -- pylithapp.timedependent.bc.xpos.auxiliary_subfields.initial_amplitude.basis_order <- '0' |
| 64 | + -- unknown component 'pylithapp.timedependent.bc.xpos.auxiliary_subfields.initial_amplitude' |
| 65 | +usage: pylith [--<property>=<value>] [--<facility>.<property>=<value>] [FILE.cfg] ... |
| 66 | +component 'pylithapp' |
| 67 | + properties: dump_parameters, help, help-components, help-persistence, help-properties, include-citations, initialize_only, job, launcher, mesh_generator, metadata, nodes, petsc, problem, scheduler, start_python_debugger, typos, weaver |
| 68 | + facilities: dump_parameters,job,launcher,mesh_generator,metadata,petsc,problem,scheduler,weaver |
| 69 | +For more information: |
| 70 | + --help-properties: prints details about user settable properties |
| 71 | + --help-components: prints details about user settable facilities and components |
| 72 | +pylithapp: configuration error(s) |
27 | 73 | ``` |
28 | 74 |
|
29 | 75 | ## Troubleshooting Strategy |
30 | 76 |
|
31 | | -The full error message includes a Python Traceback followed by the actual error message (lines 15-16) generated by the `ValueError` exception. |
32 | | -The error message indicates there is a problem with the parameters for `pylithapp.problem.bc.bc_xpos`. |
33 | | -We look for this section in the parameter files and find it in `pylithapp.cfg`. |
| 77 | +The full error message shows several errors associated with our parameter files. |
| 78 | +Because errors often cascade, the best place to start is to address the first error (lines 3-6). |
| 79 | +We see that the default name for `problem_defaults` is empty and PyLith requires one. |
| 80 | +This name will be used as the first part of the filename for output. |
| 81 | +We resolve this error by examining the parameters for `pylithapp.timedependent.problem_defaults` in `step01_gravity.cfg`. |
| 82 | +We see that we do not set any of the problem defaults. |
34 | 83 |
|
35 | 84 | ## Resolution |
36 | 85 |
|
37 | | -There is a typo in the section heading for `pylithapp.problem.bc.bc_xpos`. |
38 | | -Because the section heading has the wrong name, PyLith uses the defaults (no constrained degrees of freedom) and complains that no degrees of freedom are constrained by the Dirichlet boundary condition. |
| 86 | +We must set the simulation name in the problem defaults. |
39 | 87 |
|
40 | 88 | ```{code-block} cfg |
41 | 89 | --- |
42 | | -caption: Correct error in `pylithapp.cfg`. |
| 90 | +caption: Correct error in `step01a_gravity.cfg`. |
43 | 91 | --- |
44 | | -# Error |
45 | | -[pylithapp.timedependent.bc.xpos] |
46 | | -
|
47 | | -# Correct |
48 | | -[pylithapp.timedependent.bc.bc_xpos] |
| 92 | +[pylithapp] |
| 93 | +... |
| 94 | +# Set the name of the problem that will be used to construct the |
| 95 | +# output filenames. The default directory for output is 'output'. |
| 96 | +problem.defaults.name = step01a_gravity |
49 | 97 | ``` |
0 commit comments