GEOS-DEV / GEOS-DEV/GEOS

Specify default value of a field/array in the input file.

Open
#441 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
287
Forks
109
Avg merge
4d 41m
Merged PRs (30d)
5

Description

Is your feature request related to a problem? Please describe.
We need a way to set the default value of a field/array from inside the input file.

Describe the solution you'd like
Probably something in the fieldSpecification block that sets only the default value of the field rather than the value.

Describe alternatives you've considered
none

Additional context
This is really helpful when considering topology change where you cannot set initial values of things that don't exist, and the hard coded default value is inappropriate for the simulation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the input-file parser and the fieldSpecification handling for fields and arrays, then trace how hard-coded defaults are selected. Define the distinction between setting a default and setting a current value, and verify the behavior for topology changes where the field does not yet exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
hpc
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.