Changeset 3302 for palm/trunk/SOURCE/prognostic_equations.f90
- Timestamp:
- Oct 3, 2018 2:39:40 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/prognostic_equations.f90
r3298 r3302 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Stokes drift + wave breaking term added 28 ! 29 ! 3298 2018-10-02 12:21:11Z kanani 27 30 ! Code added for decycling chemistry (basit) 28 31 ! … … 392 395 393 396 USE ocean_mod, & 394 ONLY: eqn_state_seawater, ocean_prognostic_equations 397 ONLY: ocean_prognostic_equations, stokes_drift_terms, stokes_force, & 398 wave_breaking, wave_breaking_term 395 399 396 400 USE plant_canopy_model_mod, & … … 595 599 596 600 ! 601 !-- Effect of Stokes drift (in ocean mode only) 602 IF ( stokes_force ) CALL stokes_drift_terms( i, j, 1 ) 603 604 ! 597 605 !-- Forces by wind turbines 598 606 IF ( wind_turbine ) CALL wtm_tendencies( i, j, 1 ) … … 612 620 ) 613 621 ENDDO 622 623 ! 624 !-- Add turbulence generated by wave breaking (in ocean mode only) 625 IF ( wave_breaking .AND. & 626 intermediate_timestep_count == intermediate_timestep_count_max )& 627 THEN 628 CALL wave_breaking_term( i, j, 1 ) 629 ENDIF 614 630 615 631 ! … … 666 682 667 683 ! 684 !-- Effect of Stokes drift (in ocean mode only) 685 IF ( stokes_force ) CALL stokes_drift_terms( i, j, 2 ) 686 687 ! 668 688 !-- Forces by wind turbines 669 689 IF ( wind_turbine ) CALL wtm_tendencies( i, j, 2 ) … … 682 702 ) 683 703 ENDDO 704 705 ! 706 !-- Add turbulence generated by wave breaking (in ocean mode only) 707 IF ( wave_breaking .AND. & 708 intermediate_timestep_count == intermediate_timestep_count_max )& 709 THEN 710 CALL wave_breaking_term( i, j, 2 ) 711 ENDIF 684 712 685 713 ! … … 731 759 !-- Drag by plant canopy 732 760 IF ( plant_canopy ) CALL pcm_tendency( i, j, 3 ) 761 762 ! 763 !-- Effect of Stokes drift (in ocean mode only) 764 IF ( stokes_force ) CALL stokes_drift_terms( i, j, 3 ) 733 765 734 766 ! … … 1383 1415 1384 1416 ! 1417 !-- Effect of Stokes drift (in ocean mode only) 1418 IF ( stokes_force ) CALL stokes_drift_terms( 1 ) 1419 1420 ! 1385 1421 !-- Forces by wind turbines 1386 1422 IF ( wind_turbine ) CALL wtm_tendencies( 1 ) … … 1405 1441 1406 1442 ! 1443 !-- Add turbulence generated by wave breaking (in ocean mode only) 1444 IF ( wave_breaking .AND. & 1445 intermediate_timestep_count == intermediate_timestep_count_max ) & 1446 THEN 1447 CALL wave_breaking_term( 1 ) 1448 ENDIF 1449 1450 ! 1407 1451 !-- Calculate tendencies for the next Runge-Kutta step 1408 1452 IF ( timestep_scheme(1:5) == 'runge' ) THEN … … 1466 1510 !-- Nudging 1467 1511 IF ( nudging ) CALL nudge( simulated_time, 'v' ) 1512 1513 ! 1514 !-- Effect of Stokes drift (in ocean mode only) 1515 IF ( stokes_force ) CALL stokes_drift_terms( 2 ) 1468 1516 1469 1517 ! … … 1490 1538 1491 1539 ! 1540 !-- Add turbulence generated by wave breaking (in ocean mode only) 1541 IF ( wave_breaking .AND. & 1542 intermediate_timestep_count == intermediate_timestep_count_max ) & 1543 THEN 1544 CALL wave_breaking_term( 2 ) 1545 ENDIF 1546 1547 ! 1492 1548 !-- Calculate tendencies for the next Runge-Kutta step 1493 1549 IF ( timestep_scheme(1:5) == 'runge' ) THEN … … 1547 1603 !-- Drag by plant canopy 1548 1604 IF ( plant_canopy ) CALL pcm_tendency( 3 ) 1605 1606 ! 1607 !-- Effect of Stokes drift (in ocean mode only) 1608 IF ( stokes_force ) CALL stokes_drift_terms( 3 ) 1549 1609 1550 1610 !
Note: See TracChangeset
for help on using the changeset viewer.