Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • dumux dumux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 100
    • Issues 100
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 86
    • Merge requests 86
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dumux-repositoriesdumux-repositories
  • dumuxdumux
  • Merge requests
  • !1359

[params] Improve handling of parameter files

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Timo Koch requested to merge feature/params.input into master Nov 28, 2018
  • Overview 0
  • Commits 1
  • Pipelines 0
  • 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
Reviewers
Request review from
Time tracking
Source branch: feature/params.input