Skip to content
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

added USE_OTHER_TIME_FUNCTION in Par_file to add the Brune and Smooth Brune functions for CMTSOLUTION #1658

Closed
wants to merge 4 commits into from

Conversation

homnath
Copy link

@homnath homnath commented Dec 9, 2023

In my view, the best way to reconcile source time functions for CMTSOLUTION and FORCESOLUTION is to create a new common parameter for both CMTSOLUTION and FORCESOLUTION similar to:
SOURCE_TIME_FUNCTION = gaussian
and get rid of USE_RICKER_TIME_FUNCTION from the Par_file and "source time function" from the FORCESOLUTION.

However, to minimise the code changes, I have added a new parameter, USE_OTHER_TIME_FUNCTION, for now. Currently, it is implemented only for viscoelastic simulations, and the other available functions are Brune and Smooth Brune.

@homnath homnath requested a review from danielpeter December 9, 2023 12:17
Copy link

codecov bot commented Dec 9, 2023

Codecov Report

Attention: 69 lines in your changes are missing coverage. Please review.

Comparison is base (b3bf93e) 51.47% compared to head (821006b) 51.43%.
Report is 1 commits behind head on devel.

❗ Current head 821006b differs from pull request most recent head c1c2b4d. Consider uploading reports for the commit c1c2b4d to get more accurate results

Files Patch % Lines
src/specfem3D/locate_source.F90 8.57% 32 Missing ⚠️
src/specfem3D/setup_sources_receivers.f90 30.00% 14 Missing ⚠️
src/specfem3D/compute_add_sources_viscoelastic.F90 7.14% 13 Missing ⚠️
src/specfem3D/get_cmt.f90 28.57% 5 Missing ⚠️
src/shared/read_parameter_file.F90 50.00% 3 Missing ⚠️
...roblem_for_model/input_output/input_output_mod.f90 87.50% 1 Missing ⚠️
src/shared/count_number_of_sources.f90 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #1658      +/-   ##
==========================================
- Coverage   51.47%   51.43%   -0.05%     
==========================================
  Files         266      266              
  Lines       60241    60330      +89     
==========================================
+ Hits        31009    31029      +20     
- Misses      29232    29301      +69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@homnath homnath closed this Dec 10, 2023
@homnath
Copy link
Author

homnath commented Dec 10, 2023

Resubmitting!

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