Skip to content

Commit

Permalink
Merge pull request SPECFEM#1641 from elifo/devel
Browse files Browse the repository at this point in the history
minor edits in geocubit subroutines
  • Loading branch information
danielpeter authored Nov 10, 2023
2 parents a14a4b9 + 2efc255 commit 5628056
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ doc/USER_MANUAL/Schedule
.*swo
.*swn
*~
*.pyc
10 changes: 10 additions & 0 deletions CUBIT_GEOCUBIT/geocubitlib/absorbing_boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ def define_parallel_absorbing_surf():
if dz <= topographic_surface_distance_tolerance and dn < topographic_surface_normal_tolerance:
top_surf.append(k)

# checking list sizes before return
len_return_items = [len(liste) for liste in \
absorbing_surf_xmin,absorbing_surf_xmax,absorbing_surf_ymin,absorbing_surf_ymax,\
absorbing_surf_bottom,top_surf]
if (0 in len_return_items ):
print ('WARNING::define_parallel_absorbing_surf:: empty return list(s). try increasing tolerance!')
import sys
sys.exit()
##

return absorbing_surf_xmin,absorbing_surf_xmax,absorbing_surf_ymin,absorbing_surf_ymax,absorbing_surf_bottom,top_surf

def define_top_bottom_absorbing_surf(zmin_box,zmax_box):
Expand Down
3 changes: 2 additions & 1 deletion CUBIT_GEOCUBIT/geocubitlib/save_fault_nodes_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def __init__(self,id,surface_u,surface_d):
print('len(Ad):',len(quads_Ad))

if not (len(quads_Au) == len(quads_Ad)):
print('Number of elements for each fauld side up and down do not concide')
print('Number of elements for up and down fault sides does not coincide!')
import sys
sys.exit('goodbye')

save_elements_nodes(self.name,quads_Au,quads_Ad)
Expand Down

0 comments on commit 5628056

Please sign in to comment.