Skip to content

The external_coupling_block error does not show the invalid type #209

@ktbolt

Description

@ktbolt

Description

A user is trying to run an svMultiPhysics simulation using the svZeroDSolver. The JSON file used for the coupling has a misspelled bc_type which causes the simulation to fail with

ibc++abi: terminating due to uncaught exception of type std::runtime_error: Error: The specified connection type for inlet external_coupling_block is invalid.

This error message does not show what the

  1. invalid connection type is
  2. valid connection types are

Note that with an informative error message the user could have identified the problem and fixed it rather than posting to the SV Forum for help.

Reproduction

Run a simulation with a misspelled bc_type parameter.

Expected behavior

The error should contain information that would help the user to find and fix the error.

Additional context

There is no documentation that I can see describing what the valid BC types are.

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions