Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • dumux dumux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 88
    • Issues 88
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 82
    • Merge requests 82
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • dumux-repositories
  • dumuxdumux
  • Merge requests
  • !1359

Merged
Created Nov 28, 2018 by Timo Koch@timokOwner

[params] Improve handling of parameter files

  • Overview 0
  • Commits 1
  • Changes 1

Fix #623 (closed).

If no parameter file is given look for

  • executbale.input
  • params.intput

If none are found, try it without parameter file. If a parameter file is given, let Dune do the error handling, and check if the file exists.

Messages are now:

  • no parameter file found:
No parameter file found. Continuing without parameter file.

ParameterException [init:../dumux/io/grid/gridmanager.hh:407]: Please supply one of the parameters Grid.UpperRight, or a grid file in Grid.File ---> Abort!
  • parameter file doesn't exist:
Reading parameters from file bla.inpuit.
Dune reported error: Dune::IOError [readINITree:../dune/common/parametertreeparser.cc:49]: Could not open configuration file bla.inpuit ---> Abort!

which I find better than before. In particular if a program doesn't need a parameter file, there is no error now.

Edited Nov 28, 2018 by Timo Koch
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feature/params.input