Changeset 2217 for trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Timestamp:
- Jan 14, 2020, 8:50:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/newstart.F
r2175 r2217 500 500 write(*,*) 'qname : change tracer name' 501 501 write(*,*) 'q=0 : ALL tracer =zero' 502 write(*,*) 'q=factor : change tracer value by a multiplicative 503 & factor' 502 504 write(*,*) 'q=x : give a specific uniform value to one 503 505 $ tracer' … … 770 772 ENDDO 771 773 ENDDO 774 775 c q=factor : change value of tracer by a multiplicative factor 776 c ------------------------------------------------------------ 777 else if (trim(modif) .eq. 'q=factor') then 778 write(*,*) 'Which tracer do you want to modify ?' 779 do iq=1,nqtot 780 write(*,*)iq,' : ',trim(tname(iq)) 781 enddo 782 write(*,*) '(choose between 1 and ',nqtot,')' 783 read(*,*) iq 784 if ((iq.lt.1).or.(iq.gt.nqtot)) then 785 ! wrong value for iq, go back to menu 786 write(*,*) "wrong input value:",iq 787 cycle 788 endif 789 write(*,*)"factor to multiply current mixing ratio by?" 790 read(*,*) val 791 792 q(1:iip1,1:jjp1,1:llm,iq)=q(1:iip1,1:jjp1,1:llm,iq)*val 793 qsurf(1:ngridmx,iq)=qsurf(1:ngridmx,iq)*val 772 794 773 795 c q=x : initialise tracer manually … … 1019 1041 ! molar mass of non-co2 atmosphere measured by MSL at Ls ~184 1020 1042 1021 write(*,*) 1043 else 1044 ! Assume co2/n2/ar/o2/co are available 1045 Mair_old=(q(iref,jref,1,igcm_co2)*mmol(igcm_co2) 1046 & +q(iref,jref,1,igcm_n2)*mmol(igcm_n2) 1047 & +q(iref,jref,1,igcm_ar)*mmol(igcm_ar) 1048 & +q(iref,jref,1,igcm_o2)*mmol(igcm_o2) 1049 & +q(iref,jref,1,igcm_co)*mmol(igcm_co))/Smmr 1050 end if 1051 1052 write(*,*) 1022 1053 & "Air molar mass (g/mol) at reference site= ",Mair_old 1023 end if1024 1054 1025 1055 ! Ask for new volume mixing ratio at reference site … … 1114 1144 enddo 1115 1145 enddo 1116 1117 1118 ! do l=1,llm1119 ! do j=1,jjp11120 ! do i=1,iip11121 ! Smmr_old = 0.1122 ! Smmr_new = 0.1123 ! do iq=1,nqtot1124 ! if ((iq.eq.igcm_co2).or.(iq.eq.igcm_n2)1125 ! & .or.(iq.eq.igcm_ar)1126 ! & .or. (iq.eq.igcm_o2).or.(iq.eq.igcm_co)) then1127 ! Smmr_old = Smmr_old + q(i,j,l,iq) ! sum of old mmr1128 ! q(i,j,l,iq)=q(i,j,l,iq)*coefvmr(iq)*Mair_old/Mair_new1129 ! Smmr_new = Smmr_new + q(i,j,l,iq) ! sum of new mmr1130 ! end if1131 ! enddo1132 ! iloc = maxloc(q(i,j,l,:))1133 ! iqmax = iloc(1)1134 ! q(i,j,l,iqmax) = q(i,j,l,iqmax) + Smmr_old - Smmr_new1135 ! enddo1136 ! enddo1137 ! enddo1138 1146 1139 1147 write(*,*)
Note: See TracChangeset
for help on using the changeset viewer.