[cig-commits] r21223 - seismo/1D/SPECFEM1D/trunk
xie.zhinan at geodynamics.org
xie.zhinan at geodynamics.org
Thu Jan 10 23:32:11 PST 2013
Author: xie.zhinan
Date: 2013-01-10 23:32:10 -0800 (Thu, 10 Jan 2013)
New Revision: 21223
Modified:
seismo/1D/SPECFEM1D/trunk/wave.f90
Log:
add one comment about calculating the stiffness matrix
Modified: seismo/1D/SPECFEM1D/trunk/wave.f90
===================================================================
--- seismo/1D/SPECFEM1D/trunk/wave.f90 2013-01-10 23:07:08 UTC (rev 21222)
+++ seismo/1D/SPECFEM1D/trunk/wave.f90 2013-01-11 07:32:10 UTC (rev 21223)
@@ -118,7 +118,9 @@
double precision, parameter :: C = 0 !!15000
!! formulation of stiffness matrix
-
+!! In general, when using SEM together with explicit newmark scheme(beta=0, gamma=1/2 with diagonal damping matrix C),
+!! we do not need to calculate element stiffness matrixs and then assemble them into global stiffness matrix.
+!! But in case of using SEM with implicit newmark scheme, global stiffness matrix is needed. Thus we include it.
logical :: assemble_global_stiffness_matrix = .false.
integer :: i_interior,iglob_row,iglob_rol
double precision :: jocobianl, xixl, B_matrix_left, B_matrix_right, element_stiffness_matrix_block
@@ -216,9 +218,9 @@
!! calculate the assembled global stiffness matrix
if(assemble_global_stiffness_matrix)then
- global_stiffness_matrx = 0.
+ global_stiffness_matrx = 0.
- do ispec = 1,NSPEC
+ do ispec = 1,NSPEC
do i = 1,NGLL
iglob_row = ibool(i,ispec)
do j = 1,NGLL
@@ -236,7 +238,7 @@
element_stiffness_matrix_block
enddo
enddo
- enddo
+ enddo
endif
More information about the CIG-COMMITS
mailing list