Skip to content

Refactoring of RectangularMesh and Config Loading#29

Open
keiwanjamaly wants to merge 5 commits intomainfrom
feature/config-objects
Open

Refactoring of RectangularMesh and Config Loading#29
keiwanjamaly wants to merge 5 commits intomainfrom
feature/config-objects

Conversation

@keiwanjamaly
Copy link
Collaborator

This is the first contribution to simplify the configuration creation as commented by me in #5 (comment).

Here, the config of the mesh generation is outsourced into a config class, such that that class loads, parses the json file and sets defaults. This should simplify test creation in the future drastically, since only the configuration needs to be loaded, which is responsible for testing the subroutine of that code.

By that, also only part of the json file needs to be generated, since most of the parameters can be filled with defaults, which work in most of the cases. Defaults are also localized, making it easier to find and change.

Additionally moved the compilation of DiFfRG out of ExternalProject_Add in the cmake configuration, since this hinders incremental builds and therefore increases compile time.

@keiwanjamaly keiwanjamaly requested a review from satfra November 10, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant