- Timestamp:
- Jul 22, 2024, 9:46:57 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/cosp2/optics_lib.F90
r5086 r5095 539 539 if (alam < cutice) then 540 540 ! Region from 0.045 microns to 167.0 microns - no temperature depend 541 do i=2,nwl 542 if(alam < wl(i)) continue 543 enddo 541 544 x1 = log(wl(i-1)) 542 545 x2 = log(wl(i)) … … 555 558 if(tk < temref(4)) tk=temref(4) 556 559 do i=2,4 557 if(tk >=temref(i)) go to 12560 if(tk.ge.temref(i)) go to 12 558 561 enddo 559 562 12 lt1 = i 560 563 lt2 = i-1 561 564 do i=2,nwlt 562 if(alam <=wlt(i)) go to 14565 if(alam.le.wlt(i)) go to 14 563 566 enddo 564 567 14 x1 = log(wlt(i-1)) … … 649 652 Complex(wp) :: A1 650 653 651 If ((Dx >Imaxx) .Or. (InP>ImaxNP)) Then654 If ((Dx.Gt.Imaxx) .Or. (InP.Gt.ImaxNP)) Then 652 655 Error = 1 653 656 Return … … 656 659 Ir = 1 / Cm 657 660 Y = Dx * Cm 658 If (Dx <0.02) Then661 If (Dx.Lt.0.02) Then 659 662 NStop = 2 660 663 Else 661 If (Dx <=8.0) Then664 If (Dx.Le.8.0) Then 662 665 NStop = Dx + 4.00*Dx**(1./3.) + 2.0 663 666 Else 664 If (Dx <4200.0) Then667 If (Dx.Lt. 4200.0) Then 665 668 NStop = Dx + 4.05*Dx**(1./3.) + 2.0 666 669 Else … … 670 673 End If 671 674 NmX = Max(Real(NStop),Real(Abs(Y))) + 15. 672 If (Nmx >Itermax) then675 If (Nmx .gt. Itermax) then 673 676 Error = 1 674 677 Return … … 723 726 !ds Dqxt = Tnp1 * Dble(A + B) + Dqxt 724 727 Dqsc = Tnp1 * (A*Conjg(A) + B*Conjg(B)) + Dqsc 725 If (N >1) then728 If (N.Gt.1) then 726 729 Dg = Dg + (dN*dN - 1) * (ANM1*Conjg(A) + BNM1 * Conjg(B)) / dN + TNM1 *(ANM1*Conjg(BNM1)) / (dN*dN - dN) 727 730 !ds Dg = Dg + (dN*dN - 1) * Dble(ANM1*Conjg(A) + BNM1 * Conjg(B)) / dN + TNM1 * Dble(ANM1*Conjg(BNM1)) / (dN*dN - dN) … … 732 735 AMB = A2 * (A - B) 733 736 Do I = 1,Inp2 734 If (I >Inp) Then737 If (I.GT.Inp) Then 735 738 S(I) = -Pi1(I) 736 739 Else … … 753 756 End Do 754 757 755 If (Dg >0) Dg = 2 * Dg / Dqsc758 If (Dg .GT.0) Dg = 2 * Dg / Dqsc 756 759 Dqsc = 2 * Dqsc / Dx**2 757 760 Dqxt = 2 * Dqxt / Dx**2
Note: See TracChangeset
for help on using the changeset viewer.