-
Notifications
You must be signed in to change notification settings - Fork 96
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
simplify region codes in src/postprocess #338
Comments
Hi Ryan, What about suppressing the region suffix from the command line and Otherwise this would make the syntax differ from SPECFEM3D, and I am not Anyway, if possible let us avoid making the syntax of GLOBE tools differ Other option: by default smooth all the regions if no "reg_" argument is Thanks, On 03/03/2015 10:09 PM, rmodrak wrote:
Dimitri Komatitsch |
Hi Dimitri, That is an excellent point. Thanks very much for the feedback. There is a sense in which the proposed change improves consistency between packages by removing a hardwired variable from SPECFEM3D_GLOBE that is not present in SPECFEM3D. On the other hand though, I do agree very much with your view. If I could, let me think more about this from the standpoint of trying to interface with xsmooth_sem from an external script. Also, let me follow up with Daniel about this, since I brought it up with him earlier. I'll report back later this week, and in the meantime I'll hold off on any changes. Thanks, |
Hi Ryan, Perfect! Using an optional argument could be an option; Thanks, On 03/04/2015 06:14 AM, rmodrak wrote:
Dimitri Komatitsch |
Hi Dimitri, Sorry, all I meant was, anyone using these utilities must call them from an external script, typically a bash script. This is the approach established by Carl and Daniel. Of course, we need to try to avoid breaking existing command line interfaces. But if we can extend command line interfaces in a way that provides more flexibility or that anticipates future user needs, there are real benefits for everyone. Ryan |
Hi Dimitri, If it's alright, why don't we just leave everything as it is and go ahead and close this issue. Thanks, |
Hi Ryan, Ah, OK, then we are all set. So let us implement your initial idea Thanks, On 03/04/2015 02:39 PM, rmodrak wrote:
Dimitri Komatitsch |
Hi Ryan, I think your idea of cleaning that part of the code was very good, so Thanks, On 03/04/2015 07:22 PM, rmodrak wrote:
Dimitri Komatitsch |
Hi Dimitri, I can go ahead and simplify the routines. What about if we keep the region codes, but instead of hardwiring them in every single routine, or having to include them explicitly through a command line argument, we do something like From your previous comments, I think you would like this solution, and it would work well for me and Daniel too. Thanks, |
Hi Ryan, You are right, very good idea. Thanks, On 03/05/2015 02:46 AM, rmodrak wrote:
Dimitri Komatitsch |
UPDATE: I've gone ahead and addressed this issue in a new pull request #342 . If it's alright, I'll go ahead in close this issue. |
Dear all,
Currently, in src/postprocess, there are three different conventions concerning region prefixes. Sometimes region prefixes are hardwired into code (e.g.
reg_name = '_reg1_'
). Other times a constants file is used (e.g.use postprocess_par,only: reg
). Other times a prefix is determined based on a command line argument.To make things simpler, I'd like move to a single convention: require users to include the region code explicitly through the command line arguments.
old convention
proposed new convention
This change would not affect any SPECFEM3D utilities, and only one of the 'classic' SPECFEM3D_GLOBE utilities,
smooth_sem.f90
, would be affected. (If Daniel wants me to modify the recently added utilitiesaddition_sem
anddifference_sem
utilities, I could do that as well.)If there are any concerns, please let me know.
This is the final proposed change concerning the postprocess utilities--thanks for bearing with me.
Ryan
The text was updated successfully, but these errors were encountered: