Changeset 5654 for LMDZ6/trunk
- Timestamp:
- May 15, 2025, 4:20:14 PM (3 weeks ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/cpl_mod.F90
r5394 r5654 363 363 CALL histdef(nidct, 'tmp_lat','tmp_lat', & 364 364 "-",nbp_lon,nbp_lat, nhoridct, 1, 1, 1, -99, 32, "inst", dtime,dtime) 365 DO jf=1,maxsend 365 DO jf=1,maxsend_phys 366 366 IF (infosend(i)%action) THEN 367 367 CALL histdef(nidct, infosend(i)%name ,infosend(i)%name , & … … 1280 1280 REAL, DIMENSION(nbp_lon, jj_nb) :: tmp_calv 1281 1281 ! Table with all fields to send to coupler 1282 REAL, DIMENSION(nbp_lon, jj_nb, maxsend ):: tab_flds1282 REAL, DIMENSION(nbp_lon, jj_nb, maxsend_phys) :: tab_flds 1283 1283 REAL, DIMENSION(klon_mpi) :: rlon_mpi, rlat_mpi 1284 1284 REAL :: calving(nb_zone_calving) … … 1510 1510 !************************************************************************************* 1511 1511 IF (is_sequential) THEN 1512 DO j=1,maxsend 1512 DO j=1,maxsend_phys 1513 1513 IF (infosend(j)%action) CALL histwrite(nidct,infosend(j)%name, itau_w, & 1514 1514 tab_flds(:,:,j),nbp_lon*(nbp_lat),ndexct) -
LMDZ6/trunk/libf/phylmd/oasis.F90
r5582 r5654 61 61 INTEGER, PARAMETER :: ids_delta_sst = 30, ids_delta_sal = 31, ids_dter = 32, & 62 62 ids_dser = 33, ids_dt_ds = 34 63 INTEGER, PARAMETER :: ids_atmn2o = 35 63 64 64 INTEGER, PARAMETER :: maxsend = 34 ! Maximum number of fields to send 65 65 INTEGER, PARAMETER :: maxsend = 35 ! Maximum number of fields to send 66 INTEGER, PARAMETER :: maxsend_phys = 34 ! Maximum number of fields to send in LMDZ phys - the last one will be send by Inca 67 66 68 ! Id for fields received from ocean 67 69 … … 227 229 infosend(ids_atmco2)%action = .TRUE. ; infosend(ids_atmco2)%name = 'COATMCO2' 228 230 ENDIF 231 IF (n2o_cycle_cpl) THEN 232 infosend(ids_atmn2o)%action = .TRUE. ; infosend(ids_atmn2o)%name = 'COATMN2O' 233 ENDIF 229 234 infosend(ids_qraioc)%action = .TRUE. ; infosend(ids_qraioc)%name = 'COQRAIOC' 230 235 infosend(ids_qsnooc)%action = .TRUE. ; infosend(ids_qsnooc)%name = 'COQSNOOC' … … 358 363 END DO 359 364 360 361 IF (CPPKEY_INCA) THEN362 IF (dms_cycle_cpl .OR. n2o_cycle_cpl) THEN363 CALL init_inca_oasis(inforecv(idr_ocedms:idr_ocen2o))364 ENDIF365 END IF366 365 367 366 !************************************************************************************ … … 396 395 WRITE(lunout,*) 'inicma : endef psmile ok ' 397 396 ENDIF 397 398 399 IF (CPPKEY_INCA) THEN 400 IF (dms_cycle_cpl .OR. n2o_cycle_cpl) THEN 401 CALL init_inca_oasis(inforecv(idr_ocedms:idr_ocen2o),infosend(ids_atmn2o:ids_atmn2o)) 402 ENDIF 403 END IF 398 404 399 405 !$OMP END MASTER … … 479 485 INTEGER, INTENT(IN) :: ktime 480 486 LOGICAL, INTENT(IN) :: last 481 REAL, DIMENSION(nbp_lon, jj_nb, maxsend ), INTENT(IN) :: tab_put487 REAL, DIMENSION(nbp_lon, jj_nb, maxsend_phys), INTENT(IN) :: tab_put 482 488 483 489 ! Local variables … … 513 519 IF (is_south_pole_dyn) wend=iend-nbp_lon+1 514 520 515 DO i = 1, maxsend 521 DO i = 1, maxsend_phys 516 522 IF (infosend(i)%action) THEN 517 523 field = RESHAPE(tab_put(:,:,i),(/nbp_lon*jj_nb/)) … … 525 531 !************************************************************************************ 526 532 527 DO i = 1, maxsend 533 DO i = 1, maxsend_phys 528 534 IF (infosend(i)%action .AND. infosend(i)%nid .NE. -1 ) THEN 529 535 field = RESHAPE(tab_put(:,:,i),(/nbp_lon*jj_nb/))
Note: See TracChangeset
for help on using the changeset viewer.