- Timestamp:
- 2014-06-17T17:06:59+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limthd_lac.F90
r4659 r4672 329 329 ! Salinity of new ice 330 330 !---------------------- 331 332 331 SELECT CASE ( num_sal ) 333 332 CASE ( 1 ) ! Sice = constant … … 343 342 END SELECT 344 343 345 346 344 !------------------------- 347 345 ! Heat content of new ice … … 354 352 & - rcp * ( ztmelts - rtt ) ) 355 353 END DO ! ji 354 356 355 !---------------- 357 356 ! Age of new ice … … 395 394 END DO 396 395 397 398 396 !----------------- 399 397 ! Area of new ice … … 407 405 !------------------------------------------------------------------------------! 408 406 409 !------------------------ -------------------410 ! Compute excessive new ice area and volume411 !------------------------ -------------------407 !------------------------ 408 ! 6.1) lateral ice growth 409 !------------------------ 412 410 ! If lateral ice growth gives an ice concentration gt 1, then 413 411 ! we keep the excessive volume in memory and attribute it later to bottom accretion … … 422 420 zdv_res(ji) = 0._wp 423 421 ENDIF 424 END DO ! ji 425 426 !------------------------------------------------ 427 ! Laterally redistribute new ice volume and area 428 !------------------------------------------------ 422 END DO 423 424 ! find which category to fill 429 425 zat_i_1d(:) = 0._wp 430 426 DO jl = 1, jpl … … 433 429 za_i_1d (ji,jl) = za_i_1d (ji,jl) + za_newice(ji) 434 430 zv_i_1d (ji,jl) = zv_i_1d (ji,jl) + zv_newice(ji) 435 jcat (ji) = jl431 jcat (ji) = jl 436 432 ENDIF 437 433 zat_i_1d(ji) = zat_i_1d(ji) + za_i_1d (ji,jl) … … 439 435 END DO 440 436 441 !---------------------------------- 442 ! Heat content - lateral accretion 443 !---------------------------------- 444 DO ji = 1, nbpac 445 jl = jcat(ji) ! categroy in which new ice is put 437 ! Heat content 438 DO ji = 1, nbpac 439 jl = jcat(ji) ! categroy in which new ice is put 446 440 zswinew (ji) = MAX( 0._wp , SIGN( 1._wp , - za_old(ji,jl) ) ) ! 0 if old ice 447 441 END DO … … 457 451 END DO 458 452 459 !----------------------------------------------- 460 ! Add excessive volume of new ice at the bottom461 !----------------------------------------------- 453 !------------------------------------------------ 454 ! 6.2) bottom ice growth + ice enthalpy remapping 455 !------------------------------------------------ 462 456 DO jl = 1, jpl 457 458 ! for remapping 463 459 h_i_old (1:nbpac,0:nlay_i+1) = 0._wp 464 460 qh_i_old(1:nbpac,0:nlay_i+1) = 0._wp 465 466 461 DO jk = 1, nlay_i 467 462 DO ji = 1, nbpac … … 471 466 END DO 472 467 468 ! new volumes including lateral/bottom accretion + residual 473 469 DO ji = 1, nbpac 474 470 zinda = MAX( 0._wp, SIGN( 1._wp , zat_i_1d(ji) - epsi20 ) ) 475 471 zv_newfra = zinda * ( zdv_res(ji) + zv_frazb(ji) ) * za_i_1d(ji,jl) / MAX( zat_i_1d(ji) , epsi20 ) 476 472 za_i_1d(ji,jl) = zinda * za_i_1d(ji,jl) 477 473 zv_i_1d(ji,jl) = zv_i_1d(ji,jl) + zv_newfra 474 475 ! for remapping 478 476 h_i_old (ji,nlay_i+1) = zv_newfra 479 477 qh_i_old(ji,nlay_i+1) = ze_newice(ji) * zv_newfra 480 481 zv_i_1d(ji,jl) = zv_i_1d(ji,jl) + zv_newfra482 478 ENDDO 483 479 484 480 ! --- Ice enthalpy remapping --- ! 485 CALL lim_thd_ent( 1, nbpac, jl, ze_i_1d(1:nbpac,:,jl) ) 481 IF( zv_newfra > 0._wp ) THEN 482 CALL lim_thd_ent( 1, nbpac, ze_i_1d(1:nbpac,:,jl) ) 483 ENDIF 486 484 487 485 ENDDO … … 500 498 ! Update salinity 501 499 !----------------- 502 !clem IF( num_sal == 2 ) THEN 503 DO jl = 1, jpl 504 DO ji = 1, nbpac 505 zdv = zv_i_1d(ji,jl) - zv_old(ji,jl) 506 zsmv_i_1d(ji,jl) = zsmv_i_1d(ji,jl) + zdv * zs_newice(ji) 507 END DO 508 END DO 509 !clem ENDIF 500 DO jl = 1, jpl 501 DO ji = 1, nbpac 502 zdv = zv_i_1d(ji,jl) - zv_old(ji,jl) 503 zsmv_i_1d(ji,jl) = zsmv_i_1d(ji,jl) + zdv * zs_newice(ji) 504 END DO 505 END DO 510 506 511 507 !------------------------------------------------------------------------------! 512 ! 8) Change 2D vectors to 1D vectors508 ! 7) Change 2D vectors to 1D vectors 513 509 !------------------------------------------------------------------------------! 514 510 DO jl = 1, jpl … … 531 527 532 528 !------------------------------------------------------------------------------! 533 ! 9) Change units for e_i529 ! 8) Change units for e_i 534 530 !------------------------------------------------------------------------------! 535 531 DO jl = 1, jpl
Note: See TracChangeset
for help on using the changeset viewer.