Ticket #38522: relax.diff
File relax.diff, 6.9 KB (added by ryandesign (Ryan Carsten Schmidt), 12 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 920 920 WRITE (15,'("# x1 x2 x3 yr yz", & 921 921 & " slip strike-slip dip-slip velocity ss vel", & 922 922 & " 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, & 925 924 n(k)%patch(i1,i2)%lx,n(k)%patch(i1,i2)%lz, & 926 925 n(k)%patch(i1,i2)%slip, & 927 926 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 312 312 patch(j2,j3)%x3=x3 313 313 patch(j2,j3)%lx=yr 314 314 patch(j2,j3)%lz=zr 315 patch(j2,j3)%sig=s 315 316 316 317 ! discard out-of-bound locations 317 318 IF ( (x1 .GT. DBLE(sx1/2-1)*dx1) .OR. (x1 .LT. -DBLE(sx1/2)*dx1) & … … 329 330 330 331 ! traction = sigma . n 331 332 s=sig(i1,i2,i3) 332 patch(j2,j3)%sig=s333 333 t=s .tdot. n 334 334 335 335 ! signed normal component … … 426 426 DO j3=1,px3 427 427 ! loop in the strike direction 428 428 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 429 432 ! cumulative strike-direction creep 430 433 n(k)%patch(j2,j3)%ss=n(k)%patch(j2,j3)%ss+dt*n(k)%patch(j2,j3)%vss 431 434 432 435 ! cumulative dip-direction creep 433 436 n(k)%patch(j2,j3)%ds=n(k)%patch(j2,j3)%ds+dt*n(k)%patch(j2,j3)%vds 434 435 ! cumulative creep436 n(k)%patch(j2,j3)%slip=(n(k)%patch(j2,j3)%ds**2+n(k)%patch(j2,j3)%ss**2)**0.5437 437 END DO 438 438 END DO 439 439 -
src/input.f90
diff -ru Relax-1_0_4/src/input.f90 relax3d-1.0.4/src/input.f90
old new 818 818 819 819 ALLOCATE(in%n(k)%patch(in%n(k)%px2,in%n(k)%px3),STAT=iostatus) 820 820 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))822 821 823 822 #ifdef VTK 824 823 ! export the afterslip segment in VTK format … … 860 859 in%inter%s(k)%x,in%inter%s(k)%y,in%inter%s(k)%z, & 861 860 in%inter%s(k)%length,in%inter%s(k)%width, & 862 861 in%inter%s(k)%strike,in%inter%s(k)%dip,in%inter%s(k)%rake 863 in%inter%s(k)%opening=0864 862 865 863 ! copy the input format for display 866 864 in%inter%sc(k)=in%inter%s(k) … … 1025 1023 in%events(e)%s(k)%length,in%events(e)%s(k)%width, & 1026 1024 in%events(e)%s(k)%strike,in%events(e)%s(k)%dip,in%events(e)%s(k)%rake, & 1027 1025 in%events(e)%s(k)%beta 1028 in%events(e)%s(k)%opening=01029 1026 1030 1027 SELECT CASE(iostatus) 1031 1028 CASE (1:) -
src/relax.f90
diff -ru Relax-1_0_4/src/relax.f90 relax3d-1.0.4/src/relax.f90
old new 270 270 IF (in%isoutputrelax) THEN 271 271 ALLOCATE(inter1(in%sx1+2,in%sx2,2),inter2(in%sx1+2,in%sx2,2),inter3(in%sx1+2,in%sx2,2),STAT=iostatus) 272 272 IF (iostatus>0) STOP "could not allocate memory for postseismic displacement" 273 inter1=0;inter2=0;inter3=0;274 273 END IF 275 274 276 275 v1=0;v2=0;v3=0;u1=0;u2=0;u3=0;gamma=0;t1=0;t2=0;t3=0 … … 333 332 in%dx1,in%dx2,in%dx3,in%sx1,in%sx2,in%sx3/2,in%wdir,0) 334 333 335 334 ! export equivalent body forces 336 IF (isoutput(in%skip,t, 0,in%odt,oi,in%events(e)%time)) THEN335 IF (isoutput(in%skip,t,i,in%odt,oi,in%events(e)%time)) THEN 337 336 #ifdef GRD_EQBF 338 337 IF (in%isoutputgrd) THEN 339 338 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 53 53 def configure(cnf): 54 54 cnf.load('compiler_c compiler_fc') 55 55 56 # #Check for -zero or -finit-local-zero. We check it first, before57 # #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=False63 #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 #continue69 #else:70 #found_zero=True71 #break72 #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") 74 74 75 75 # We set the flags here 76 76 if not cnf.env.CFLAGS: … … 234 234 'src/input.f90', 235 235 'src/mkl_dfti.f90'], 236 236 includes=['build'], 237 use=['gmt','proj','openmp','fftw','imkl',' cpp','length'],237 use=['gmt','proj','openmp','fftw','imkl','zero','cpp','length'], 238 238 target='relax' 239 239 )