Changeset 1664 for LMDZ5/branches/testing/libf/dyn3dpar
- Timestamp:
- Oct 9, 2012, 3:29:15 PM (12 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk (added) merged: 1555-1557,1559-1566,1568-1575
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/dyn3dpar/ce0l.F90
r1531 r1664 78 78 #endif 79 79 80 IF ( config_inca /= 'none') THEN80 IF (type_trac == 'inca') THEN 81 81 #ifdef INCA 82 82 CALL init_const_lmdz( & -
LMDZ5/branches/testing/libf/dyn3dpar/conf_gcm.F
r1502 r1664 17 17 use parallel, ONLY : omp_chunk 18 18 USE control_mod 19 USE infotrac, ONLY : type_trac 19 20 IMPLICIT NONE 20 21 c----------------------------------------------------------------------- … … 102 103 CALL getin('lunout', lunout) 103 104 IF (lunout /= 5 .and. lunout /= 6) THEN 104 OPEN(lunout,FILE='lmdz.out') 105 OPEN(UNIT=lunout,FILE='lmdz.out_0000',ACTION='write', 106 & STATUS='unknown',FORM='formatted') 107 105 108 ENDIF 106 109 … … 588 591 END IF 589 592 593 !Config Key = type_trac 594 !Config Desc = Choix de couplage avec model de chimie INCA ou REPROBUS 595 !Config Def = lmdz 596 !Config Help = 597 !Config 'lmdz' = pas de couplage, pur LMDZ 598 !Config 'inca' = model de chime INCA 599 !Config 'repr' = model de chime REPROBUS 600 type_trac = 'lmdz' 601 CALL getin('type_trac',type_trac) 602 603 590 604 !Config Key = config_inca 591 605 !Config Desc = Choix de configuration de INCA … … 659 673 write(lunout,*)' tauyy = ', tauyy 660 674 write(lunout,*)' offline = ', offline 675 write(lunout,*)' type_trac = ', type_trac 661 676 write(lunout,*)' config_inca = ', config_inca 662 677 write(lunout,*)' ok_dynzon = ', ok_dynzon … … 785 800 & 'only the file phystoke.nc will still be created ' 786 801 END IF 802 803 !Config Key = type_trac 804 !Config Desc = Choix de couplage avec model de chimie INCA ou REPROBUS 805 !Config Def = lmdz 806 !Config Help = 807 !Config 'lmdz' = pas de couplage, pur LMDZ 808 !Config 'inca' = model de chime INCA 809 !Config 'repr' = model de chime REPROBUS 810 type_trac = 'lmdz' 811 CALL getin('type_trac',type_trac) 787 812 788 813 !Config Key = config_inca … … 933 958 write(lunout,*)' tauy = ', tauy 934 959 write(lunout,*)' offline = ', offline 960 write(lunout,*)' type_trac = ', type_trac 935 961 write(lunout,*)' config_inca = ', config_inca 936 962 write(lunout,*)' ok_dynzon = ', ok_dynzon -
LMDZ5/branches/testing/libf/dyn3dpar/dynredem.F
r1403 r1664 641 641 #endif 642 642 643 IF ( config_inca /= 'none') THEN643 IF (type_trac == 'inca') THEN 644 644 ! Ajout Anne pour lecture valeurs traceurs dans un fichier start_trac.nc 645 645 ierr_file = NF_OPEN ("start_trac.nc", NF_NOWRITE,nid_trac) … … 654 654 do iq=1,nqtot 655 655 656 IF ( config_inca == 'none') THEN656 IF (type_trac /= 'inca') THEN 657 657 ierr = NF_INQ_VARID(nid, tname(iq), nvarid) 658 658 IF (ierr .NE. NF_NOERR) THEN … … 666 666 ierr = NF_PUT_VAR_REAL (nid,nvarid,q(1,1,iq)) 667 667 #endif 668 ELSE ! config_inca = 'chem' ou 'aero'668 ELSE ! type_trac=inca 669 669 ! lecture de la valeur du traceur dans start_trac.nc 670 670 IF (ierr_file .ne. 2) THEN … … 730 730 #endif 731 731 ENDIF ! (ierr_file .ne. 2) 732 END IF ! config_inca732 END IF ! type_trac 733 733 734 734 ENDDO -
LMDZ5/branches/testing/libf/dyn3dpar/dynredem_p.F
r1403 r1664 650 650 #endif 651 651 652 IF ( config_inca /= 'none') THEN652 IF (type_trac == 'inca') THEN 653 653 ! Ajout Anne pour lecture valeurs traceurs dans un fichier start_trac.nc 654 654 inquire(FILE="start_trac.nc", EXIST=exist_file) … … 667 667 do iq=1,nqtot 668 668 669 IF ( config_inca == 'none') THEN669 IF (type_trac /= 'inca') THEN 670 670 ierr = NF_INQ_VARID(nid, tname(iq), nvarid) 671 671 IF (ierr .NE. NF_NOERR) THEN … … 678 678 ierr = NF_PUT_VAR_REAL (nid,nvarid,q(1,1,iq)) 679 679 #endif 680 ELSE ! config_inca = 'chem' ou 'aero'680 ELSE ! type_trac = inca 681 681 ! lecture de la valeur du traceur dans start_trac.nc 682 682 IF (ierr_file .ne. 2) THEN … … 732 732 #endif 733 733 ENDIF ! (ierr_file .ne. 2) 734 END IF ! config_inca734 END IF ! type_trac 735 735 736 736 ENDDO -
LMDZ5/branches/testing/libf/dyn3dpar/exner_hyb_p.F
r1520 r1664 125 125 endif 126 126 !$OMP END MASTER 127 127 !$OMP BARRIER 128 128 jjb=jj_begin 129 129 jje=jj_end … … 171 171 endif 172 172 c$OMP END MASTER 173 c$OMP BARRIER 173 174 c 174 175 c -
LMDZ5/branches/testing/libf/dyn3dpar/exner_milieu_p.F
r1521 r1664 121 121 endif 122 122 !$OMP END MASTER 123 123 !$OMP BARRIER 124 124 jjb=jj_begin 125 125 jje=jj_end … … 169 169 endif 170 170 c$OMP END MASTER 171 c$OMP BARRIER 171 172 c 172 173 c -
LMDZ5/branches/testing/libf/dyn3dpar/gcm.F
r1520 r1664 240 240 #endif 241 241 242 IF ( config_inca /= 'none') THEN242 IF (type_trac == 'inca') THEN 243 243 #ifdef INCA 244 244 call init_const_lmdz( … … 459 459 c Initialisation des dimensions d'INCA : 460 460 c -------------------------------------- 461 IF ( config_inca /= 'none') THEN461 IF (type_trac == 'inca') THEN 462 462 !$OMP PARALLEL 463 463 #ifdef INCA -
LMDZ5/branches/testing/libf/dyn3dpar/infotrac.F90
r1454 r1664 32 32 SUBROUTINE infotrac_init 33 33 USE control_mod 34 #ifdef REPROBUS 35 USE CHEM_REP, ONLY : Init_chem_rep_trac 36 #endif 34 37 IMPLICIT NONE 35 38 !======================================================================= … … 85 88 86 89 87 IF (config_inca=='none') THEN 88 type_trac='lmdz' 90 ! Coherence test between parameter type_trac, config_inca and preprocessing keys 91 IF (type_trac=='inca') THEN 92 WRITE(lunout,*) 'You have choosen to couple with INCA chemestry model : type_trac=', & 93 type_trac,' config_inca=',config_inca 94 IF (config_inca/='aero' .AND. config_inca/='chem') THEN 95 WRITE(lunout,*) 'Incoherence between type_trac and config_inca. Model stops. Modify run.def' 96 CALL abort_gcm('infotrac_init','Incoherence between type_trac and config_inca',1) 97 END IF 98 #ifndef INCA 99 WRITE(lunout,*) 'To run this option you must add cpp key INCA and compile with INCA code' 100 CALL abort_gcm('infotrac_init','You must compile with cpp key INCA',1) 101 #endif 102 ELSE IF (type_trac=='repr') THEN 103 WRITE(lunout,*) 'You have choosen to couple with REPROBUS chemestry model : type_trac=', type_trac 104 #ifndef REPROBUS 105 WRITE(lunout,*) 'To run this option you must add cpp key REPROBUS and compile with REPRPBUS code' 106 CALL abort_gcm('infotrac_init','You must compile with cpp key REPROBUS',1) 107 #endif 108 ELSE IF (type_trac == 'lmdz') THEN 109 WRITE(lunout,*) 'Tracers are treated in LMDZ only : type_trac=', type_trac 89 110 ELSE 90 type_trac='inca' 91 END IF 111 WRITE(lunout,*) 'type_trac=',type_trac,' not possible. Model stops' 112 CALL abort_gcm('infotrac_init','bad parameter',1) 113 END IF 114 115 116 ! Test if config_inca is other then none for run without INCA 117 IF (type_trac/='inca' .AND. config_inca/='none') THEN 118 WRITE(lunout,*) 'config_inca will now be changed to none as you do not couple with INCA model' 119 config_inca='none' 120 END IF 121 92 122 93 123 !----------------------------------------------------------------------- … … 97 127 ! 98 128 !----------------------------------------------------------------------- 99 IF (type_trac == 'lmdz' ) THEN129 IF (type_trac == 'lmdz' .OR. type_trac == 'repr') THEN 100 130 OPEN(90,file='traceur.def',form='formatted',status='old', iostat=ierr) 101 131 IF(ierr.EQ.0) THEN … … 119 149 nbtr=nqtrue 120 150 endif 121 ELSE 122 ! nbtr has been read from INCA by init_con t_lmdz() in gcm.F151 ELSE ! type_trac=inca 152 ! nbtr has been read from INCA by init_const_lmdz() in gcm.F 123 153 nqtrue=nbtr+2 124 154 END IF … … 128 158 CALL abort_gcm('infotrac_init','Not enough tracers',1) 129 159 END IF 160 161 ! Transfert number of tracers to Reprobus 162 IF (type_trac == 'repr') THEN 163 #ifdef REPROBUS 164 CALL Init_chem_rep_trac(nbtr) 165 #endif 166 END IF 167 130 168 ! 131 169 ! Allocate variables depending on nqtrue and nbtr … … 162 200 ! Get choice of advection schema from file tracer.def or from INCA 163 201 !--------------------------------------------------------------------- 164 IF (type_trac == 'lmdz' ) THEN202 IF (type_trac == 'lmdz' .OR. type_trac == 'repr') THEN 165 203 IF(ierr.EQ.0) THEN 166 204 ! Continue to read tracer.def -
LMDZ5/branches/testing/libf/dyn3dpar/iniacademic.F90
r1520 r1664 115 115 endif 116 116 117 academic_case: if (iflag_phys == 2) then117 academic_case: if (iflag_phys >= 2) then 118 118 ! initializations 119 119 … … 208 208 IF (.NOT. read_start) THEN 209 209 ! surface pressure 210 ps(:)=preff 210 if (iflag_phys>2) then 211 ! specific value for CMIP5 aqua/terra planets 212 ! "Specify the initial dry mass to be equivalent to 213 ! a global mean surface pressure (101325 minus 245) Pa." 214 ps(:)=101080. 215 else 216 ! use reference surface pressure 217 ps(:)=preff 218 endif 219 211 220 ! ground geopotential 212 221 phis(:)=0. -
LMDZ5/branches/testing/libf/dyn3dpar/leapfrog_p.F
r1520 r1664 189 189 190 190 INTEGER :: true_itau 191 LOGICAL :: verbose=.true.192 191 INTEGER :: iapptrac 193 192 INTEGER :: AdjustCount … … 407 406 call allgather_timer_average 408 407 409 if ( Verbose) then408 if (prt_level > 9) then 410 409 411 410 print *,'*********************************' -
LMDZ5/branches/testing/libf/dyn3dpar/parallel.F90
r1492 r1664 43 43 integer, dimension(3) :: blocklen,type 44 44 integer :: comp_id 45 45 character(len=4) :: num 46 character(len=20) :: filename 47 46 48 #ifdef CPP_OMP 47 49 INTEGER :: OMP_GET_NUM_THREADS … … 75 77 mpi_rank=0 76 78 ENDIF 77 79 80 81 ! Open text output file with mpi_rank in suffix of file name 82 IF (lunout /= 5 .and. lunout /= 6) THEN 83 WRITE(num,'(I4.4)') mpi_rank 84 filename='lmdz.out_'//num 85 IF (mpi_rank .NE. 0) THEN 86 OPEN(UNIT=lunout,FILE=TRIM(filename),ACTION='write', & 87 STATUS='unknown',FORM='formatted',IOSTAT=ierr) 88 ENDIF 89 ENDIF 90 78 91 79 92 allocate(jj_begin_para(0:mpi_size-1))
Note: See TracChangeset
for help on using the changeset viewer.