Skip to content

Commit

Permalink
Merge pull request #26 from komatits/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
komatits committed Feb 18, 2014
2 parents 3bae725 + d1a2dd7 commit cdb75e3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 48 deletions.
2 changes: 1 addition & 1 deletion flags.guess
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ case $FC in
# for debugging: change -O3 -check nobounds to -check all -debug -g -O0 -fp-stack-check -traceback -ftrapuv
#
## DK DK
## DK DK two other flags that can be useful: USE_BINARY_FOR_EXTERNAL_MESH_DATABASE USE_GUENNEAU
## DK DK another flag that can be useful: USE_BINARY_FOR_EXTERNAL_MESH_DATABASE
## DK DK
;;
gfortran|*/gfortran|f95|*/f95)
Expand Down
22 changes: 0 additions & 22 deletions src/specfem2D/compute_forces_viscoelastic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,6 @@ subroutine compute_forces_viscoelastic(p_sv,nglob,nspec,myrank,nelemabs,numat, &
real(kind=CUSTOM_REAL) :: nx,nz,vx,vy,vz,vn,rho_vp,rho_vs,tx,ty,tz,weight,xxi,zxi,xgamma,zgamma,jacobian1D
real(kind=CUSTOM_REAL) :: displx,disply,displz,displn,spring_position,displtx,displty,displtz

!! DK DK added this for Guenneau, March 2012
#ifdef USE_GUENNEAU
integer :: kmato_ispec_outside_Guenneau
real(kind=CUSTOM_REAL) :: ct, st, r, a, inva, lambda, mu, x, y, &
lambdaplus2mu, ct2 , ct3 , ct4 , twoct2 , st2 , st3 , st4
real(kind=CUSTOM_REAL) :: epsilon_xx,epsilon_xz,epsilon_zx,epsilon_zz
real(kind=CUSTOM_REAL) :: C1111, C1112, C1121, C1122, C1211, C1212, C1221, C1222, C2111, C2112, C2121, &
C2122, C2211, C2212, C2221, C2222
#endif
!! DK DK added this for Guenneau, March 2012

real(kind=CUSTOM_REAL), dimension(NGLLX,NGLLZ) :: tempx1,tempx2,tempy1,tempy2,tempz1,tempz2

! Jacobian matrix and determinant
Expand Down Expand Up @@ -747,12 +736,6 @@ subroutine compute_forces_viscoelastic(p_sv,nglob,nspec,myrank,nelemabs,numat, &
sigma_zz = lambdaplus2mu_unrelaxed_elastic*duz_dzl + lambdal_unrelaxed_elastic*dux_dxl
sigma_zx = sigma_xz

!! DK DK added this for Guenneau, March 2012
#ifdef USE_GUENNEAU
include "include_stiffness_Guenneau.f90"
#endif
!! DK DK added this for Guenneau, March 2012

if(PML_BOUNDARY_CONDITIONS .and. is_PML(ispec) .and. nspec_PML > 0) then
if(ROTATE_PML_ACTIVATE)then
theta = -ROTATE_PML_ANGLE/180._CUSTOM_REAL*Pi
Expand Down Expand Up @@ -820,11 +803,6 @@ subroutine compute_forces_viscoelastic(p_sv,nglob,nspec,myrank,nelemabs,numat, &
sigma_xz = c15*dux_dxl + c35*duz_dzl + c55*(duz_dxl + dux_dzl)
endif

! the stress tensor is symmetric by default, unless defined otherwise
#ifdef USE_GUENNEAU
sigma_zx = sigma_xz
#endif

! weak formulation term based on stress tensor (non-symmetric form)
! also add GLL integration weights
jacobianl = jacobian(i,j,ispec)
Expand Down
22 changes: 1 addition & 21 deletions src/specfem2D/invert_mass_matrix.F90
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ subroutine invert_mass_matrix_init(any_elastic,any_acoustic,any_poroelastic, &
ibegin_edge4,iend_edge4,ibegin_edge2,iend_edge2, &
rmass_inverse_elastic_three,&
nelemabs,vsext,xix,xiz,gammaz,gammax, &
!! DK DK added this for Guenneau, March 2012
#ifdef USE_GUENNEAU
coord, &
#endif
K_x_store,K_z_store,is_PML,&
d_x_store,d_z_store,PML_BOUNDARY_CONDITIONS,region_CPML, &
nspec_PML,spec_to_PML,time_stepping_scheme)
Expand Down Expand Up @@ -135,14 +131,7 @@ subroutine invert_mass_matrix_init(any_elastic,any_acoustic,any_poroelastic, &
logical :: PML_BOUNDARY_CONDITIONS,this_element_has_PML
integer, dimension(nspec) :: region_CPML

!! DK DK added this for Guenneau, March 2012
#ifdef USE_GUENNEAU
double precision, dimension(NDIM,nglob_elastic), intent(in) :: coord
real(kind=CUSTOM_REAL) :: r, epsr, epsfi, x, y
#endif
!! DK DK added this for Guenneau, March 2012

!! time scheme
! time scheme
integer :: time_stepping_scheme

! initialize mass matrix
Expand Down Expand Up @@ -231,17 +220,8 @@ subroutine invert_mass_matrix_init(any_elastic,any_acoustic,any_poroelastic, &
endif
else

!! DK DK added this for Guenneau, March 2012
#ifdef USE_GUENNEAU
include "include_mass_Guenneau.f90"
#endif
!! DK DK added this for Guenneau, March 2012

rmass_inverse_elastic_one(iglob) = rmass_inverse_elastic_one(iglob) &
+ wxgll(i)*wzgll(j)*rhol*jacobian(i,j,ispec)
#ifdef USE_GUENNEAU
endif
#endif
rmass_inverse_elastic_three(iglob) = rmass_inverse_elastic_one(iglob)
endif

Expand Down
4 changes: 0 additions & 4 deletions src/specfem2D/specfem2D.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3253,10 +3253,6 @@ program specfem2D
ibegin_edge4,iend_edge4,ibegin_edge2,iend_edge2, &
rmass_inverse_elastic_three,&
nelemabs,vsext,xix,xiz,gammaz,gammax, &
!! DK DK added this for Guenneau, March 2012
#ifdef USE_GUENNEAU
coord, &
#endif
K_x_store,K_z_store,is_PML,&
d_x_store,d_z_store,PML_BOUNDARY_CONDITIONS,region_CPML, &
nspec_PML,spec_to_PML,time_stepping_scheme)
Expand Down

0 comments on commit cdb75e3

Please sign in to comment.