Changeset 164 for trunk/LMDZ.MARS/libf/dyn3d
- Timestamp:
- Jun 17, 2011, 10:49:17 AM (14 years ago)
- Location:
- trunk/LMDZ.MARS/libf/dyn3d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dyn3d/lect_start_archive.F
r146 r164 1136 1136 allocate(oldval(nsoilold+1)) 1137 1137 allocate(newval(nsoilmx)) 1138 do i=1,i mold+11139 do j=1,j mold+11138 do i=1,iip1 1139 do j=1,jjp1 1140 1140 ! copy values 1141 1141 oldval(1)=tsurfold(i,j) … … 1168 1168 oldgrid(1)=0. ! ground 1169 1169 oldgrid(2:nsoilold+1)=mlayerold(1:nsoilold) 1170 do i=1,i mold+11171 do j=1,j mold+11170 do i=1,iip1 1171 do j=1,jjp1 1172 1172 ! copy values 1173 1173 oldval(1)=tsurfold(i,j) -
trunk/LMDZ.MARS/libf/dyn3d/newstart.F
r38 r164 14 14 c 15 15 c======================================================================= 16 17 ! to use 'getin' 18 USE ioipsl_getincom 16 19 17 20 implicit none … … 40 43 #include"advtrac.h" 41 44 #include"tracer.h" 45 #include "datafile.h" 42 46 c======================================================================= 43 47 c Declarations … … 50 54 c et autres: 51 55 c---------- 52 INTEGER lnblnk53 EXTERNAL lnblnk54 56 55 57 c Variables pour les lectures NetCDF des fichiers "start_archive" … … 358 360 relief="mola" 359 361 c enddo 362 363 ! before using datareadnc, "datafile" must be set (normaly done in inifis) 364 datafile="/u/forget/WWW/datagcm/datafile" ! default value 365 call getin("datadir",datafile) ! in case user specified another path 360 366 361 367 CALL datareadnc(relief,phis,alb,surfith,zmeaS,zstdS,zsigS,zgamS, … … 499 505 500 506 write(*,*) 501 write(*,*) modif(1:lnblnk(modif)) , ' : '507 write(*,*) trim(modif) , ' : ' 502 508 503 509 c 'flat : no topography ("aquaplanet")' 504 510 c ------------------------------------- 505 if ( modif(1:lnblnk(modif)) .eq. 'flat') then511 if (trim(modif) .eq. 'flat') then 506 512 c set topo to zero 507 513 CALL initial0(ip1jmp1,z_reel) … … 537 543 c bilball : albedo, inertie thermique uniforme 538 544 c -------------------------------------------- 539 else if ( modif(1:lnblnk(modif)) .eq. 'bilball') then545 else if (trim(modif) .eq. 'bilball') then 540 546 write(*,*) 'constante albedo and iner.therm:' 541 547 write(*,*) 'New value for albedo (ex: 0.25) ?' … … 564 570 c coldspole : sous-sol de la calotte sud toujours froid 565 571 c ----------------------------------------------------- 566 else if ( modif(1:lnblnk(modif)) .eq. 'coldspole') then572 else if (trim(modif) .eq. 'coldspole') then 567 573 write(*,*)'new value for the subsurface temperature', 568 574 & ' beneath the permanent southern polar cap ? (eg: 141 K)' … … 615 621 c ptot : Modification of the total pressure: ice + current atmosphere 616 622 c ------------------------------------------------------------------- 617 else if ( modif(1:lnblnk(modif)) .eq. 'ptot') then623 else if (trim(modif) .eq. 'ptot') then 618 624 619 625 c calcul de la pression totale glace + atm actuelle … … 699 705 c q=0 : set tracers to zero 700 706 c ------------------------- 701 else if ( modif(1:lnblnk(modif)) .eq. 'q=0') then707 else if (trim(modif) .eq. 'q=0') then 702 708 c mise a 0 des q (traceurs) 703 709 write(*,*) 'Tracers set to 0 (1.E-30 in fact)' … … 721 727 c q=x : initialise tracer manually 722 728 c -------------------------------- 723 else if ( modif(1:lnblnk(modif)) .eq. 'q=x') then729 else if (trim(modif) .eq. 'q=x') then 724 730 write(*,*) 'Which tracer do you want to modify ?' 725 731 do iq=1,nqmx … … 747 753 c ini_q : Initialize tracers for chemistry 748 754 c ----------------------------------------------- 749 else if ( modif(1:lnblnk(modif)) .eq. 'ini_q') then755 else if (trim(modif) .eq. 'ini_q') then 750 756 c For more than 32 layers, possible to initiate thermosphere only 751 757 thermo=0 … … 779 785 c ini_q-H2O : as above exept for the water vapour tracer 780 786 c ------------------------------------------------------ 781 else if ( modif(1:lnblnk(modif)) .eq. 'ini_q-H2O') then787 else if (trim(modif) .eq. 'ini_q-H2O') then 782 788 ! for more than 32 layers, possible to initiate thermosphere only 783 789 thermo=0 … … 812 818 c ini_q-iceH2O : as above exept for ice et H2O 813 819 c ----------------------------------------------- 814 else if ( modif(1:lnblnk(modif)) .eq. 'ini_q-iceH2O') then820 else if (trim(modif) .eq. 'ini_q-iceH2O') then 815 821 c For more than 32 layers, possible to initiate thermosphere only 816 822 thermo=0 … … 846 852 c wetstart : wet atmosphere with a north to south gradient 847 853 c -------------------------------------------------------- 848 else if ( modif(1:lnblnk(modif)) .eq. 'wetstart') then854 else if (trim(modif) .eq. 'wetstart') then 849 855 ! check that there is indeed a water vapor tracer 850 856 if (igcm_h2o_vap.eq.0) then … … 867 873 c noglacier : remove tropical water ice (to initialize high res sim) 868 874 c -------------------------------------------------- 869 else if ( modif(1:lnblnk(modif)) .eq. 'noglacier') then875 else if (trim(modif) .eq. 'noglacier') then 870 876 do ig=1,ngridmx 871 877 j=(ig-2)/iim +2 … … 880 886 c watercapn : H20 ice on permanent northern cap 881 887 c -------------------------------------------------- 882 else if ( modif(1:lnblnk(modif)) .eq. 'watercapn') then888 else if (trim(modif) .eq. 'watercapn') then 883 889 do ig=1,ngridmx 884 890 j=(ig-2)/iim +2 … … 895 901 c watercaps : H20 ice on permanent southern cap 896 902 c ------------------------------------------------- 897 else if ( modif(1:lnblnk(modif)) .eq. 'watercaps') then903 else if (trim(modif) .eq. 'watercaps') then 898 904 do ig=1,ngridmx 899 905 j=(ig-2)/iim +2 … … 910 916 c isotherm : Isothermal temperatures and no winds 911 917 c ------------------------------------------------ 912 else if ( modif(1:lnblnk(modif)) .eq. 'isotherm') then918 else if (trim(modif) .eq. 'isotherm') then 913 919 914 920 write(*,*)'Isothermal temperature of the atmosphere, … … 933 939 c co2ice=0 : remove CO2 polar ice caps' 934 940 c ------------------------------------------------ 935 else if ( modif(1:lnblnk(modif)) .eq. 'co2ice=0') then941 else if (trim(modif) .eq. 'co2ice=0') then 936 942 do ig=1,ngridmx 937 943 co2ice(ig)=0 … … 942 948 ! ---------------------------------------------------------------------- 943 949 944 else if ( modif(1:lnblnk(modif)).eq.'therm_ini_s') then950 else if (trim(modif).eq.'therm_ini_s') then 945 951 ! write(*,*)"surfithfi(1):",surfithfi(1) 946 952 do isoil=1,nsoilmx … … 965 971 ! ------------------------------------------------------------ 966 972 967 else if ( modif(1:lnblnk(modif)).eq.'subsoilice_n') then973 else if (trim(modif).eq.'subsoilice_n') then 968 974 969 975 write(*,*)'From which latitude (in deg.), up to the north pole, … … 1078 1084 ! ------------------------------------------------------------ 1079 1085 1080 else if ( modif(1:lnblnk(modif)).eq.'subsoilice_s') then1086 else if (trim(modif).eq.'subsoilice_s') then 1081 1087 1082 1088 write(*,*)'From which latitude (in deg.), down to the south pol … … 1179 1185 c 'mons_ice' : use MONS data to build subsurface ice table 1180 1186 c -------------------------------------------------------- 1181 else if ( modif(1:lnblnk(modif)).eq.'mons_ice') then1187 else if (trim(modif).eq.'mons_ice') then 1182 1188 1183 1189 ! 1. Load MONS data … … 1285 1291 else 1286 1292 write(*,*) ' Unknown (misspelled?) option!!!' 1287 end if ! of if ( modif(1:lnblnk(modif)) .eq. '...') elseif ...1293 end if ! of if (trim(modif) .eq. '...') elseif ... 1288 1294 1289 1295 enddo ! of do ! infinite loop on liste of changes
Note: See TracChangeset
for help on using the changeset viewer.