Changeset 991 for branches/dev_003_CPL/NEMO/OPA_SRC/opa.F90
- Timestamp:
- 2008-05-23T17:55:55+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev_003_CPL/NEMO/OPA_SRC/opa.F90
r990 r991 38 38 !! * Modules used 39 39 USE oce ! dynamics and tracers variables 40 USE cpl_oce ! ocean-atmosphere-sea ice coupled exchanges41 40 USE dom_oce ! ocean space domain variables 42 41 USE sbc_oce ! surface boundary condition: ocean … … 70 69 71 70 USE step ! OPA time-stepping (stp routine) 72 #if defined key_oasis3 73 USE cpl_oasis3 ! OASIS3 coupling (to ECHAM5) 74 #elif defined key_oasis4 75 USE cpl_oasis4 ! OASIS4 coupling (to ECHAM5) 76 #endif 71 USE cpl_oasis3 ! OASIS3 coupling 77 72 USE dynspg_oce ! Control choice of surface pressure gradient schemes 78 73 USE prtctl ! Print control (prt_ctl_init routine) … … 159 154 160 155 CALL opa_closefile 161 #if defined key_oasis3 || defined key_oasis4 162 call cpl_prism_finalize 163 #else 164 IF( lk_mpp ) CALL mppstop ! Close all files (mpp) 165 #endif 166 ! 156 IF ( lk_cpl ) THEN ; CALL cpl_prism_finalize 157 ELSE IF ( lk_mpp ) THEN ; CALL mppstop ! Close all files (mpp) 158 ENDIF 159 167 160 END SUBROUTINE opa_model 168 161 … … 175 168 !! 176 169 !!---------------------------------------------------------------------- 177 #if defined key_coupled178 INTEGER :: itro, istp0 ! ???179 #endif180 #if defined key_oasis3 || defined key_oasis4181 170 INTEGER :: localComm 182 #endif183 171 CHARACTER (len=20) :: namelistname 184 172 CHARACTER (len=28) :: file_out … … 212 200 READ ( numnam, namctl ) 213 201 214 #if defined key_oasis3 || defined key_oasis4 215 call cpl_prism_init(localComm) 216 ! Nodes selection 217 narea = mynode(localComm) 218 #else 219 ! Nodes selection 220 narea = mynode() 221 #endif 202 IF ( lk_cpl ) THEN 203 CALL cpl_prism_init() 204 narea = mynode(nlocalComm) 205 ELSE 206 narea = mynode() 207 ENDIF 208 222 209 narea = narea + 1 ! mynode return the rank of proc (0 --> jpnij -1 ) 223 210 lwp = narea == 1 … … 290 277 CALL trd_mod_init ! Mixed-layer/Vorticity/Integral constraints trends 291 278 292 293 279 #if defined key_top 294 280 CALL ini_trc ! Passive tracers 295 #endif296 297 #if defined key_coupled && ! defined key_oasis3 && ! defined key_oasis4298 itro = nitend - nit000 + 1 ! Coupled299 istp0 = NINT( rdt )300 CALL cpl_init( itro, nexco, istp0 ) ! Signal processing and process id exchange301 #endif302 303 #if defined key_oasis3 || defined key_oasis4304 CALL cpl_prism_define305 281 #endif 306 282
Note: See TracChangeset
for help on using the changeset viewer.