Skip to content

Cannot bind different component to facilityArray #1

Description

@baagaard-usgs

The factory keyword is used to bind a default component to a facilityArray. Within a .cfg file or on the command line, we can assign an array of components, but we cannot assign a single component acting as the array.

Example

A materials array with a default factory creating an array with one facility.

Ok: Use the default

materials.homogeneous = materials.Elastic

Ok: Create array of two materials.

materials = [one, two]
materials.one = materials.Elastic
materials.two = materials.Plastic

Fails: Replace default factory with another factory.

materials = materials.ElasticPlastic

# This is interpreted as materials = [materials.ElasticPlastic]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions