Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2012
Closed
Open
Issue created Feb 23, 2021 by Ryan Danks@rcd

SetExprFields fails when run from the command line

Summary

There is a typo on line 774 of setExprFields.C that causes the tool to fail when specifying an expression via the command line rather than a dict.

Steps to reproduce

It occurs for any scenario where the command line interface is used

Example case

What is the current bug behaviour?

the command fails with an out of range error.

What is the expected correct behavior?

The setExpField command should run correctly and set/create the field.

Relevant logs and/or images

Environment information

  • OpenFOAM version : v2012
  • Operating system : ubuntu
  • Hardware info :
  • Compiler : gcc

Possible fixes

change line 774 of setExprFields.C from args[expression], to args["expression"],

Edited Feb 23, 2021 by Ryan Danks
Assignee
Assign to
Time tracking