Changeset 492 for trunk/LMDZ.COMMON/libf/dyn3dpar/ce0l.F90
- Timestamp:
- Jan 5, 2012, 8:28:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/dyn3dpar/ce0l.F90
r270 r492 1 1 ! 2 ! $Id: ce0l.F90 1 511 2011-04-28 15:21:47Z jghattas $2 ! $Id: ce0l.F90 1600 2011-12-06 13:16:30Z jghattas $ 3 3 ! 4 4 !------------------------------------------------------------------------------- … … 19 19 USE dimphy 20 20 USE comgeomphy 21 USE mod_phys_lmdz_para, mpi_root_xx=>mpi_root 22 USE mod_const_mpi 21 23 USE infotrac 24 USE parallel, ONLY: finalize_parallel 22 25 23 26 #ifdef CPP_IOIPSL … … 28 31 IMPLICIT NONE 29 32 #ifndef CPP_EARTH 30 WRITE( lunout,*)'limit_netcdf: Earth-specific routine, needs Earth physics'33 WRITE(*,*)'limit_netcdf: Earth-specific routine, needs Earth physics' 31 34 #else 32 35 !------------------------------------------------------------------------------- … … 39 42 #include "temps.h" 40 43 #include "logic.h" 44 #ifdef CPP_MPI 45 include 'mpif.h' 46 #endif 47 41 48 INTEGER, PARAMETER :: longcles=20 49 INTEGER :: ierr 42 50 REAL, DIMENSION(longcles) :: clesphy0 43 51 REAL, DIMENSION(iip1,jjp1) :: masque … … 47 55 CALL conf_gcm( 99, .TRUE. , clesphy0 ) 48 56 57 #ifdef CPP_MPI 58 CALL init_mpi 59 #endif 60 49 61 CALL Init_Phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/)) 50 62 WRITE(lunout,*)'---> klon=',klon 63 IF (mpi_size>1 .OR. omp_size>1) THEN 64 CALL abort_gcm('ce0l','In parallel mode, & 65 & ce0l must be called only & 66 & for 1 process and 1 task',1) 67 ENDIF 68 51 69 CALL InitComgeomphy 52 70 … … 67 85 #endif 68 86 69 IF ( config_inca /= 'none') THEN87 IF (type_trac == 'inca') THEN 70 88 #ifdef INCA 71 CALL init_const_lmdz(nbtr,anneeref,dayref,iphysiq,day_step,nday) 72 CALL init_inca_para(iim,jjm+1,klon,1,klon_mpi_para_nb,0) 73 WRITE(lunout,*)'nbtr =' , nbtr 89 CALL init_const_lmdz( & 90 nbtr,anneeref,dayref,& 91 iphysiq,day_step,nday,& 92 nbsrf, is_oce,is_sic,& 93 is_ter,is_lic) 94 74 95 #endif 75 96 END IF … … 100 121 CALL grilles_gcm_netcdf_sub(masque,phis) 101 122 END IF 123 124 #ifdef CPP_MPI 125 !$OMP MASTER 126 CALL MPI_FINALIZE(ierr) 127 IF (ierr /= 0) CALL abort_gcm('ce0l','Error in MPI_FINALIZE',1) 128 !$OMP END MASTER 129 #endif 130 102 131 #endif 103 132 ! of #ifndef CPP_EARTH #else
Note: See TracChangeset
for help on using the changeset viewer.