Skip to content

Conversation

@werthm
Copy link

@werthm werthm commented Feb 25, 2025

These changes allow to specify geometry files via the #include directive by using relative paths.
Example:

geometry/scenario_1.dat
geometry/structure_1.dat
geometry_structure_2.dat
simulation/geometry_1.dat

Content of geometry/scenario_1.dat

#include structure_1.dat
#include structure_2.dat

Content of simulation/geometry_1.dat (Working directory)

#include ../geometry/scenario_1.dat

@werthm werthm requested a review from gcosmo as a code owner February 25, 2025 15:17
@gcosmo gcosmo requested review from arceciemat and removed request for gcosmo February 25, 2025 17:12
@arceciemat
Copy link
Collaborator

This is already possible, #include opens a file with
std::ifstream* fin = new std::ifstream(filename);

@drbenmorgan
Copy link
Member

As @arceciemat suggests this is already possible, closing on this basis, but please reopen if more discussion is needed.

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.

3 participants