-
Notifications
You must be signed in to change notification settings - Fork 19
Deprecate ./setup folder and refactor configuration structure #1641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Can one of the admins verify this patch? |
2 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
Co-authored-by: lsawade <[email protected]>
Co-authored-by: lsawade <[email protected]>
Co-authored-by: lsawade <[email protected]>
Co-authored-by: lsawade <[email protected]>
|
test this please |
core/specfem/constants.hpp
Outdated
| } // namespace specfem | ||
|
|
||
| namespace specfem { | ||
| namespace build_configuration { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the unused build_configuration namespace in commit 6e37b37.
|
@copilot make sure to check the workflows, there seem to be some include errors |
Co-authored-by: lsawade <[email protected]>
Co-authored-by: lsawade <[email protected]>
Fixed the include errors in |
|
@copilot tests are still failing Make sure you check the entire code base for |
Co-authored-by: lsawade <[email protected]>
... Fixed all remaining include errors. The issue was that new files ( |
Description
Consolidates configuration headers from
./setupintocore/specfem, removes unused default configuration system, and eliminates deprecated code patterns. Includes merge of latestdevelbranch changes to ensure all include paths are updated comprehensively.Key Changes
setup/specfem_setup.hpp.in→core/specfem/setup.hpp.in,setup/constants.hpp.in→core/specfem/constants.hpp(converted to plain header - no CMake variables in use)__default_file__,parameter_files/defaults/default.yaml, and fallback logic in runtime configuration.setupconstructor now takes single parameter file.globals.h(contained unusedsimulation_wavevariable), removed unusedbuild_configurationnamespace (contained hardcodedchunk_size,num_chunks,num_threads,vector_lanesconstants), confirmedspecfem::waveenum was already absentconstants::empirical→constants, moved internalprogram_2d/3dfunctions todetailnamespacepifrom runtime computation toconstexprliteral"constants.hpp"to"specfem/constants.hpp"and from"specfem_setup.hpp"to"specfem/setup.hpp"across the entire codebase including:.tppfiles in the attenuation module (compute_tau_eps.tpp,compute_tau_sigma.tpp,compute_factors.tpp).hppfiles in the attenuation module (compute_factors.hpp)develbranch changes that added new attenuation files and updated their include pathsUpdated Signatures
All includes updated:
"specfem_setup.hpp"→"specfem/setup.hpp","constants.hpp"→"specfem/constants.hpp"Issue Number
Related to #1626
Checklist
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.