- Timestamp:
- 2015-05-27T18:17:08+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90
r5220 r5299 309 309 310 310 311 IF( nn_components /= jp_iam_sas ) THEN 312 313 CALL sbc_ssm_init ! Sea-surface mean fields initialisation 314 ELSE 315 ! 316 ! sas currently uses surface temperature and salinity in tsn array 317 ! for initialisation 318 ! and ub, vb arrays in ice dynamics 319 ! so allocate enough of arrays to use 320 ! 321 ierr3 = 0 322 jpm = MAX(jp_tem, jp_sal) 323 ALLOCATE( tsn(jpi,jpj,1,jpm), STAT=ierr0 ) 324 ALLOCATE( ub(jpi,jpj,1) , STAT=ierr1 ) 325 ALLOCATE( vb(jpi,jpj,1) , STAT=ierr2 ) 326 IF ( nn_ice == 1 ) ALLOCATE( tsb(jpi,jpj,1,jpm), STAT=ierr3 ) 327 ierr = ierr0 + ierr1 + ierr2 + ierr3 328 IF( ierr > 0 ) THEN 329 CALL ctl_stop('sbc_ssm_init: unable to allocate surface arrays') 330 ENDIF 331 332 ENDIF 311 IF( nn_components /= jp_iam_sas ) & 312 & CALL sbc_ssm_init ! Sea-surface mean fields initialisation 333 313 ! 334 314 IF( ln_ssr ) CALL sbc_ssr_init ! Sea-Surface Restoring initialisation … … 393 373 CASE( jp_clio ) ; CALL sbc_blk_clio( kt ) ! bulk formulation : CLIO for the ocean 394 374 CASE( jp_core ) 395 396 CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice ) ! OASIS-coupled ice375 IF( nn_components == jp_iam_sas ) & 376 & CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice ) ! OPA-SAS coupling: SAS receiving fields from OPA 397 377 CALL sbc_blk_core( kt ) ! bulk formulation : CORE for the ocean 398 378 ! from oce: sea surface variables (sst_m, sss_m, ssu_m, ssv_m) … … 400 380 ! 401 381 CASE( jp_mfs ) ; CALL sbc_blk_mfs ( kt ) ! bulk formulation : MFS for the ocean 402 CASE( jp_none ) ; CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice ) ! OASIS-coupled ice403 ! fluxes qsr, qns, emp, sfx,utau, vtau404 ! sss_m, ssu_m, ssv_m)382 CASE( jp_none ) 383 IF( nn_components == jp_iam_opa ) & 384 CALL sbc_cpl_rcv ( kt, nn_fsbc, nn_ice ) ! OPA-SAS coupling: OPA receiving fields from SAS 405 385 CASE( jp_esopa ) 406 386 CALL sbc_ana ( kt ) ! ESOPA, test ALL the formulations
Note: See TracChangeset
for help on using the changeset viewer.