Changeset 2372 for LMDZ5/trunk/libf
- Timestamp:
- Oct 13, 2015, 2:41:47 PM (9 years ago)
- Location:
- LMDZ5/trunk/libf
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3d/gcm.F90
r2351 r2372 24 24 USE mod_const_mpi, ONLY: COMM_LMDZ 25 25 26 #ifdef INCA27 ! Only INCA needs these informations (from the Earth's physics)28 USE indice_sol_mod29 USE mod_phys_lmdz_para, ONLY : klon_mpi_para_nb30 #endif31 26 32 27 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 86 81 include "iniprint.h" 87 82 include "tracstoke.h" 88 #ifdef INCA89 ! Only INCA needs these informations (from the Earth's physics)90 !include "indicesol.h"91 #endif92 83 93 84 REAL zdtvr … … 209 200 #endif 210 201 !----------------------------------------------------------------------- 211 212 IF (type_trac == 'inca') THEN213 #ifdef INCA214 call init_const_lmdz(nbtr,anneeref,dayref,iphysiq,day_step,nday, &215 nbsrf, is_oce,is_sic,is_ter,is_lic)216 call init_inca_para(iim,jjm+1,klon,1,klon_mpi_para_nb,0)217 #endif218 END IF219 202 ! 220 203 ! … … 260 243 261 244 endif ! of if (read_start) 262 263 IF (type_trac == 'inca') THEN264 #ifdef INCA265 call init_inca_dim(klon,llm,iim,jjm, &266 rlonu,rlatu,rlonv,rlatv)267 #endif268 END IF269 245 270 246 -
LMDZ5/trunk/libf/dyn3d_common/infotrac.F90
r2362 r2372 201 201 END IF 202 202 ! nbtr has been read from INCA by init_const_lmdz() in gcm.F 203 #ifdef INCA 204 CALL Init_chem_inca_trac(nbtr) 205 #endif 203 206 nqtrue=nbtr+nqo 204 !! nqtrue=nbtr+2205 207 END IF ! type_trac 206 208 !>jyg … … 678 680 679 681 do iq=nqo+1,nqtot 680 write(lunout,*) 'infotrac 569: iq,tnom_0(iq)=',iq,tnom_0(iq)682 ! write(lunout,*) 'infotrac 569: iq,tnom_0(iq)=',iq,tnom_0(iq) 681 683 do phase=1,nqo 682 684 do ixt= 1,niso_possibles 683 685 tnom_trac=trim(tnom_0(phase))//'_' 684 686 tnom_trac=trim(tnom_trac)//trim(tnom_iso(ixt)) 685 write(*,*) 'phase,ixt,tnom_trac=',phase,ixt,tnom_trac687 ! write(*,*) 'phase,ixt,tnom_trac=',phase,ixt,tnom_trac 686 688 IF (tnom_0(iq) == tnom_trac) then 687 write(lunout,*) 'Ce traceur est un isotope'689 ! write(lunout,*) 'Ce traceur est un isotope' 688 690 nb_iso(ixt,phase)=nb_iso(ixt,phase)+1 689 691 nb_isoind(phase)=nb_isoind(phase)+1 … … 692 694 indnum_fn_num(ixt)=iso_indnum(iq) 693 695 phase_num(iq)=phase 694 write(lunout,*) 'iso_num(iq)=',iso_num(iq)695 write(lunout,*) 'iso_indnum(iq)=',iso_indnum(iq)696 write(lunout,*) 'indnum_fn_num(ixt)=',indnum_fn_num(ixt)697 write(lunout,*) 'phase_num(iq)=',phase_num(iq)696 ! write(lunout,*) 'iso_num(iq)=',iso_num(iq) 697 ! write(lunout,*) 'iso_indnum(iq)=',iso_indnum(iq) 698 ! write(lunout,*) 'indnum_fn_num(ixt)=',indnum_fn_num(ixt) 699 ! write(lunout,*) 'phase_num(iq)=',phase_num(iq) 698 700 goto 20 699 701 else if (iqpere(iq).gt.0) then 700 702 if (tnom_0(iqpere(iq)) == tnom_trac) then 701 write(lunout,*) 'Ce traceur est le fils d''un isotope'703 ! write(lunout,*) 'Ce traceur est le fils d''un isotope' 702 704 ! c'est un traceur d'isotope 703 705 nb_traciso(ixt,phase)=nb_traciso(ixt,phase)+1 … … 706 708 zone_num(iq)=nb_traciso(ixt,phase) 707 709 phase_num(iq)=phase 708 write(lunout,*) 'iso_num(iq)=',iso_num(iq)709 write(lunout,*) 'phase_num(iq)=',phase_num(iq)710 write(lunout,*) 'zone_num(iq)=',zone_num(iq)710 ! write(lunout,*) 'iso_num(iq)=',iso_num(iq) 711 ! write(lunout,*) 'phase_num(iq)=',phase_num(iq) 712 ! write(lunout,*) 'zone_num(iq)=',zone_num(iq) 711 713 goto 20 712 714 endif !if (tnom_0(iqpere(iq)) == trim(tnom_0(phase))//trim(tnom_iso(ixt))) then … … 717 719 enddo !do iq=1,nqtot 718 720 719 write(lunout,*) 'iso_num=',iso_num720 write(lunout,*) 'iso_indnum=',iso_indnum721 write(lunout,*) 'zone_num=',zone_num722 write(lunout,*) 'phase_num=',phase_num723 write(lunout,*) 'indnum_fn_num=',indnum_fn_num721 ! write(lunout,*) 'iso_num=',iso_num 722 ! write(lunout,*) 'iso_indnum=',iso_indnum 723 ! write(lunout,*) 'zone_num=',zone_num 724 ! write(lunout,*) 'phase_num=',phase_num 725 ! write(lunout,*) 'indnum_fn_num=',indnum_fn_num 724 726 725 727 do ixt= 1,niso_possibles … … 730 732 do phase=2,nqo 731 733 if (nb_iso(ixt,phase).ne.nb_iso(ixt,1)) then 732 write(lunout,*) 'ixt,phase,nb_iso=',ixt,phase,nb_iso(ixt,phase)734 ! write(lunout,*) 'ixt,phase,nb_iso=',ixt,phase,nb_iso(ixt,phase) 733 735 CALL abort_gcm('infotrac_init','Phases must have same number of isotopes',1) 734 736 endif … … 769 771 ! dimensions isotopique: 770 772 ntraciso=niso*(ntraceurs_zone+1) 771 WRITE(lunout,*) 'niso=',niso772 WRITE(lunout,*) 'ntraceurs_zone,ntraciso=',ntraceurs_zone,ntraciso773 ! WRITE(lunout,*) 'niso=',niso 774 ! WRITE(lunout,*) 'ntraceurs_zone,ntraciso=',ntraceurs_zone,ntraciso 773 775 774 776 ! flags isotopiques: … … 778 780 ok_isotopes=.false. 779 781 endif 780 WRITE(lunout,*) 'ok_isotopes=',ok_isotopes782 ! WRITE(lunout,*) 'ok_isotopes=',ok_isotopes 781 783 782 784 if (ok_isotopes) then … … 788 790 alpha_ideal=(/1.0,1.01,1.006,1.003,1.0/) 789 791 endif !if (ok_isotopes) then 790 WRITE(lunout,*) 'ok_iso_verif=',ok_iso_verif791 WRITE(lunout,*) 'ok_init_iso=',ok_init_iso792 ! WRITE(lunout,*) 'ok_iso_verif=',ok_iso_verif 793 ! WRITE(lunout,*) 'ok_init_iso=',ok_init_iso 792 794 793 795 if (ntraceurs_zone.gt.0) then … … 796 798 ok_isotrac=.false. 797 799 endif 798 WRITE(lunout,*) 'ok_isotrac=',ok_isotrac800 ! WRITE(lunout,*) 'ok_isotrac=',ok_isotrac 799 801 800 802 ! remplissage du tableau iqiso(ntraciso,phase) … … 807 809 endif 808 810 enddo 809 WRITE(lunout,*) 'iqiso=',iqiso811 ! WRITE(lunout,*) 'iqiso=',iqiso 810 812 811 813 ! replissage du tableau index_trac(ntraceurs_zone,niso) … … 820 822 index_trac(:,:)=0.0 821 823 endif !if (ok_isotrac) then 822 write(lunout,*) 'index_trac=',index_trac824 ! write(lunout,*) 'index_trac=',index_trac 823 825 824 826 ! Finalize : -
LMDZ5/trunk/libf/dyn3dmem/gcm.F90
r2362 r2372 17 17 USE filtreg_mod 18 18 USE control_mod 19 20 #ifdef INCA21 ! Only INCA needs these informations (from the Earth's physics)22 USE indice_sol_mod23 USE mod_phys_lmdz_omp_data, ONLY: klon_omp24 USE mod_grid_phy_lmdz, ONLY : klon_glo25 #endif26 19 27 20 #ifdef CPP_PHYS … … 74 67 include "tracstoke.h" 75 68 76 #ifdef INCA77 ! Only INCA needs these informations (from the Earth's physics)78 !include "indicesol.h"79 #endif80 69 81 70 REAL zdtvr … … 198 187 #endif 199 188 200 IF (type_trac == 'inca') THEN201 #ifdef INCA202 call init_const_lmdz( &203 nbtr,anneeref,dayref, &204 iphysiq,day_step,nday, &205 nbsrf, is_oce,is_sic, &206 is_ter,is_lic, calend)207 208 call init_inca_para( &209 iim,jjm+1,llm,klon_glo,mpi_size, &210 distrib_phys,COMM_LMDZ)211 #endif212 END IF213 189 214 190 !----------------------------------------------------------------------- … … 408 384 409 385 !----------------------------------------------------------------------- 410 ! Initialisation des dimensions d'INCA :411 ! --------------------------------------412 IF (type_trac == 'inca') THEN413 !$OMP PARALLEL414 #ifdef INCA415 CALL init_inca_dim(klon_omp,llm,iim,jjm, &416 rlonu,rlatu,rlonv,rlatv)417 #endif418 !$OMP END PARALLEL419 END IF420 421 !-----------------------------------------------------------------------422 386 ! Initialisation des I/O : 423 387 ! ------------------------ -
LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/iniphysiq_mod.F90
r2355 r2372 13 13 USE dimphy, ONLY: init_dimphy 14 14 USE mod_grid_phy_lmdz, ONLY: klon_glo, & ! number of atmospheric columns (on full grid) 15 regular_lonlat ! regular longitude-latitude grid type 15 regular_lonlat, & ! regular longitude-latitude grid type 16 nbp_lon, nbp_lat, nbp_lev 16 17 USE mod_phys_lmdz_para, ONLY: klon_omp, & ! number of columns (on local omp grid) 17 18 klon_omp_begin, & ! start index of local omp subgrid … … 32 33 USE CHEM_REP, ONLY : Init_chem_rep_phys 33 34 #endif 34 USE control_mod, ONLY: dayref,anneeref,day_step,nday,offline 35 USE control_mod, ONLY: dayref,anneeref,day_step,nday,offline, iphysiq 35 36 USE inifis_mod, ONLY: inifis 36 37 USE time_phylmdz_mod, ONLY: init_time … … 44 45 south_west, south_east 45 46 USE mod_interface_dyn_phys, ONLY : init_interface_dyn_phys 47 #ifdef INCA 48 USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic 49 USE parallel_lmdz, ONLY : mpi_size 50 USE mod_const_mpi, ONLY : COMM_LMDZ 51 USE bands, ONLY : distrib_phys 52 USE mod_phys_lmdz_omp_data, ONLY: klon_omp 53 #endif 46 54 IMPLICIT NONE 47 55 … … 282 290 #endif 283 291 ENDIF 292 !$OMP END PARALLEL 293 294 IF (type_trac == 'inca') THEN 295 #ifdef INCA 296 call init_const_lmdz( & 297 anneeref,dayref, & 298 iphysiq,day_step,nday, & 299 nbsrf, is_oce,is_sic, & 300 is_ter,is_lic, calend) 301 call init_inca_para( & 302 nbp_lon,nbp_lat,nbp_lev,klon_glo,mpi_size, & 303 distrib_phys,COMM_LMDZ) 304 #endif 305 END IF 306 !$OMP PARALLEL DEFAULT(SHARED) COPYIN(/temps/) 284 307 285 308 ! Additional initializations for aquaplanets … … 287 310 CALL iniaqua(klon_omp,iflag_phys) 288 311 END IF 312 313 IF (type_trac == 'inca') THEN 314 #ifdef INCA 315 CALL init_inca_dim(klon_omp,nbp_lev,nbp_lon,nbp_lat - 1, & 316 rlonu,rlatu,rlonv,rlatv) 317 #endif 318 END IF 319 289 320 !$OMP END PARALLEL 290 321 -
LMDZ5/trunk/libf/phylmd/physiq.F90
r2369 r2372 1060 1060 piz_aero(:,:,:,:) = 0. 1061 1061 cg_aero(:,:,:,:) = 0. 1062 1063 config_inca='none' ! default 1064 CALL getin_p('config_inca',config_inca) 1065 1062 1066 END IF 1063 1067 -
LMDZ5/trunk/libf/phylmd/tracinca_mod.F90
r2363 r2372 30 30 aerosol(:) = .FALSE. 31 31 32 config_inca='none' ! default33 CALL getin_p('config_inca',config_inca)34 35 32 END SUBROUTINE tracinca_init 36 33
Note: See TracChangeset
for help on using the changeset viewer.