Conversation
…atch specfem2d fortran. ElasticSH is the only test that is failing.
Collaborator
Author
|
@danielpeter the tests here should fail right now since i didn't update the SH tests, which should fail due to the fixes. But maybe you could take a quick look just to make sure I'm getting "everything". |
…the source functions.
icui
approved these changes
Sep 3, 2025
Rohit-Kakodkar
approved these changes
Sep 4, 2025
Collaborator
Rohit-Kakodkar
left a comment
There was a problem hiding this comment.
Can you add a brief discription of what was wrong with original implementation as a comment here (just a few lines) ? Just as a reference to point to incase some one has question.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The changes should reflect SPECFEM2D's PR #1259 that updates the implementation of the source time function to more accurately match SPECFEM3D.
Problem
The way the acoustic force source_array was applied in the medium/compute_source had the wrong sign as a result of legacy code. One result of this is the definition of the source angle was inverted.
Solutions
medium/compute_source<acoustic>fromacc(...) += source_array(...) to acc(...) -= source_array(...)
Issue Number
Closes #945
Checklist
Please make sure to check developer documentation on specfem docs.