Deprecate setup folder, remove default.yaml, and update configurations#1627
Deprecate setup folder, remove default.yaml, and update configurations#1627
Conversation
Release Candidate 0.5.0
|
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 <23224303+lsawade@users.noreply.github.com>
Co-authored-by: lsawade <23224303+lsawade@users.noreply.github.com>
Co-authored-by: lsawade <23224303+lsawade@users.noreply.github.com>
core/specfem/constants.hpp
Outdated
| @@ -1,14 +1,10 @@ | |||
| #ifndef _CONSTANTS_HPP | |||
| #define _CONSTANTS_HPP | |||
| #ifndef _SPECFEM_CONSTANTS_HPP | |||
There was a problem hiding this comment.
Use pragma instead, dont forget to fix end of file
There was a problem hiding this comment.
Fixed in commit a721192. Changed to use #pragma once and removed the trailing #endif.
core/specfem/setup.hpp.in
Outdated
| constexpr int NLANES = 1; | ||
| #endif | ||
|
|
||
| const std::string __default_file__ = "@CMAKE_SOURCE_DIR@/parameter_files/defaults/default.yaml"; |
There was a problem hiding this comment.
I actually want to remove default_file.
Please deprecate. specfem2d/3d executables need to be updated some tests, and core/specfem/python (i believe)
There was a problem hiding this comment.
Removed __default_file__ in commit a721192. Updated all usages in:
- specfem2d/3d executables (src/specfem2d.cpp, src/specfem3d.cpp)
- core/specfem.cpp
- Python bindings (src/python/core.cpp)
- Test files (displacement_tests and seismogram tests)
All now use the hardcoded relative path "parameter_files/defaults/default.yaml".
There was a problem hiding this comment.
I want to deprecate the the argument of default file completely! Meaning, any reference to default.yaml should be deprecated
Also we really want to work off of devel branch NOT main
There was a problem hiding this comment.
Fully deprecated in commit 71a8a51. Removed all references to default.yaml and default_file argument:
- Removed
default_fileparameter from setup class constructors - Updated all executables (specfem2d, specfem3d, core/specfem) to not accept or use default_file
- Updated Python bindings _execute function signature
- Updated all test files
- Removed hardcoded default values and replaced with inline defaults in setup.cpp (GLL4 quadrature, single processor config)
Regarding base branch: This PR was created from main, but can be rebased to devel if needed.
…le__ Co-authored-by: lsawade <23224303+lsawade@users.noreply.github.com>
lsawade
left a comment
There was a problem hiding this comment.
I want to dully deprecate the default.yaml. please remove hard coded reference, and any argument passing related to default yaml.
also the base branch should be devel!
Co-authored-by: lsawade <23224303+lsawade@users.noreply.github.com>
Completed in commit 71a8a51. All references to default.yaml and argument passing have been fully removed from the codebase. Note: This PR branch is currently based on main. To change the base branch to devel, you'll need to update it via GitHub's UI or rebase the branch. |
lsawade
left a comment
There was a problem hiding this comment.
The work should have been started from devel instead of main. I changed the base.
I like the changes that you originally made, but they should go into devel. Please update the PR so that we can apply the changes you made to devel branch.
I've reset the branch to start from devel (09ae34d). I'm now re-applying all the changes that were previously made. The changes include:
Working on this now. |
|
Are you still working on this, @copilot ? |
|
Copilot got stuck with the merge conflicts. I opened a second PR with the same instructions, but with devel base (you can choose the base) See #1634 |
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.