Ticket #38522: relax.diff

File relax.diff, 6.9 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)
  • src/export.f90

    Only in Relax-1_0_4: .bzrignore
    Only in Relax-1_0_4: .doxygen
    Only in Relax-1_0_4: .hg_archival.txt
    Only in Relax-1_0_4: .hgtags
    Only in Relax-1_0_4: INSTALL-BIN
    Only in Relax-1_0_4: INSTALL.STATIC
    Only in Relax-1_0_4: examples
    Only in Relax-1_0_4: latex
    Only in Relax-1_0_4: relax.info
    Only in relax3d-1.0.4: relax.tex
    Only in Relax-1_0_4: setup.bat
    Only in Relax-1_0_4: setup.csh
    Only in Relax-1_0_4: setup.sh
    diff -ru Relax-1_0_4/src/export.f90 relax3d-1.0.4/src/export.f90
    old new  
    920920       WRITE (15,'("#        x1         x2         x3          yr        yz", &
    921921                 & "       slip strike-slip  dip-slip   velocity     ss vel", &
    922922                 & "     ds vel       taus      sig11      sig12      sig13      sig22      sig23      sig33")')
    923 
    924        WRITE (15,'(18ES11.3E2)') ((n(k)%patch(i1,i2)%x1,n(k)%patch(i1,i2)%x2,n(k)%patch(i1,i2)%x3, &
     923       WRITE (15,'(18ES11.3E2)') ((n(k)%patch(i1,i2)%x1,n(k)%patch(i1,i2)%x3,n(k)%patch(i1,i2)%x3, &
    925924                                  n(k)%patch(i1,i2)%lx,n(k)%patch(i1,i2)%lz, &
    926925                                  n(k)%patch(i1,i2)%slip, &
    927926                                  n(k)%patch(i1,i2)%ss, &
  • src/friction3d.f90

    diff -ru Relax-1_0_4/src/friction3d.f90 relax3d-1.0.4/src/friction3d.f90
    old new  
    312312          patch(j2,j3)%x3=x3
    313313          patch(j2,j3)%lx=yr
    314314          patch(j2,j3)%lz=zr
     315          patch(j2,j3)%sig=s
    315316
    316317          ! discard out-of-bound locations
    317318          IF (  (x1 .GT. DBLE(sx1/2-1)*dx1) .OR. (x1 .LT. -DBLE(sx1/2)*dx1) &
     
    329330       
    330331          ! traction = sigma . n
    331332          s=sig(i1,i2,i3)
    332           patch(j2,j3)%sig=s
    333333          t=s .tdot. n
    334334
    335335          ! signed normal component
     
    426426       DO j3=1,px3
    427427          ! loop in the strike direction
    428428          DO j2=1,px2
     429             ! cumulative creep
     430             n(k)%patch(j2,j3)%slip=n(k)%patch(j2,j3)%slip+dt*n(k)%patch(j2,j3)%v
     431
    429432             ! cumulative strike-direction creep
    430433             n(k)%patch(j2,j3)%ss=n(k)%patch(j2,j3)%ss+dt*n(k)%patch(j2,j3)%vss
    431434
    432435             ! cumulative dip-direction creep
    433436             n(k)%patch(j2,j3)%ds=n(k)%patch(j2,j3)%ds+dt*n(k)%patch(j2,j3)%vds
    434 
    435              ! cumulative creep
    436              n(k)%patch(j2,j3)%slip=(n(k)%patch(j2,j3)%ds**2+n(k)%patch(j2,j3)%ss**2)**0.5
    437437          END DO
    438438       END DO
    439439
  • src/input.f90

    diff -ru Relax-1_0_4/src/input.f90 relax3d-1.0.4/src/input.f90
    old new  
    818818
    819819             ALLOCATE(in%n(k)%patch(in%n(k)%px2,in%n(k)%px3),STAT=iostatus)
    820820             IF (iostatus>0) STOP "could not allocate the fault patches"
    821              in%n(k)%patch(:,:)=SLIPPATCH_STRUCT(0,0,0,0,0,0,0,0,0,0,0,0,TENSOR(0,0,0,0,0,0))
    822821
    823822#ifdef VTK
    824823             ! export the afterslip segment in VTK format
     
    860859               in%inter%s(k)%x,in%inter%s(k)%y,in%inter%s(k)%z, &
    861860               in%inter%s(k)%length,in%inter%s(k)%width, &
    862861               in%inter%s(k)%strike,in%inter%s(k)%dip,in%inter%s(k)%rake
    863           in%inter%s(k)%opening=0
    864862
    865863          ! copy the input format for display
    866864          in%inter%sc(k)=in%inter%s(k)
     
    10251023                  in%events(e)%s(k)%length,in%events(e)%s(k)%width, &
    10261024                  in%events(e)%s(k)%strike,in%events(e)%s(k)%dip,in%events(e)%s(k)%rake, &
    10271025                  in%events(e)%s(k)%beta
    1028              in%events(e)%s(k)%opening=0
    10291026
    10301027             SELECT CASE(iostatus)
    10311028             CASE (1:)
  • src/relax.f90

    diff -ru Relax-1_0_4/src/relax.f90 relax3d-1.0.4/src/relax.f90
    old new  
    270270  IF (in%isoutputrelax) THEN
    271271     ALLOCATE(inter1(in%sx1+2,in%sx2,2),inter2(in%sx1+2,in%sx2,2),inter3(in%sx1+2,in%sx2,2),STAT=iostatus)
    272272     IF (iostatus>0) STOP "could not allocate memory for postseismic displacement"
    273      inter1=0;inter2=0;inter3=0;
    274273  END IF
    275274
    276275  v1=0;v2=0;v3=0;u1=0;u2=0;u3=0;gamma=0;t1=0;t2=0;t3=0
     
    333332                         in%dx1,in%dx2,in%dx3,in%sx1,in%sx2,in%sx3/2,in%wdir,0)
    334333 
    335334  ! export equivalent body forces
    336   IF (isoutput(in%skip,t,0,in%odt,oi,in%events(e)%time)) THEN
     335  IF (isoutput(in%skip,t,i,in%odt,oi,in%events(e)%time)) THEN
    337336#ifdef GRD_EQBF
    338337     IF (in%isoutputgrd) THEN
    339338        CALL exportgrd(v1,v2,v3,in%sx1,in%sx2,in%sx3/2, &
  • wscript

    Only in relax3d-1.0.4/util: my_res.cpt
    Only in relax3d-1.0.4/util: red.cpt
    diff -ru Relax-1_0_4/wscript relax3d-1.0.4/wscript
    old new  
    5353def configure(cnf):
    5454    cnf.load('compiler_c compiler_fc')
    5555   
    56     # # Check for -zero or -finit-local-zero.  We check it first, before
    57     # # setting CFLAGS, because optimization can ruin this test.
    58     # frag="program main\n  INTEGER :: foo\n  call exit(foo)\n" + "end program main\n"
    59     # zero_flags=['-zero','-finit-local-zero']
    60     # if cnf.options.zero_flag:
    61     #     zero_flags=[cnf.options.zero_flag]
    62     # found_zero=False
    63     # for flag in zero_flags:
    64     #     try:
    65     #         cnf.check_fc(fragment=frag,msg="Checking zero option " + flag,
    66     #                      fcflags=flag,uselib_store='zero',execute=True)
    67     #     except:
    68     #         continue
    69     #     else:
    70     #         found_zero=True
    71     #         break
    72     # if not found_zero:
    73     #     cnf.fatal("Could not find an option for zero'ing initial values")
     56    # Check for -zero or -finit-local-zero.  We check it first, before
     57    # setting CFLAGS, because optimization can ruin this test.
     58    frag="program main\n  INTEGER :: foo\n  call exit(foo)\n" + "end program main\n"
     59    zero_flags=['-zero','-finit-local-zero']
     60    if cnf.options.zero_flag:
     61        zero_flags=[cnf.options.zero_flag]
     62    found_zero=False
     63    for flag in zero_flags:
     64        try:
     65            cnf.check_fc(fragment=frag,msg="Checking zero option " + flag,
     66                         fcflags=flag,uselib_store='zero',execute=True)
     67        except:
     68            continue
     69        else:
     70            found_zero=True
     71            break
     72    if not found_zero:
     73        cnf.fatal("Could not find an option for zero'ing initial values")
    7474
    7575    # We set the flags here
    7676    if not cnf.env.CFLAGS:
     
    234234                        'src/input.f90',
    235235                        'src/mkl_dfti.f90'],
    236236                includes=['build'],
    237                 use=['gmt','proj','openmp','fftw','imkl','cpp','length'],
     237                use=['gmt','proj','openmp','fftw','imkl','zero','cpp','length'],
    238238                target='relax'
    239239                )