Changeset 126 for trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2
- Timestamp:
- May 23, 2011, 8:40:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
r118 r126 155 155 INTEGER :: i,j,k,its,ite,jts,jte,ij 156 156 INTEGER :: subs,iii 157 REAL :: tau_decay 157 158 158 159 ! *** for LMD physics … … 620 621 621 622 SELECT CASE (MARS_MODE) !! ONLY ALLOW FOR MODES DEFINED IN Registry.EM 622 CASE(4-10,12 :) !! -- CHANGE THIS if YOU ADDED CASES in REGISTRY.EM623 CASE(4-10,12-19,21:) !! -- CHANGE THIS if YOU ADDED CASES in REGISTRY.EM 623 624 PRINT *, 'NOT SUPPORTED, to be done' 624 625 STOP … … 630 631 !package dust2eq mars==3 - scalar:qdust,qdustn 631 632 !package newwater mars==11 - scalar:qh2o,qh2o_ice,qdust,qdustn 633 !package radioac mars==20 - scalar:qtrac1 632 634 !!!!!!!!!!!!!!!!!!! FOR REFERENCE 633 635 … … 652 654 wtnom(3) = 'dust_mass' 653 655 wtnom(4) = 'dust_number' 656 CASE(20) 657 wtnom(1) = 'qtrac1' 654 658 END SELECT 655 659 #endif … … 696 700 IF ( wtnom(iii) .eq. 'co2' ) q_prof(:,iii) = 0.95 697 701 ENDDO 702 703 !! Mars mode 20 : add a passive tracer with radioactive-like decay 704 !! INIT HERE 705 IF (firstcall .EQV. .true.) THEN 706 IF (MARS_MODE .EQ. 20) THEN 707 q_prof(:,:) = 0.95 708 ENDIF 709 ENDIF 710 698 711 #else 699 712 SELECT CASE (MARS_MODE) … … 840 853 qsurf_val(2)=MARS_WICE(i,j) !! logique avec wtnom(2) = 'h2o_ice' defini ci-dessus 841 854 qsurf_val(3)=0. !! not coupled with lifting for the moment [non remobilise] 855 CASE(20) 856 qsurf_val(:)=0. 842 857 #else 843 858 CASE(3:) … … 1195 1210 #ifdef NEWPHYS 1196 1211 SCALAR(i,kps:kpe,j,1)=0. 1197 SCALAR(i,kps:kpe,j,2:nq+1)=SCALAR(i,kps:kpe,j,2:nq+1)+pdq(subs,kps:kpe,1:nq)*dt !!! here dt is needed 1212 !! Mars mode 20 : add a passive tracer with radioactive-like decay 1213 IF (MARS_MODE .EQ. 20) THEN 1214 print *, 'RADIOACTIVE-LIKE TRACER WITH SOURCE AT SURFACE LAYER.' 1215 tau_decay=60.*10. !! why not make it a namelist argument? 1216 SCALAR(i,kps:kpe,j,2) = SCALAR(i,kps:kpe,j,2)*exp(-dt/tau_decay) 1217 SCALAR(i,1,j,2) = SCALAR(i,1,j,2) + 1. !! this tracer is emitted in the surface layer 1218 ELSE 1219 SCALAR(i,kps:kpe,j,2:nq+1)=SCALAR(i,kps:kpe,j,2:nq+1)+pdq(subs,kps:kpe,1:nq)*dt !!! here dt is needed 1220 ENDIF 1198 1221 #else 1199 1222 SELECT CASE (MARS_MODE)
Note: See TracChangeset
for help on using the changeset viewer.