Changeset 397 for LMDZ.3.3/branches/rel-LF/libf/phylmd
- Timestamp:
- Jul 22, 2002, 10:50:58 AM (22 years ago)
- Location:
- LMDZ.3.3/branches/rel-LF/libf/phylmd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/branches/rel-LF/libf/phylmd/interface_surf.F90
r394 r397 43 43 real, allocatable, dimension(:),save :: coastalflow, riverflow 44 44 !!$PB 45 REAL, ALLOCATABLE, DIMENSION(:,:), SAVE :: tmp_rriv, tmp_rcoa45 !! REAL, ALLOCATABLE, DIMENSION(:,:), SAVE :: tmp_rriv, tmp_rcoa 46 46 !! pour simuler la fonte des glaciers antarctiques 47 47 REAL, ALLOCATABLE, DIMENSION(:,:), SAVE :: coeff_iceberg … … 276 276 endif 277 277 !!$PB 278 ALLOCATE (tmp_rriv(iim,jjm+1), stat=error)279 280 abort_message='Pb allocation tmp_rriv'281 call abort_gcm(modname,abort_message,1)282 endif283 ALLOCATE (tmp_rcoa(iim,jjm+1), stat=error)284 if (error /= 0) then285 abort_message='Pb allocation tmp_rcoa'286 call abort_gcm(modname,abort_message,1)287 endif278 !! ALLOCATE (tmp_rriv(iim,jjm+1), stat=error) 279 ! ! if (error /= 0) then 280 !! abort_message='Pb allocation tmp_rriv' 281 !! call abort_gcm(modname,abort_message,1) 282 !! endif 283 !! ALLOCATE (tmp_rcoa(iim,jjm+1), stat=error) 284 !! if (error /= 0) then 285 !! abort_message='Pb allocation tmp_rcoa' 286 !! call abort_gcm(modname,abort_message,1) 287 !! endif 288 288 !!$ 289 289 else if (size(coastalflow) /= knon) then … … 793 793 real, dimension(klon) :: cdrag 794 794 795 include 'temps.inc' 795 #include "temps.inc" 796 796 797 797 if (check) write(*,*)'Entree ', modname … … 1022 1022 bidule=0. 1023 1023 bidule(1:knon)=riverflow(1:knon) 1024 call gath2cpl(bidule, tmp_rriv, klon, knon,iim,jjm,ktindex)1024 ! call gath2cpl(bidule, tmp_rriv, klon, knon,iim,jjm,ktindex) 1025 1025 bidule=0. 1026 1026 bidule(1:knon)=coastalflow(1:knon) 1027 call gath2cpl(bidule, tmp_rcoa, klon, knon,iim,jjm,ktindex)1027 ! call gath2cpl(bidule, tmp_rcoa, klon, knon,iim,jjm,ktindex) 1028 1028 alb_new(1:knon) = albedo_out(1:knon,1) 1029 1029 alblw(1:knon) = albedo_out(1:knon,2) … … 1144 1144 real, allocatable, dimension(:,:,:),save :: tmp_snow, tmp_evap, tmp_tsol 1145 1145 real, allocatable, dimension(:,:,:),save :: tmp_fder, tmp_albe, tmp_taux 1146 !!$real, allocatable, dimension(:,:,:),save :: tmp_tauy, tmp_rriv, tmp_rcoa1147 REAL, ALLOCATABLE, DIMENSION(:,:,:),SAVE :: tmp_tauy1146 real, allocatable, dimension(:,:,:),save :: tmp_tauy, tmp_rriv, tmp_rcoa 1147 !! REAL, ALLOCATABLE, DIMENSION(:,:,:),SAVE :: tmp_tauy 1148 1148 ! variables a passer au coupleur 1149 1149 real, dimension(iim, jjm+1) :: wri_sol_ice, wri_sol_sea, wri_nsol_ice … … 1181 1181 REAL :: zx_lon(iim,jjm+1), zx_lat(iim,jjm+1), zjulian 1182 1182 integer :: idayref, itau_w 1183 include 'param_cou.h' 1184 include 'inc_cpl.h' 1185 include 'temps.inc' 1183 #include "param_cou.h" 1184 #include "inc_cpl.h" 1185 #include "temps.inc" 1186 1186 ! 1187 1187 ! Initialisation … … 1336 1336 cpl_tauy(ig,cpl_index) = cpl_tauy(ig,cpl_index) & 1337 1337 & + tauy(ig) / FLOAT(nexca) 1338 !!$cpl_rriv(ig,cpl_index) = cpl_rriv(ig,cpl_index) &1339 !!$& + riverflow(ig) / FLOAT(nexca)/dtime1340 !!$cpl_rcoa(ig,cpl_index) = cpl_rcoa(ig,cpl_index) &1341 !!$& + coastalflow(ig) / FLOAT(nexca)/dtime1338 cpl_rriv(ig,cpl_index) = cpl_rriv(ig,cpl_index) & 1339 & + riverflow(ig) / FLOAT(nexca)/dtime 1340 cpl_rcoa(ig,cpl_index) = cpl_rcoa(ig,cpl_index) & 1341 & + coastalflow(ig) / FLOAT(nexca)/dtime 1342 1342 enddo 1343 IF (cpl_index .EQ. 1) THEN1344 cpl_rriv(:,:) = cpl_rriv(:,:) + tmp_rriv(:,:) / FLOAT(nexca)1345 1346 ENDIF1343 ! IF (cpl_index .EQ. 1) THEN 1344 ! cpl_rriv(:,:) = cpl_rriv(:,:) + tmp_rriv(:,:) / FLOAT(nexca) 1345 ! cpl_rcoa(:,:) = cpl_rcoa(:,:) + tmp_rcoa(:,:) / FLOAT(nexca) 1346 ! ENDIF 1347 1347 endif 1348 1348 … … 1442 1442 allocate(tmp_taux(iim,jjm+1,2), stat=error); sum_error = sum_error + error 1443 1443 allocate(tmp_tauy(iim,jjm+1,2), stat=error); sum_error = sum_error + error 1444 !!$allocate(tmp_rriv(iim,jjm+1,2), stat=error); sum_error = sum_error + error1445 !!$allocate(tmp_rcoa(iim,jjm+1,2), stat=error); sum_error = sum_error + error1444 allocate(tmp_rriv(iim,jjm+1,2), stat=error); sum_error = sum_error + error 1445 allocate(tmp_rcoa(iim,jjm+1,2), stat=error); sum_error = sum_error + error 1446 1446 if (sum_error /= 0) then 1447 1447 abort_message='Pb allocation variables couplees pour l''ecriture' … … 1465 1465 call gath2cpl(cpl_taux(1,cpl_index), tmp_taux(1,1,cpl_index), klon, knon,iim,jjm, knindex) 1466 1466 call gath2cpl(cpl_tauy(1,cpl_index), tmp_tauy(1,1,cpl_index), klon, knon,iim,jjm, knindex) 1467 !!$call gath2cpl(cpl_rriv(1,cpl_index), tmp_rriv(1,1,cpl_index), klon, knon,iim,jjm, knindex)1468 !!$call gath2cpl(cpl_rcoa(1,cpl_index), tmp_rcoa(1,1,cpl_index), klon, knon,iim,jjm, knindex)1467 call gath2cpl(cpl_rriv(1,cpl_index), tmp_rriv(1,1,cpl_index), klon, knon,iim,jjm, knindex) 1468 call gath2cpl(cpl_rcoa(1,cpl_index), tmp_rcoa(1,1,cpl_index), klon, knon,iim,jjm, knindex) 1469 1469 1470 1470 ! … … 1495 1495 & tmp_snow(:,:,2) * tamp_srf(:,:,2) / deno 1496 1496 !!$PB 1497 !!$wri_rriv = tmp_rriv(:,:,1) * tamp_srf(:,:,1) / deno + &1498 !!$& tmp_rriv(:,:,2) * tamp_srf(:,:,2) / deno1499 !!$wri_rcoa = tmp_rcoa(:,:,1) * tamp_srf(:,:,1) / deno + &1500 !!$& tmp_rcoa(:,:,2) * tamp_srf(:,:,2) / deno1497 wri_rriv = tmp_rriv(:,:,1) * tamp_srf(:,:,1) / deno + & 1498 & tmp_rriv(:,:,2) * tamp_srf(:,:,2) / deno 1499 wri_rcoa = tmp_rcoa(:,:,1) * tamp_srf(:,:,1) / deno + & 1500 & tmp_rcoa(:,:,2) * tamp_srf(:,:,2) / deno 1501 1501 wri_taux = tmp_taux(:,:,1) * tamp_srf(:,:,1) / deno + & 1502 1502 & tmp_taux(:,:,2) * tamp_srf(:,:,2) / deno … … 1583 1583 deallocate(tmp_tauy, stat=error); sum_error = sum_error + error 1584 1584 !!$PB 1585 !!$deallocate(tmp_rriv, stat=error); sum_error = sum_error + error1586 !!$deallocate(tmp_rcoa, stat=error); sum_error = sum_error + error1585 deallocate(tmp_rriv, stat=error); sum_error = sum_error + error 1586 deallocate(tmp_rcoa, stat=error); sum_error = sum_error + error 1587 1587 if (sum_error /= 0) then 1588 1588 abort_message='Pb deallocation variables couplees' -
LMDZ.3.3/branches/rel-LF/libf/phylmd/oasis.F
r394 r397 15 15 SUBROUTINE inicma(kastp,kexch,kstep,imjm) 16 16 c 17 c INCLUDE 'param.h'17 c INCLUDE "param.h" 18 18 c 19 19 INTEGER kastp, kexch, kstep,imjm … … 21 21 INTEGER ifcpl, idt, info, imxtag, istep, jf 22 22 c 23 INCLUDE 'param_cou.h' 24 INCLUDE 'inc_cpl.h' 23 #include "param_cou.h" 24 #include "inc_cpl.h" 25 25 CHARACTER*3 cljobnam ! experiment name 26 26 CHARACTER*6 clmodnam ! model name … … 37 37 PARAMETER (nuout = 6) 38 38 c 39 INCLUDE 'clim.h' 40 INCLUDE 'mpiclim.h' 41 c 42 INCLUDE 'oasis.h'! contains the name of communication technique. Here39 #include "clim.h" 40 #include "mpiclim.h" 41 c 42 #include "oasis.h" ! contains the name of communication technique. Here 43 43 ! cchan=CLIM only is possible. 44 44 c ! ctype=MPI2 … … 268 268 INTEGER info, jf 269 269 c 270 INCLUDE 'clim.h' 271 c 272 INCLUDE 'oasis.h' 273 INCLUDE 'param_cou.h' 274 c 275 INCLUDE 'inc_cpl.h' 270 #include "clim.h" 271 c 272 #include "oasis.h" 273 #include "param_cou.h" 274 c 275 #include "inc_cpl.h" 276 276 c 277 277 c … … 346 346 PARAMETER (nuout = 6) 347 347 c 348 INCLUDE 'clim.h' 349 INCLUDE 'param_cou.h' 350 INCLUDE 'inc_cpl.h' 348 #include "clim.h" 349 #include "param_cou.h" 350 #include "inc_cpl.h" 351 351 c 352 352 CHARACTER*8 file_name(jpmaxfld) … … 358 358 LOGICAL trouve 359 359 c 360 INCLUDE 'oasis.h' 360 #include "oasis.h" 361 361 c 362 362 icstep=kt … … 554 554 END 555 555 556 SUBROUTINE halte557 print *, 'Attention dans oasis.F, halte est non defini'558 RETURN559 END560 561 SUBROUTINE locread562 print *, 'Attention dans oasis.F, locread est non defini'563 RETURN564 END565 566 SUBROUTINE locwrite567 print *, 'Attention dans oasis.F, locwrite est non defini'568 RETURN569 END570 571 556 SUBROUTINE pipe_model_define 572 557 print*,'Attention dans oasis.F, pipe_model_define est non defini' … … 589 574 END 590 575 591 SUBROUTINE clim_stepi592 print *, 'Attention dans oasis.F, clim_stepi est non defini'593 RETURN594 END595 596 SUBROUTINE clim_start597 print *, 'Attention dans oasis.F, clim_start est non defini'598 RETURN599 END600 601 SUBROUTINE clim_import602 print *, 'Attention dans oasis.F, clim_import est non defini'603 RETURN604 END605 606 SUBROUTINE clim_export607 print *, 'Attention dans oasis.F, clim_export est non defini'608 RETURN609 END610 611 SUBROUTINE clim_init612 print *, 'Attention dans oasis.F, clim_init est non defini'613 RETURN614 END615 616 SUBROUTINE clim_define617 print *, 'Attention dans oasis.F, clim_define est non defini'618 RETURN619 END620 621 SUBROUTINE clim_quit622 print *, 'Attention dans oasis.F, clim_quit est non defini'623 RETURN624 END625 626 SUBROUTINE svipc_write627 print *, 'Attention dans oasis.F, svipc_write est non defini'628 RETURN629 END630 631 SUBROUTINE svipc_close632 print *, 'Attention dans oasis.F, svipc_close est non defini'633 RETURN634 END635 636 SUBROUTINE svipc_read637 print *, 'Attention dans oasis.F, svipc_read est non defini'638 RETURN639 END640 641 576 SUBROUTINE quitcpl 642 577 print *, 'Attention dans oasis.F, quitcpl est non defini' -
LMDZ.3.3/branches/rel-LF/libf/phylmd/oasis.true
r394 r397 15 15 SUBROUTINE inicma(kastp,kexch,kstep,imjm) 16 16 c 17 c INCLUDE 'param.h'17 c INCLUDE "param.h" 18 18 c 19 19 INTEGER kastp, kexch, kstep,imjm … … 21 21 INTEGER ifcpl, idt, info, imxtag, istep, jf 22 22 c 23 INCLUDE 'param_cou.h' 24 INCLUDE 'inc_cpl.h' 23 #include "param_cou.h" 24 #include "inc_cpl.h" 25 25 CHARACTER*3 cljobnam ! experiment name 26 26 CHARACTER*6 clmodnam ! model name … … 37 37 PARAMETER (nuout = 6) 38 38 c 39 INCLUDE 'clim.h' 40 INCLUDE 'mpiclim.h' 41 c 42 INCLUDE 'oasis.h'! contains the name of communication technique. Here39 #include "clim.h" 40 #include "mpiclim.h" 41 c 42 #include "oasis.h" ! contains the name of communication technique. Here 43 43 ! cchan=CLIM only is possible. 44 44 c ! ctype=MPI2 … … 268 268 INTEGER info, jf 269 269 c 270 INCLUDE 'clim.h' 271 c 272 INCLUDE 'oasis.h' 273 INCLUDE 'param_cou.h' 274 c 275 INCLUDE 'inc_cpl.h' 270 #include "clim.h" 271 c 272 #include "oasis.h" 273 #include "param_cou.h" 274 c 275 #include "inc_cpl.h" 276 276 c 277 277 c … … 346 346 PARAMETER (nuout = 6) 347 347 c 348 INCLUDE 'clim.h' 349 INCLUDE 'param_cou.h' 350 INCLUDE 'inc_cpl.h' 348 #include "clim.h" 349 #include "param_cou.h" 350 #include "inc_cpl.h" 351 351 c 352 352 CHARACTER*8 file_name(jpmaxfld) … … 358 358 LOGICAL trouve 359 359 c 360 INCLUDE 'oasis.h' 360 #include "oasis.h" 361 361 c 362 362 icstep=kt -
LMDZ.3.3/branches/rel-LF/libf/phylmd/param_cou.h
r179 r397 7 7 ! between ocean and atmosphere 8 8 INTEGER jpflda2o1 9 PARAMETER(jpflda2o1 = 1 1) ! Number of fields exchanged from9 PARAMETER(jpflda2o1 = 12) ! Number of fields exchanged from 10 10 ! atmosphere to ocean via flx.F 11 11 INTEGER jpflda2o2
Note: See TracChangeset
for help on using the changeset viewer.