Changeset 1707 for LMDZ5/branches/testing/libf/dyn3dmem/calfis_loc.F
- Timestamp:
- Jan 11, 2013, 10:19:19 AM (12 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 1670-1692,1694-1703,1705-1706
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/dyn3dmem/calfis_loc.F
r1669 r1707 27 27 $ pdqfi, 28 28 $ pdpsfi) 29 #ifdef CPP_ EARTH30 ! Ehouarn: For now, calfis_p needs Earthphysics29 #ifdef CPP_PHYS 30 ! If using physics 31 31 c 32 32 c Auteur : P. Le Van, F. Hourdin … … 36 36 USE parallel, ONLY : omp_chunk, using_mpi,jjb_u,jje_u,jjb_v,jje_v 37 37 USE mod_interface_dyn_phys 38 USE IOPHY 39 #endif 38 40 USE Write_Field 39 41 Use Write_field_p 40 42 USE Times 41 USE IOPHY42 43 USE infotrac 43 44 USE control_mod … … 145 146 146 147 148 #ifdef CPP_PHYS 149 ! Ehouarn: for now calfis_p needs some informations from physics to compile 147 150 c Local variables : 148 151 c ----------------- … … 220 223 PARAMETER(ntetaSTD=3) 221 224 REAL rtetaSTD(ntetaSTD) 222 DATA rtetaSTD/350., 380., 405./ 225 DATA rtetaSTD/350., 380., 405./ ! Earth-specific values, beware !! 223 226 REAL PVteta(klon,ntetaSTD) 224 227 … … 243 246 REAL,ALLOCATABLE,SAVE:: zdufi2(:,:),zdvfi2(:,:) 244 247 integer :: k,kstart,kend 245 INTEGER :: offset 248 INTEGER :: offset 249 250 LOGICAL tracerdyn 246 251 c 247 252 c----------------------------------------------------------------------- … … 512 517 513 518 514 IF (is_sequential) THEN 515 c 519 IF (is_sequential.and.(planet_type=="earth")) THEN 520 #ifdef CPP_PHYS 521 ! PVtheta calls tetalevel, which is in the physics 516 522 cIM calcul PV a teta=350, 380, 405K 517 523 CALL PVtheta(ngridmx,llm,pucov,pvcov,pteta, … … 519 525 $ ntetaSTD,rtetaSTD,PVteta) 520 526 c 527 #endif 521 528 ENDIF 522 529 … … 662 669 c$OMP BARRIER 663 670 664 if (planet_type=="earth") then665 #ifdef CPP_EARTH666 667 671 668 672 !$OMP MASTER … … 675 679 zdqfic_omp(:,:,:)=0. 676 680 681 #ifdef CPP_PHYS 677 682 do isplit=1,nsplit_phys 678 683 … … 681 686 lafin_split=lafin.and.isplit==nsplit_phys 682 687 688 if (planet_type=="earth") then 683 689 684 690 CALL physiq (klon, … … 711 717 . PVteta) 712 718 719 else if ( planet_type=="generic" ) then 720 721 CALL physiq (klon, !! ngrid 722 . llm, !! nlayer 723 . nqtot, !! nq 724 . tname, !! tracer names from dynamical core (given in infotrac) 725 . debut_split, !! firstcall 726 . lafin_split, !! lastcall 727 . jD_cur, !! pday. see leapfrog_p 728 . jH_cur_split, !! ptime "fraction of day" 729 . zdt_split, !! ptimestep 730 . zplev_omp, !! pplev 731 . zplay_omp, !! pplay 732 . zphi_omp, !! pphi 733 . zufi_omp, !! pu 734 . zvfi_omp, !! pv 735 . ztfi_omp, !! pt 736 . zqfi_omp, !! pq 737 . flxwfi_omp, !! pw !! or 0. anyway this is for diagnostic. not used in physiq. 738 . zdufi_omp, !! pdu 739 . zdvfi_omp, !! pdv 740 . zdtfi_omp, !! pdt 741 . zdqfi_omp, !! pdq 742 . zdpsrf_omp, !! pdpsrf 743 . tracerdyn) !! tracerdyn <-- utilite ??? 744 745 endif ! of if (planet_type=="earth") 746 747 713 748 zufi_omp(:,:)=zufi_omp(:,:)+zdufi_omp(:,:)*zdt_split 714 749 zvfi_omp(:,:)=zvfi_omp(:,:)+zdvfi_omp(:,:)*zdt_split … … 723 758 enddo 724 759 760 #endif 761 ! of #ifdef CPP_PHYS 762 763 725 764 zdufi_omp(:,:)=zdufic_omp(:,:)/nsplit_phys 726 765 zdvfi_omp(:,:)=zdvfic_omp(:,:)/nsplit_phys … … 728 767 zdqfi_omp(:,:,:)=zdqfic_omp(:,:,:)/nsplit_phys 729 768 730 #endif731 endif !of if (planet_type=="earth")732 769 c$OMP BARRIER 733 770 … … 1179 1216 firstcal = .FALSE. 1180 1217 1181 #else 1182 write(*,*) "calfis_p: for now can only work with parallel physics" 1183 write(lunout,*) 1184 & "calfis_p: for now can only work with parallel physics" 1185 stop 1186 #endif 1187 ! of #ifdef CPP_EARTH 1218 #else 1219 write(lunout,*) 1220 & "calfis_p: for now can only work with parallel physics" 1221 stop 1222 #endif 1223 ! of #ifdef CPP_PHYS 1188 1224 RETURN 1189 1225 END
Note: See TracChangeset
for help on using the changeset viewer.