Changeset 5132
- Timestamp:
- Jul 26, 2024, 12:23:19 PM (5 months ago)
- Location:
- LMDZ6/branches/Amaury_dev
- Files:
-
- 27 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev
- Property svn:mergeinfo changed
/LMDZ6/trunk (added) merged: 5085,5097,5109,5121,5124-5127
- Property svn:mergeinfo changed
-
LMDZ6/branches/Amaury_dev/DefLists/field_def_lmdz.xml
r5039 r5132 221 221 <field id="fqfonte" long_name="Land ice melt" unit="kg/m2/s" /> 222 222 <field id="runofflic" long_name="Land ice melt to ocean" unit="kg/m2/s" /> 223 <field id="runoffland" long_name="Runoff to ocean" unit="kg/m2/s" /> 223 224 <field id="mrroli" long_name="Runoff flux over land ice" unit="kg/m2/s" /> 224 225 <field id="taux" long_name="Zonal wind stress" unit="Pa" /> … … 590 591 <field id="plulH216O" long_name="Large-scale Precip." unit="kg/(s*m2)" /> 591 592 <field id="plucH216O" long_name="Convective Precip." unit="kg/(s*m2)" /> 593 <field id="runofflandH216O" long_name="Runoff to ocean" unit="kg/(s*m2)" /> 592 594 <field id="evapH216O" long_name="Evaporat." unit="kg/(s*m2)" /> 593 595 <field id="evap_terH216O" long_name="evaporation at surface ter" unit="kg/(s*m2)" /> … … 598 600 <field id="plulH217O" long_name="Large-scale Precip." unit="kg/(s*m2)" /> 599 601 <field id="plucH217O" long_name="Convective Precip." unit="kg/(s*m2)" /> 602 <field id="runofflandH217O" long_name="Runoff to ocean" unit="kg/(s*m2)" /> 600 603 <field id="evapH217O" long_name="Evaporat." unit="kg/(s*m2)" /> 601 604 <field id="evap_terH217O" long_name="evaporation at surface ter" unit="kg/(s*m2)" /> … … 606 609 <field id="plulH218O" long_name="Large-scale Precip." unit="kg/(s*m2)" /> 607 610 <field id="plucH218O" long_name="Convective Precip." unit="kg/(s*m2)" /> 611 <field id="runofflandH218O" long_name="Runoff to ocean" unit="kg/(s*m2)" /> 608 612 <field id="evapH218O" long_name="Evaporat." unit="kg/(s*m2)" /> 609 613 <field id="evap_terH218O" long_name="evaporation at surface ter" unit="kg/(s*m2)" /> … … 615 619 <field id="plulHDO" long_name="Large-scale Precip." unit="kg/(s*m2)" /> 616 620 <field id="plucHDO" long_name="Convective Precip." unit="kg/(s*m2)" /> 621 <field id="runofflandHDO" long_name="Runoff to ocean" unit="kg/(s*m2)" /> 617 622 <field id="evapHDO" long_name="Evaporat." unit="kg/(s*m2)" /> 618 623 <field id="evap_terHDO" long_name="evaporation at surface ter" unit="kg/(s*m2)" /> … … 623 628 <field id="plulHTO" long_name="Large-scale Precip." unit="kg/(s*m2)" /> 624 629 <field id="plucHTO" long_name="Convective Precip." unit="kg/(s*m2)" /> 630 <field id="runofflandHTO" long_name="Runoff to ocean" unit="kg/(s*m2)" /> 625 631 <field id="evapHTO" long_name="Evaporat." unit="kg/(s*m2)" /> 626 632 <field id="evap_terHTO" long_name="evaporation at surface ter" unit="kg/(s*m2)" /> … … 636 642 <field id="tke_buoy" long_name="TKE Buoyancy term" unit="m2/s3" /> 637 643 <field id="tke_shear" long_name="TKE Shear term" unit="m2/s3" /> 638 644 <field id="tke_trans" long_name="TKE Transport term" unit="m2/s3" /> 639 645 <field id="tke_ter" long_name="Max Turb. Kinetic Energy ter" unit="m2/s2" /> 640 646 <field id="tke_lic" long_name="Max Turb. Kinetic Energy lic" unit="m2/s2" /> -
LMDZ6/branches/Amaury_dev/DefLists/file_def_histday_lmdz.xml
r4981 r5132 2 2 <file_definition type="one_file"> 3 3 <file_group id="defile"> 4 <file id="histday" name="histday" output_freq="1d" output_level=" _AUTO_" enabled="_AUTO_" compression_level="2" sync_freq="1d">4 <file id="histday" name="histday" output_freq="1d" output_level="1" enabled=".TRUE." compression_level="0" sync_freq="1d"> 5 5 6 6 <!-- VARS 1D --> … … 131 131 <field field_ref="mrroli" level="10" /> 132 132 <field field_ref="runofflic" level="10" /> 133 <field field_ref="runoffland" level="1" /> 133 <field field_ref="runoffland" level="1" /> 134 134 <field field_ref="taux" level="10" /> 135 135 <field field_ref="tauy" level="10" /> … … 453 453 <!-- Begin Added SN isotopes 2D fields 07 2023 --> 454 454 <!-- water oxygen H216O H217O H218O --> 455 <field_group level="11" > <!-- H216O --> 456 <field field_ref="precipH216O" /> 457 <field field_ref="plulH216O" /> 458 <field field_ref="plucH216O" /> 459 <field field_ref="runofflandH216O" /> 460 <field field_ref="evapH216O" /> 461 <field field_ref="evap_terH216O" /> 462 <field field_ref="evap_licH216O" /> 463 <field field_ref="evap_oceH216O" /> 464 <field field_ref="evap_sicH216O" /> 465 </field_group> 466 <field_group level="11" > <!-- H217O --> 467 <field field_ref="precipH217O" /> 468 <field field_ref="plulH217O" /> 469 <field field_ref="plucH217O" /> 470 <field field_ref="runofflandH217O" /> 471 <field field_ref="evapH217O" /> 472 <field field_ref="evap_terH217O" /> 473 <field field_ref="evap_licH217O" /> 474 <field field_ref="evap_oceH217O" /> 475 <field field_ref="evap_sicH217O" /> 476 </field_group> 477 <field_group level="1" > <!-- H218O --> 478 <field field_ref="precipH218O" /> 479 <field field_ref="plulH218O" /> 480 <field field_ref="plucH218O" /> 481 <field field_ref="runofflandH218O" /> 482 <field field_ref="evapH218O" /> 483 <field field_ref="evap_terH218O" /> 484 <field field_ref="evap_licH218O" /> 485 <field field_ref="evap_oceH218O" /> 486 <field field_ref="evap_sicH218O" /> 455 <field_group id="dd_2D_H216O" enabled="False" > <!-- H216O --> 456 <field field_ref="precipH216O" level="1" /> 457 <field field_ref="plulH216O" level="1" /> 458 <field field_ref="plucH216O" level="1" /> 459 <field field_ref="evapH216O" level="1" /> 460 <field field_ref="evap_terH216O" level="1" /> 461 <field field_ref="evap_licH216O" level="1" /> 462 <field field_ref="evap_oceH216O" level="1" /> 463 <field field_ref="evap_sicH216O" level="1" /> 464 </field_group> 465 <field_group id="dd_2D_H217O" enabled="False" > <!-- H217O --> 466 <field field_ref="precipH217O" level="1" /> 467 <field field_ref="plulH217O" level="1" /> 468 <field field_ref="plucH217O" level="1" /> 469 <field field_ref="evapH217O" level="1" /> 470 <field field_ref="evap_terH217O" level="1" /> 471 <field field_ref="evap_licH217O" level="1" /> 472 <field field_ref="evap_oceH217O" level="1" /> 473 <field field_ref="evap_sicH217O" level="1" /> 474 </field_group> 475 <field_group id="dd_2D_H218O" enabled="False" > <!-- H218O --> 476 <field field_ref="precipH218O" level="1" /> 477 <field field_ref="plulH218O" level="1" /> 478 <field field_ref="plucH218O" level="1" /> 479 <field field_ref="evapH218O" level="1" /> 480 <field field_ref="evap_terH218O" level="1" /> 481 <field field_ref="evap_licH218O" level="1" /> 482 <field field_ref="evap_oceH218O" level="1" /> 483 <field field_ref="evap_sicH218O" level="1" /> 487 484 </field_group> 488 485 <!-- water hydrogen HDO HTO --> 489 <field_group level="1" > <!-- HDO --> 490 <field field_ref="precipHDO" /> 491 <field field_ref="plulHDO" /> 492 <field field_ref="plucHDO" /> 493 <field field_ref="runofflandHDO" /> 494 <field field_ref="evapHDO" /> 495 <field field_ref="evap_terHDO" /> 496 <field field_ref="evap_licHDO" /> 497 <field field_ref="evap_oceHDO" /> 498 <field field_ref="evap_sicHDO" /> 499 </field_group> 500 <field_group level="11" > <!-- HTO --> 501 <field field_ref="plulHTO" /> 502 <field field_ref="precipHTO" /> 503 <field field_ref="plucHTO" /> 504 <field field_ref="runofflandHTO" /> 505 <field field_ref="evapHTO" /> 506 <field field_ref="evap_terHTO" /> 507 <field field_ref="evap_licHTO" /> 508 <field field_ref="evap_oceHTO" /> 509 <field field_ref="evap_sicHTO" /> 486 <field_group id="dd_2D_HDO" enabled="False" > <!-- HDO --> 487 <field field_ref="precipHDO" level="1" /> 488 <field field_ref="plulHDO" level="1" /> 489 <field field_ref="plucHDO" level="1" /> 490 <field field_ref="evapHDO" level="1" /> 491 <field field_ref="evap_terHDO" level="1" /> 492 <field field_ref="evap_licHDO" level="1" /> 493 <field field_ref="evap_oceHDO" level="1" /> 494 <field field_ref="evap_sicHDO" level="1" /> 495 </field_group> 496 <field_group id="dd_2D_HTO" enabled="False" > <!-- HTO --> 497 <field field_ref="plulHTO" level="1" /> 498 <field field_ref="precipHTO" level="1" /> 499 <field field_ref="plucHTO" level="1" /> 500 <field field_ref="evapHTO" level="1" /> 501 <field field_ref="evap_terHTO" level="1" /> 502 <field field_ref="evap_licHTO" level="1" /> 503 <field field_ref="evap_oceHTO" level="1" /> 504 <field field_ref="evap_sicHTO" level="1" /> 510 505 </field_group> 511 506 <!-- end Added SN isotopes 2D fields 07 2023 --> … … 687 682 <!-- Begin Added SN isotopes 3D fields 07 2023 --> 688 683 <!-- water oxygen H216O H217O H218O --> 689 <field_group level="11"> <!-- H216O -->690 <field field_ref="ovapH216O" />691 <field field_ref="oliqH216O" />692 <field field_ref="ocondH216O" />693 <field field_ref="dqdynH216O" />694 <field field_ref="dqldynH216O" />695 <field field_ref="dqconH216O" />696 <field field_ref="dqlscH216O" />697 <field field_ref="dqevaH216O" />698 <field field_ref="dqvdfH216O" />699 <field field_ref="dqajsH216O" />700 <field field_ref="dqtheH216O" />701 </field_group> 702 <field_group level="11" > <!-- H217O -->703 <field field_ref="ovapH217O" />704 <field field_ref="oliqH217O" />705 <field field_ref="ocondH217O" />706 <field field_ref="dqdynH217O" />707 <field field_ref="dqldynH217O" />708 <field field_ref="dqconH217O" />709 <field field_ref="dqlscH217O" />710 <field field_ref="dqevaH217O" />711 <field field_ref="dqvdfH217O" />712 <field field_ref="dqajsH217O" />713 <field field_ref="dqtheH217O" />714 </field_group> 715 <field_group level="1" > <!-- H218O -->716 <field field_ref="ovapH218O" />717 <field field_ref="oliqH218O" />718 <field field_ref="ocondH218O" />719 <field field_ref="dqdynH218O" />720 <field field_ref="dqldynH218O" />721 <field field_ref="dqconH218O" />722 <field field_ref="dqlscH218O" />723 <field field_ref="dqevaH218O" />724 <field field_ref="dqvdfH218O" />725 <field field_ref="dqajsH218O" />726 <field field_ref="dqtheH218O" />684 <field_group id="dd_3D_H216O" enabled="False" > <!-- H216O --> 685 <field field_ref="ovapH216O" level="1" /> 686 <field field_ref="oliqH216O" level="1" /> 687 <field field_ref="ocondH216O" level="1" /> 688 <field field_ref="dqdynH216O" level="1" /> 689 <field field_ref="dqldynH216O" level="1" /> 690 <field field_ref="dqconH216O" level="1" /> 691 <field field_ref="dqlscH216O" level="1" /> 692 <field field_ref="dqevaH216O" level="1" /> 693 <field field_ref="dqvdfH216O" level="1" /> 694 <field field_ref="dqajsH216O" level="1" /> 695 <field field_ref="dqtheH216O" level="1" /> 696 </field_group> 697 <field_group id="dd_3D_H217O" enabled="False" > <!-- H217O --> 698 <field field_ref="ovapH217O" level="1" /> 699 <field field_ref="oliqH217O" level="1" /> 700 <field field_ref="ocondH217O" level="1" /> 701 <field field_ref="dqdynH217O" level="1" /> 702 <field field_ref="dqldynH217O" level="1" /> 703 <field field_ref="dqconH217O" level="1" /> 704 <field field_ref="dqlscH217O" level="1" /> 705 <field field_ref="dqevaH217O" level="1" /> 706 <field field_ref="dqvdfH217O" level="1" /> 707 <field field_ref="dqajsH217O" level="1" /> 708 <field field_ref="dqtheH217O" level="1" /> 709 </field_group> 710 <field_group id="dd_3D_H218O" enabled="False" > <!-- H218O --> 711 <field field_ref="ovapH218O" level="1" /> 712 <field field_ref="oliqH218O" level="1" /> 713 <field field_ref="ocondH218O" level="1" /> 714 <field field_ref="dqdynH218O" level="1" /> 715 <field field_ref="dqldynH218O" level="1" /> 716 <field field_ref="dqconH218O" level="1" /> 717 <field field_ref="dqlscH218O" level="1" /> 718 <field field_ref="dqevaH218O" level="1" /> 719 <field field_ref="dqvdfH218O" level="1" /> 720 <field field_ref="dqajsH218O" level="1" /> 721 <field field_ref="dqtheH218O" level="1" /> 727 722 </field_group> 728 723 <!-- water hydrogen HDO HTO --> 729 <field_group level="1" > <!-- HDO -->730 <field field_ref="ovapHDO" />731 <field field_ref="oliqHDO" />732 <field field_ref="ocondHDO" />733 <field field_ref="dqdynHDO" />734 <field field_ref="dqldynHDO" />735 <field field_ref="dqconHDO" />736 <field field_ref="dqlscHDO" />737 <field field_ref="dqevaHDO" />738 <field field_ref="dqvdfHDO" />739 <field field_ref="dqajsHDO" />740 <field field_ref="dqtheHDO" />741 </field_group> 742 <field_group level="11" > <!-- HTO -->743 <field field_ref="ovapHTO" />744 <field field_ref="oliqHTO" />745 <field field_ref="ocondHTO" />746 <field field_ref="dqdynHTO" />747 <field field_ref="dqldynHTO" />748 <field field_ref="dqconHTO" />749 <field field_ref="dqlscHTO" />750 <field field_ref="dqevaHTO" />751 <field field_ref="dqvdfHTO" />752 <field field_ref="dqajsHTO" />753 <field field_ref="dqtheHTO" />724 <field_group id="dd_3D_HDO" enabled="False" > <!-- HDO --> 725 <field field_ref="ovapHDO" level="1" /> 726 <field field_ref="oliqHDO" level="1" /> 727 <field field_ref="ocondHDO" level="1" /> 728 <field field_ref="dqdynHDO" level="1" /> 729 <field field_ref="dqldynHDO" level="1" /> 730 <field field_ref="dqconHDO" level="1" /> 731 <field field_ref="dqlscHDO" level="1" /> 732 <field field_ref="dqevaHDO" level="1" /> 733 <field field_ref="dqvdfHDO" level="1" /> 734 <field field_ref="dqajsHDO" level="1" /> 735 <field field_ref="dqtheHDO" level="1" /> 736 </field_group> 737 <field_group id="dd_3D_HTO" enabled="False" > <!-- HTO --> 738 <field field_ref="ovapHTO" level="1" /> 739 <field field_ref="oliqHTO" level="1" /> 740 <field field_ref="ocondHTO" level="1" /> 741 <field field_ref="dqdynHTO" level="1" /> 742 <field field_ref="dqldynHTO" level="1" /> 743 <field field_ref="dqconHTO" level="1" /> 744 <field field_ref="dqlscHTO" level="1" /> 745 <field field_ref="dqevaHTO" level="1" /> 746 <field field_ref="dqvdfHTO" level="1" /> 747 <field field_ref="dqajsHTO" level="1" /> 748 <field field_ref="dqtheHTO" level="1" /> 754 749 </field_group> 755 750 <!-- End Added SN isotopes 3D fields 07 2023 --> -
LMDZ6/branches/Amaury_dev/DefLists/file_def_histmth_lmdz.xml
r4981 r5132 2 2 <file_definition> 3 3 <file_group id="defile"> 4 <file id="histmth" name="histmth" output_freq="1mo" output_level=" _AUTO_" enabled="_AUTO_" compression_level="2">4 <file id="histmth" name="histmth" output_freq="1mo" output_level="1" enabled=".TRUE." compression_level="0"> 5 5 6 6 <!-- VARS 1D --> … … 502 502 <!-- Begin Added SN isotopes 2D fields 07 2023 --> 503 503 <!-- water oxygen H216O H217O H218O --> 504 <field_group level="11" > <!-- H216O --> 505 <field field_ref="precipH216O" /> 506 <field field_ref="plulH216O" /> 507 <field field_ref="plucH216O" /> 508 <field field_ref="runofflandH216O" /> 509 <field field_ref="evapH216O" /> 510 <field field_ref="evap_terH216O" /> 511 <field field_ref="evap_licH216O" /> 512 <field field_ref="evap_oceH216O" /> 513 <field field_ref="evap_sicH216O" /> 504 <field_group id="mm_2D_H216O" enabled="False" > <!-- H216O --> 505 <field field_ref="precipH216O" level="1" /> 506 <field field_ref="plulH216O" level="1" /> 507 <field field_ref="plucH216O" level="1" /> 508 <field field_ref="evapH216O" level="1" /> 509 <field field_ref="evap_terH216O" level="1" /> 510 <field field_ref="evap_licH216O" level="1" /> 511 <field field_ref="evap_oceH216O" level="1" /> 512 <field field_ref="evap_sicH216O" level="1" /> 514 513 </field_group> 515 <field_group level="11" > <!-- H217O --> 516 <field field_ref="precipH217O" /> 517 <field field_ref="plulH217O" /> 518 <field field_ref="plucH217O" /> 519 <field field_ref="runofflandH217O" /> 520 <field field_ref="evapH217O" /> 521 <field field_ref="evap_terH217O" /> 522 <field field_ref="evap_licH217O" /> 523 <field field_ref="evap_oceH217O" /> 524 <field field_ref="evap_sicH217O" /> 514 <field_group id="mm_2D_H217O" enabled="False" > <!-- H217O --> 515 <field field_ref="precipH217O" level="1" /> 516 <field field_ref="plulH217O" level="1" /> 517 <field field_ref="plucH217O" level="1" /> 518 <field field_ref="evapH217O" level="1" /> 519 <field field_ref="evap_terH217O" level="1" /> 520 <field field_ref="evap_licH217O" level="1" /> 521 <field field_ref="evap_oceH217O" level="1" /> 522 <field field_ref="evap_sicH217O" level="1" /> 525 523 </field_group> 526 <field_group level="1" > <!-- H218O --> 527 <field field_ref="precipH218O" /> 528 <field field_ref="plulH218O" /> 529 <field field_ref="plucH218O" /> 530 <field field_ref="runofflandH218O" /> 531 <field field_ref="evapH218O" /> 532 <field field_ref="evap_terH218O" /> 533 <field field_ref="evap_licH218O" /> 534 <field field_ref="evap_oceH218O" /> 535 <field field_ref="evap_sicH218O" /> 524 <field_group id="mm_2D_H218O" enabled="False" > <!-- H218O --> 525 <field field_ref="precipH218O" level="1" /> 526 <field field_ref="plulH218O" level="1" /> 527 <field field_ref="plucH218O" level="1" /> 528 <field field_ref="evapH218O" level="1" /> 529 <field field_ref="evap_terH218O" level="1" /> 530 <field field_ref="evap_licH218O" level="1" /> 531 <field field_ref="evap_oceH218O" level="1" /> 532 <field field_ref="evap_sicH218O" level="1" /> 536 533 </field_group> 537 534 <!-- water hydrogen HDO HTO --> 538 <field_group level="1" > <!-- HDO --> 539 <field field_ref="precipHDO" /> 540 <field field_ref="plulHDO" /> 541 <field field_ref="plucHDO" /> 542 <field field_ref="runofflandHDO" /> 543 <field field_ref="evapHDO" /> 544 <field field_ref="evap_terHDO" /> 545 <field field_ref="evap_licHDO" /> 546 <field field_ref="evap_oceHDO" /> 547 <field field_ref="evap_sicHDO" /> 535 <field_group id="mm_2D_HDO" enabled="False" > <!-- HDO --> 536 <field field_ref="precipHDO" level="1" /> 537 <field field_ref="plulHDO" level="1" /> 538 <field field_ref="plucHDO" level="1" /> 539 <field field_ref="evapHDO" level="1" /> 540 <field field_ref="evap_terHDO" level="1" /> 541 <field field_ref="evap_licHDO" level="1" /> 542 <field field_ref="evap_oceHDO" level="1" /> 543 <field field_ref="evap_sicHDO" level="1" /> 548 544 </field_group> 549 <field_group level="11" > <!-- HTO --> 550 <field field_ref="plulHTO" /> 551 <field field_ref="precipHTO" /> 552 <field field_ref="plucHTO" /> 553 <field field_ref="runofflandHTO" /> 554 <field field_ref="evapHTO" /> 555 <field field_ref="evap_terHTO" /> 556 <field field_ref="evap_licHTO" /> 557 <field field_ref="evap_oceHTO" /> 558 <field field_ref="evap_sicHTO" /> 545 <field_group id="mm_2D_HTO" enabled="False" > <!-- HTO --> 546 <field field_ref="plulHTO" level="1" /> 547 <field field_ref="precipHTO" level="1" /> 548 <field field_ref="plucHTO" level="1" /> 549 <field field_ref="evapHTO" level="1" /> 550 <field field_ref="evap_terHTO" level="1" /> 551 <field field_ref="evap_licHTO" level="1" /> 552 <field field_ref="evap_oceHTO" level="1" /> 553 <field field_ref="evap_sicHTO" level="1" /> 559 554 </field_group> 560 555 <!-- end Added SN isotopes 2D fields 07 2023 --> … … 743 738 <!-- Begin Added SN isotopes 3D fields 07 2023 --> 744 739 <!-- water oxygen H216O H217O H218O --> 745 <field_group level="11" > <!-- H216O -->746 <field field_ref="ovapH216O" />747 <field field_ref="oliqH216O" />748 <field field_ref="ocondH216O" />749 <field field_ref="dqdynH216O" />750 <field field_ref="dqldynH216O" />751 <field field_ref="dqconH216O" />752 <field field_ref="dqlscH216O" />753 <field field_ref="dqevaH216O" />754 <field field_ref="dqvdfH216O" />755 <field field_ref="dqajsH216O" />756 <field field_ref="dqtheH216O" />740 <field_group id="mm_3D_H216O" enabled="False" > <!-- H216O --> 741 <field field_ref="ovapH216O" level="1" /> 742 <field field_ref="oliqH216O" level="1" /> 743 <field field_ref="ocondH216O" level="1" /> 744 <field field_ref="dqdynH216O" level="1" /> 745 <field field_ref="dqldynH216O" level="1" /> 746 <field field_ref="dqconH216O" level="1" /> 747 <field field_ref="dqlscH216O" level="1" /> 748 <field field_ref="dqevaH216O" level="1" /> 749 <field field_ref="dqvdfH216O" level="1" /> 750 <field field_ref="dqajsH216O" level="1" /> 751 <field field_ref="dqtheH216O" level="1" /> 757 752 </field_group> 758 <field_group level="11" > <!-- H217O -->759 <field field_ref="ovapH217O" />760 <field field_ref="oliqH217O" />761 <field field_ref="ocondH217O" />762 <field field_ref="dqdynH217O" />763 <field field_ref="dqldynH217O" />764 <field field_ref="dqconH217O" />765 <field field_ref="dqlscH217O" />766 <field field_ref="dqevaH217O" />767 <field field_ref="dqvdfH217O" />768 <field field_ref="dqajsH217O" />769 <field field_ref="dqtheH217O" />753 <field_group id="mm_3D_H217O" enabled="False" > <!-- H217O --> 754 <field field_ref="ovapH217O" level="1" /> 755 <field field_ref="oliqH217O" level="1" /> 756 <field field_ref="ocondH217O" level="1" /> 757 <field field_ref="dqdynH217O" level="1" /> 758 <field field_ref="dqldynH217O" level="1" /> 759 <field field_ref="dqconH217O" level="1" /> 760 <field field_ref="dqlscH217O" level="1" /> 761 <field field_ref="dqevaH217O" level="1" /> 762 <field field_ref="dqvdfH217O" level="1" /> 763 <field field_ref="dqajsH217O" level="1" /> 764 <field field_ref="dqtheH217O" level="1" /> 770 765 </field_group> 771 <field_group level="1" > <!-- H218O -->772 <field field_ref="ovapH218O" />773 <field field_ref="oliqH218O" />774 <field field_ref="ocondH218O" />775 <field field_ref="dqdynH218O" />776 <field field_ref="dqldynH218O" />777 <field field_ref="dqconH218O" />778 <field field_ref="dqlscH218O" />779 <field field_ref="dqevaH218O" />780 <field field_ref="dqvdfH218O" />781 <field field_ref="dqajsH218O" />782 <field field_ref="dqtheH218O" />766 <field_group id="mm_3D_H218O" enabled="False" > <!-- H218O --> 767 <field field_ref="ovapH218O" level="1" /> 768 <field field_ref="oliqH218O" level="1" /> 769 <field field_ref="ocondH218O" level="1" /> 770 <field field_ref="dqdynH218O" level="1" /> 771 <field field_ref="dqldynH218O" level="1" /> 772 <field field_ref="dqconH218O" level="1" /> 773 <field field_ref="dqlscH218O" level="1" /> 774 <field field_ref="dqevaH218O" level="1" /> 775 <field field_ref="dqvdfH218O" level="1" /> 776 <field field_ref="dqajsH218O" level="1" /> 777 <field field_ref="dqtheH218O" level="1" /> 783 778 </field_group> 784 779 <!-- water hydrogen HDO HTO --> 785 <field_group level="1" > <!-- HDO -->786 <field field_ref="ovapHDO" />787 <field field_ref="oliqHDO" />788 <field field_ref="ocondHDO" />789 <field field_ref="dqdynHDO" />790 <field field_ref="dqldynHDO" />791 <field field_ref="dqconHDO" />792 <field field_ref="dqlscHDO" />793 <field field_ref="dqevaHDO" />794 <field field_ref="dqvdfHDO" />795 <field field_ref="dqajsHDO" />796 <field field_ref="dqtheHDO" />780 <field_group id="mm_3D_HDO" enabled="False" > <!-- HDO --> 781 <field field_ref="ovapHDO" level="1" /> 782 <field field_ref="oliqHDO" level="1" /> 783 <field field_ref="ocondHDO" level="1" /> 784 <field field_ref="dqdynHDO" level="1" /> 785 <field field_ref="dqldynHDO" level="1" /> 786 <field field_ref="dqconHDO" level="1" /> 787 <field field_ref="dqlscHDO" level="1" /> 788 <field field_ref="dqevaHDO" level="1" /> 789 <field field_ref="dqvdfHDO" level="1" /> 790 <field field_ref="dqajsHDO" level="1" /> 791 <field field_ref="dqtheHDO" level="1" /> 797 792 </field_group> 798 <field_group level="11" > <!-- HTO -->799 <field field_ref="ovapHTO" />800 <field field_ref="oliqHTO" />801 <field field_ref="ocondHTO" />802 <field field_ref="dqdynHTO" />803 <field field_ref="dqldynHTO" />804 <field field_ref="dqconHTO" />805 <field field_ref="dqlscHTO" />806 <field field_ref="dqevaHTO" />807 <field field_ref="dqvdfHTO" />808 <field field_ref="dqajsHTO" />809 <field field_ref="dqtheHTO" />793 <field_group id="mm_3D_HTO" enabled="False" > <!-- HTO --> 794 <field field_ref="ovapHTO" level="1" /> 795 <field field_ref="oliqHTO" level="1" /> 796 <field field_ref="ocondHTO" level="1" /> 797 <field field_ref="dqdynHTO" level="1" /> 798 <field field_ref="dqldynHTO" level="1" /> 799 <field field_ref="dqconHTO" level="1" /> 800 <field field_ref="dqlscHTO" level="1" /> 801 <field field_ref="dqevaHTO" level="1" /> 802 <field field_ref="dqvdfHTO" level="1" /> 803 <field field_ref="dqajsHTO" level="1" /> 804 <field field_ref="dqtheHTO" level="1" /> 810 805 </field_group> 811 806 <!-- End Added SN isotopes 3D fields 07 2023 --> -
LMDZ6/branches/Amaury_dev/arch/arch-X64_JEANZAY.env
r5035 r5132 1 1 module purge 2 2 module load intel-compilers/19.0.4 3 3 module load intel-mkl/19.0.4 4 4 module load hdf5/1.10.5-mpi 5 5 module load netcdf/4.7.2-mpi … … 12 12 export CPP="icc -E" 13 13 export CC=icc 14 -
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90
r5118 r5132 94 94 USE phys_state_var_mod, ONLY: beta_aridity, delta_tsurf, awake_dens, cv_gen, & 95 95 ratqs_inter_, rneb_ancien 96 !use ioipsl_getincom97 96 IMPLICIT NONE 98 97 !------------------------------------------------------------------------------- -
LMDZ6/branches/Amaury_dev/libf/misc/lmdz_NOMODULE_abort_gcm.f90
r5130 r5132 4 4 5 5 SUBROUTINE abort_gcm(modname, message, ierr) 6 !END7 6 ! Stops the simulation cleanly, closing files and printing various 8 7 ! comments … … 43 42 IF (ierr == 0) THEN 44 43 WRITE(lunout, *) 'Everything is cool' 44 IF (.NOT. using_mpi) THEN 45 STOP 46 END IF 45 47 ELSE 46 48 WRITE(lunout, *) 'Houston, we have a problem, ierr = ', ierr … … 53 55 STOP 1 54 56 END IF 55 END IF57 END IF 56 58 END SUBROUTINE abort_gcm -
LMDZ6/branches/Amaury_dev/libf/phy_common/lmdz_grid_phy.F90
r5113 r5132 21 21 MODULE PROCEDURE grid1dTo2d_glo_i,grid1dTo2d_glo_i1,grid1dTo2d_glo_i2,grid1dTo2d_glo_i3, & 22 22 grid1dTo2d_glo_r,grid1dTo2d_glo_r1,grid1dTo2d_glo_r2,grid1dTo2d_glo_r3, & 23 23 grid1dTo2d_glo_l,grid1dTo2d_glo_l1,grid1dTo2d_glo_l2,grid1dTo2d_glo_l3 24 24 END INTERFACE 25 25 -
LMDZ6/branches/Amaury_dev/libf/phylmd/phys_local_var_mod.F90
r5101 r5132 407 407 REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxfluxlat, zxtsol, snow_lsc, zxfqfonte 408 408 !$OMP THREADPRIVATE(zxfluxlat, zxtsol, snow_lsc, zxfqfonte) 409 REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxrunofflic 410 !$OMP THREADPRIVATE(zxrunofflic) 409 !SN runoffdiag 410 REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxrunofflic, runoff_diag 411 !$OMP THREADPRIVATE(zxrunofflic, runoff_diag) 411 412 REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxqsurf, rain_lsc, rain_num 412 413 !$OMP THREADPRIVATE(zxqsurf, rain_lsc, rain_num) … … 414 415 REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: xtevap,xtprw 415 416 !$OMP THREADPRIVATE(xtevap,xtprw) 416 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: h1_diag ,runoff_diag417 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: h1_diag 417 418 REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: xtrunoff_diag 418 !$OMP THREADPRIVATE(h1_diag ,runoff_diag,xtrunoff_diag)419 !$OMP THREADPRIVATE(h1_diagv,xtrunoff_diag) 419 420 REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: zxfxtcalving 420 421 !$OMP THREADPRIVATE(zxfxtcalving) … … 1046 1047 ALLOCATE(zxfqcalving(klon), zxfluxlat(klon)) 1047 1048 ALLOCATE(zxtsol(klon), snow_lsc(klon), zxfqfonte(klon), zxqsurf(klon)) 1048 ALLOCATE(zxrunofflic(klon)) 1049 ! SN add runoff_diag 1050 ALLOCATE(zxrunofflic(klon), runoff_diag(klon)) 1051 runoff_diag(:)=0. 1049 1052 ALLOCATE(zxustartlic(klon), zxrhoslic(klon), zxqsaltlic(klon)) 1050 1053 zxustartlic(:) = 0. ; zxrhoslic(:) = 0. ; zxqsaltlic(:) = 0. … … 1052 1055 ALLOCATE(rain_num(klon)) 1053 1056 ALLOCATE(qlth(klon, klev), qith(klon, klev), qsith(klon, klev), wiceth(klon, klev)) 1054 1055 1057 #ifdef ISO 1056 1058 ALLOCATE(xtevap(ntraciso,klon)) … … 1061 1063 ALLOCATE(xtrain_lsc(ntraciso,klon)) 1062 1064 ALLOCATE(xtrunoff_diag(niso,klon)) 1063 ALLOCATE(h1_diag(klon) ,runoff_diag(klon))1065 ALLOCATE(h1_diag(klon)) 1064 1066 !SN 1065 runoff_diag(:)=0. ;xtrunoff_diag(:,:)=0. ! because variables are only given values on knon grid points1067 xtrunoff_diag(:,:)=0. ! because variables are only given values on knon grid points 1066 1068 #endif 1067 1069 … … 1467 1469 DEALLOCATE(uwat, vwat) 1468 1470 DEALLOCATE(zxfqcalving, zxfluxlat) 1469 DEALLOCATE(zxrunofflic) 1471 ! SN runoff_diag 1472 DEALLOCATE(zxrunofflic, runoff_diag) 1470 1473 DEALLOCATE(zxustartlic, zxrhoslic, zxqsaltlic) 1471 1474 DEALLOCATE(zxtsol, snow_lsc, zxfqfonte, zxqsurf) … … 1496 1499 DEALLOCATE(dxtvdf_x, dxtvdf_w) 1497 1500 DEALLOCATE(xt_therm) 1498 DEALLOCATE(h1_diag, runoff_diag,xtrunoff_diag)1501 DEALLOCATE(h1_diag,xtrunoff_diag) 1499 1502 #endif 1500 1503 -
LMDZ6/branches/Amaury_dev/libf/phylmd/phys_output_ctrlout_mod.F90
r5117 r5132 2108 2108 TYPE(ctrl_out), SAVE :: o_runoff = ctrl_out((/ 1, 1, 10, 1, 10, 10, 11, 11, 11, 11/), & 2109 2109 'runoff', 'Run-off rate land ice', 'kg/m2/s', (/ ('', i=1, 10) /)) 2110 #ifdef ISO 2110 ! SN add runoff_diag 2111 !#ifdef ISO 2111 2112 TYPE(ctrl_out), SAVE :: o_runoff_diag = ctrl_out((/ 1, 1, 10, 1, 10, 10, 11, 11, 11, 11/), & 2112 2113 'runoffland', 'Run-off rate land for bucket', 'kg/m2/s', (/ ('', i=1, 10) /)) 2113 #endif2114 !#endif 2114 2115 TYPE(ctrl_out), SAVE :: o_albslw3 = ctrl_out((/ 1, 1, 1, 1, 10, 10, 11, 11, 11, 11/), & 2115 2116 'albslw3', 'Surface albedo LW3', '-', (/ ('', i=1, 10) /)) -
LMDZ6/branches/Amaury_dev/libf/phylmd/phys_output_write_mod.F90
r5117 r5132 64 64 o_fder, o_ffonte, o_fqcalving, o_fqfonte, o_mrroli, o_runofflic, & 65 65 o_taux, o_tauy, o_snowsrf, o_qsnow, & 66 o_snowhgt, o_toice, o_sissnow, o_runoff, & 66 ! SN runoff_diag 67 o_snowhgt, o_toice, o_sissnow, o_runoff, o_runoff_diag, & 67 68 o_albslw3, o_pourc_srf, o_fract_srf, & 68 69 o_taux_srf, o_tauy_srf, o_tsol_srf, & … … 207 208 ! Isotopes 208 209 o_xtprecip,o_xtplul,o_xtpluc,o_xtovap,o_xtoliq,o_xtcond, & 209 o_ runoff_diag, o_xtrunoff_diag, &210 o_xtrunoff_diag, & 210 211 o_xtevap,o_dxtdyn,o_dxtldyn,o_dxtcon,o_dxtlsc,o_dxteva, & 211 212 o_dxtajs,o_dxtvdf,o_dxtthe, o_dxtch4, & … … 317 318 zxffonte, zxfqcalving, zxfqfonte, zxrunofflic, fluxu, & 318 319 fluxv, zxsnow, qsnow, snowhgt, to_ice, & 319 sissnow, runoff, albsol3_lic, evap_pot, & 320 ! SN runoff_diag 321 sissnow, runoff, runoff_diag, albsol3_lic, evap_pot, & 320 322 t2m, fluxt, fluxlat, fsollw, fsolsw, & 321 323 wfbils, wfevap, & … … 391 393 d_xt_ajs, d_xt_ajsb, & 392 394 d_xt_prod_nucl,d_xt_cosmo,d_xt_decroiss, & 393 runoff_diag,xtrunoff_diag, &395 xtrunoff_diag, & 394 396 #endif 395 397 ep, epmax_diag, & ! epmax_cape … … 446 448 USE indice_sol_mod, ONLY: nbsrf 447 449 #ifdef ISO 448 USE isotopes_mod, ONLY: iso_HTO 450 USE isotopes_mod, ONLY: iso_HTO, isoName 449 451 #endif 450 452 USE lmdz_geometry, ONLY: cell_area, latitude_deg, longitude_deg … … 525 527 LOGICAL, PARAMETER :: debug_strataer=.FALSE. 526 528 CHARACTER(LEN=maxlen) :: unt 529 530 #ifdef ISO 531 CHARACTER(LEN=maxlen) :: outiso 532 #endif 533 527 534 REAL,DIMENSION(klon,klev) :: z, dz 528 535 REAL,DIMENSION(klon) :: zrho, zt … … 2827 2834 end if 2828 2835 2836 !! runoff land bucket - ajout S. Nguyen 23 07 2024 2837 CALL histwrite_phy(o_runoff_diag, runoff_diag) 2838 2829 2839 #ifdef ISO 2830 2840 !WRITE(*,*) 'tmp phys_output_write: ntiso=',ntiso 2831 !! runoff land bucket - ajout S. Nguyen 25 avril 2024 2832 CALL histwrite_phy(o_runoff_diag, runoff_diag) 2833 2834 do ixt=1,ntiso 2841 2842 DO ixt = 1, ntiso 2835 2843 !WRITE(*,*) 'ixt,o_xtovap(ixt)=',ixt,o_xtovap(ixt) 2836 2844 IF (vars_defined) zx_tmp_fi2d(:) = xtrain_fall(ixt,:) + xtsnow_fall(ixt,:) … … 2909 2917 ENDDO ! iff 2910 2918 #endif 2919 2920 !SN activate water isotopes present in tracer.def 2921 #ifdef ISO 2922 DO ixt = 1, ntiso 2923 outiso = TRIM(isoName(ixt)) 2924 i = INDEX(outiso, '_', .TRUE.) 2925 outiso = outiso(1:i-1)//outiso(i+1:LEN_TRIM(outiso)) 2926 ! dayly 2927 CALL xios_set_fieldgroup_attr("dd_2D_"//TRIM(outiso), enabled=.TRUE.) 2928 CALL xios_set_fieldgroup_attr("dd_3D_"//TRIM(outiso), enabled=.TRUE.) 2929 ! monthly 2930 CALL xios_set_fieldgroup_attr("mm_2D_"//TRIM(outiso), enabled=.TRUE.) 2931 CALL xios_set_fieldgroup_attr("mm_3D_"//TRIM(outiso), enabled=.TRUE.) 2932 2933 ENDDO 2934 #endif 2911 2935 !On finalise l'initialisation: 2912 2936 IF (using_xios) CALL wxios_closedef() -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/change_srf_frac_mod.F90
r5112 r5132 3 3 4 4 MODULE change_srf_frac_mod 5 5 USE lmdz_abort_physic, ONLY: abort_physic 6 6 IMPLICIT NONE 7 7 -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/cv30_routines.F90
r5117 r5132 946 946 ) 947 947 USE lmdz_print_control, ONLY: lunout 948 USE lmdz_abort_physic, ONLY: abort_physic 948 949 #ifdef ISO 949 950 USE infotrac_phy, ONLY: ntraciso=>ntiso … … 1132 1133 ) 1133 1134 ! epmax_cape: ajout arguments 1135 USE lmdz_abort_physic, ONLY: abort_physic 1134 1136 #ifdef ISO 1135 1137 USE infotrac_phy, ONLY: ntraciso=>ntiso … … 6333 6335 ,cape,ep,hp,icb,inb,clw,nk,t,h,lv & 6334 6336 ,epmax_diag) 6337 USE lmdz_abort_physic, ONLY: abort_physic 6335 6338 IMPLICIT NONE 6336 6339 -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/cv3_routines.F90
r5117 r5132 1266 1266 ) 1267 1267 USE lmdz_print_control, ONLY: lunout 1268 1269 USE lmdz_abort_physic, ONLY: abort_physic 1268 1270 #ifdef ISO 1269 1271 USE infotrac_phy, ONLY: ntraciso=>ntiso … … 1464 1466 ) 1465 1467 USE lmdz_print_control, ONLY: prt_level 1468 USE lmdz_abort_physic, ONLY: abort_physic 1466 1469 #ifdef ISO 1467 1470 USE infotrac_phy, ONLY: ntraciso=>ntiso … … 3584 3587 ) 3585 3588 USE lmdz_print_control, ONLY: prt_level, lunout 3589 USE lmdz_abort_physic, ONLY: abort_physic 3586 3590 #ifdef ISO 3587 3591 USE infotrac_phy, ONLY: ntraciso=>ntiso -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/cv3a_compress.F90
r5117 r5132 40 40 #endif 41 41 #endif 42 42 USE lmdz_abort_physic, ONLY: abort_physic 43 43 IMPLICIT NONE 44 44 -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/cv_routines.F90
r5117 r5132 1 2 1 ! $Id$ 3 2 … … 38 37 include "cvparam.h" 39 38 INTEGER nd 40 CHARACTER (LEN =20) :: modname = 'cv_routines'41 CHARACTER (LEN =80) :: abort_message39 CHARACTER (LEN = 20) :: modname = 'cv_routines' 40 CHARACTER (LEN = 80) :: abort_message 42 41 43 42 ! noff: integer limit for convection (nd-noff) … … 71 70 delta = 0.01 ! cld 72 71 73 74 72 END SUBROUTINE cv_param 75 73 … … 96 94 include "cvparam.h" 97 95 98 99 96 DO k = 1, nlp 100 97 DO i = 1, len 101 lv(i, k) = lv0 - clmcpv *(t(i,k)-t0)102 cpn(i, k) = cpd *(1.0-q(i,k)) + cpv*q(i, k)103 cpx(i, k) = cpd *(1.0-q(i,k)) + cl*q(i, k)104 tv(i, k) = t(i, k) *(1.0+q(i,k)*epsim1)98 lv(i, k) = lv0 - clmcpv * (t(i, k) - t0) 99 cpn(i, k) = cpd * (1.0 - q(i, k)) + cpv * q(i, k) 100 cpx(i, k) = cpd * (1.0 - q(i, k)) + cl * q(i, k) 101 tv(i, k) = t(i, k) * (1.0 + q(i, k) * epsim1) 105 102 END DO 106 103 END DO … … 113 110 DO k = 2, nlp 114 111 DO i = 1, len 115 gz(i, k) = gz(i, k -1) + hrd*(tv(i,k-1)+tv(i,k))*(p(i,k-1)-p(i,k))/ph(i, &116 k)112 gz(i, k) = gz(i, k - 1) + hrd * (tv(i, k - 1) + tv(i, k)) * (p(i, k - 1) - p(i, k)) / ph(i, & 113 k) 117 114 END DO 118 115 END DO … … 123 120 DO k = 1, nlp 124 121 DO i = 1, len 125 h(i, k) = gz(i, k) + cpn(i, k)*t(i, k) 126 hm(i, k) = gz(i, k) + cpx(i, k)*(t(i,k)-t(i,1)) + lv(i, k)*q(i, k) 127 END DO 128 END DO 129 122 h(i, k) = gz(i, k) + cpn(i, k) * t(i, k) 123 hm(i, k) = gz(i, k) + cpx(i, k) * (t(i, k) - t(i, 1)) + lv(i, k) * q(i, k) 124 END DO 125 END DO 130 126 131 127 END SUBROUTINE cv_prelim 132 128 133 129 SUBROUTINE cv_feed(len, nd, t, q, qs, p, hm, gz, nk, icb, icbmax, iflag, tnk, & 134 qnk, gznk, plcl)130 qnk, gznk, plcl) 135 131 IMPLICIT NONE 136 132 … … 169 165 DO k = 2, nlp 170 166 DO i = 1, len 171 IF ((hm(i, k)<work(i)) .AND. (hm(i,k)<hm(i,k-1))) THEN167 IF ((hm(i, k)<work(i)) .AND. (hm(i, k)<hm(i, k - 1))) THEN 172 168 work(i) = hm(i, k) 173 169 ihmin(i) = k … … 193 189 DO k = minorig + 1, nl 194 190 DO i = 1, len 195 IF ((hm(i, k)>work(i)) .AND. (k<=ihmin(i))) THEN191 IF ((hm(i, k)>work(i)) .AND. (k<=ihmin(i))) THEN 196 192 work(i) = hm(i, k) 197 193 nk(i) = k … … 204 200 ! ------------------------------------------------------------------- 205 201 DO i = 1, len 206 IF (((t(i, nk(i))<250.0) .OR. (q(i,nk(i))<=0.0) .OR. (p(i,ihmin(i))< &207 400.0)) .AND. (iflag(i)==0)) iflag(i) = 7202 IF (((t(i, nk(i))<250.0) .OR. (q(i, nk(i))<=0.0) .OR. (p(i, ihmin(i))< & 203 400.0)) .AND. (iflag(i)==0)) iflag(i) = 7 208 204 END DO 209 205 ! ------------------------------------------------------------------- … … 218 214 qsnk(i) = qs(i, nk(i)) 219 215 220 rh(i) = qnk(i) /qsnk(i)216 rh(i) = qnk(i) / qsnk(i) 221 217 rh(i) = min(1.0, rh(i)) 222 chi(i) = tnk(i) /(1669.0-122.0*rh(i)-tnk(i))223 plcl(i) = pnk(i) *(rh(i)**chi(i))218 chi(i) = tnk(i) / (1669.0 - 122.0 * rh(i) - tnk(i)) 219 plcl(i) = pnk(i) * (rh(i)**chi(i)) 224 220 IF (((plcl(i)<200.0) .OR. (plcl(i)>=2000.0)) .AND. (iflag(i)==0)) iflag(i & 225 ) = 8221 ) = 8 226 222 END DO 227 223 ! ------------------------------------------------------------------- … … 234 230 DO k = minorig, nl 235 231 DO i = 1, len 236 IF ((k>=(nk(i) +1)) .AND. (p(i,k)<plcl(i))) icb(i) = min(icb(i), k)232 IF ((k>=(nk(i) + 1)) .AND. (p(i, k)<plcl(i))) icb(i) = min(icb(i), k) 237 233 END DO 238 234 END DO … … 249 245 END DO 250 246 251 252 247 END SUBROUTINE cv_feed 253 248 254 249 SUBROUTINE cv_undilute1(len, nd, t, q, qs, gz, p, nk, icb, icbmax, tp, tvp, & 255 clw)250 clw) 256 251 IMPLICIT NONE 257 252 … … 292 287 293 288 DO i = 1, len 294 ah0(i) = (cpd *(1.-qnk(i))+cl*qnk(i))*tnk(i) + qnk(i)*(lv0-clmcpv*(tnk(i)- &295 273.15)) + gznk(i)296 cpp(i) = cpd *(1.-qnk(i)) + qnk(i)*cpv289 ah0(i) = (cpd * (1. - qnk(i)) + cl * qnk(i)) * tnk(i) + qnk(i) * (lv0 - clmcpv * (tnk(i) - & 290 273.15)) + gznk(i) 291 cpp(i) = cpd * (1. - qnk(i)) + qnk(i) * cpv 297 292 END DO 298 293 … … 301 296 DO k = minorig, icbmax - 1 302 297 DO i = 1, len 303 tp(i, k) = tnk(i) - (gz(i, k)-gznk(i))/cpp(i)304 tvp(i, k) = tp(i, k) *(1.+qnk(i)*epsi)298 tp(i, k) = tnk(i) - (gz(i, k) - gznk(i)) / cpp(i) 299 tvp(i, k) = tp(i, k) * (1. + qnk(i) * epsi) 305 300 END DO 306 301 END DO … … 311 306 tg = ticb(i) 312 307 qg = qs(i, icb(i)) 313 alv = lv0 - clmcpv *(ticb(i)-t0)308 alv = lv0 - clmcpv * (ticb(i) - t0) 314 309 315 310 ! First iteration. 316 311 317 s = cpd + alv *alv*qg/(rrv*ticb(i)*ticb(i))318 s = 1. /s319 ahg = cpd *tg + (cl-cpd)*qnk(i)*ticb(i) + alv*qg + gzicb(i)320 tg = tg + s *(ah0(i)-ahg)312 s = cpd + alv * alv * qg / (rrv * ticb(i) * ticb(i)) 313 s = 1. / s 314 ahg = cpd * tg + (cl - cpd) * qnk(i) * ticb(i) + alv * qg + gzicb(i) 315 tg = tg + s * (ah0(i) - ahg) 321 316 tg = max(tg, 35.0) 322 317 tc = tg - t0 323 318 denom = 243.5 + tc 324 319 IF (tc>=0.0) THEN 325 es = 6.112 *exp(17.67*tc/denom)320 es = 6.112 * exp(17.67 * tc / denom) 326 321 ELSE 327 es = exp(23.33086 -6111.72784/tg+0.15215*log(tg))322 es = exp(23.33086 - 6111.72784 / tg + 0.15215 * log(tg)) 328 323 END IF 329 qg = eps *es/(p(i,icb(i))-es*(1.-eps))324 qg = eps * es / (p(i, icb(i)) - es * (1. - eps)) 330 325 331 326 ! Second iteration. 332 327 333 s = cpd + alv *alv*qg/(rrv*ticb(i)*ticb(i))334 s = 1. /s335 ahg = cpd *tg + (cl-cpd)*qnk(i)*ticb(i) + alv*qg + gzicb(i)336 tg = tg + s *(ah0(i)-ahg)328 s = cpd + alv * alv * qg / (rrv * ticb(i) * ticb(i)) 329 s = 1. / s 330 ahg = cpd * tg + (cl - cpd) * qnk(i) * ticb(i) + alv * qg + gzicb(i) 331 tg = tg + s * (ah0(i) - ahg) 337 332 tg = max(tg, 35.0) 338 333 tc = tg - t0 339 334 denom = 243.5 + tc 340 335 IF (tc>=0.0) THEN 341 es = 6.112 *exp(17.67*tc/denom)336 es = 6.112 * exp(17.67 * tc / denom) 342 337 ELSE 343 es = exp(23.33086 -6111.72784/tg+0.15215*log(tg))338 es = exp(23.33086 - 6111.72784 / tg + 0.15215 * log(tg)) 344 339 END IF 345 qg = eps *es/(p(i,icb(i))-es*(1.-eps))346 347 alv = lv0 - clmcpv *(ticb(i)-273.15)348 tp(i, icb(i)) = (ah0(i) -(cl-cpd)*qnk(i)*ticb(i)-gz(i,icb(i))-alv*qg)/cpd340 qg = eps * es / (p(i, icb(i)) - es * (1. - eps)) 341 342 alv = lv0 - clmcpv * (ticb(i) - 273.15) 343 tp(i, icb(i)) = (ah0(i) - (cl - cpd) * qnk(i) * ticb(i) - gz(i, icb(i)) - alv * qg) / cpd 349 344 clw(i, icb(i)) = qnk(i) - qg 350 clw(i, icb(i)) = max(0.0, clw(i, icb(i)))351 rg = qg /(1.-qnk(i))352 tvp(i, icb(i)) = tp(i, icb(i)) *(1.+rg*epsi)345 clw(i, icb(i)) = max(0.0, clw(i, icb(i))) 346 rg = qg / (1. - qnk(i)) 347 tvp(i, icb(i)) = tp(i, icb(i)) * (1. + rg * epsi) 353 348 END DO 354 349 355 350 DO k = minorig, icbmax 356 351 DO i = 1, len 357 tvp(i, k) = tvp(i, k) - tp(i, k)*qnk(i) 358 END DO 359 END DO 360 352 tvp(i, k) = tvp(i, k) - tp(i, k) * qnk(i) 353 END DO 354 END DO 361 355 362 356 END SUBROUTINE cv_undilute1 … … 383 377 INTEGER i 384 378 385 386 379 DO i = 1, len 387 380 IF ((cbmf(i)==0.0) .AND. (iflag(i)==0) .AND. (tvp(i, & 388 icb(i))<=(tv(i,icb(i))-dtmax))) iflag(i) = 4 389 END DO 390 381 icb(i))<=(tv(i, icb(i)) - dtmax))) iflag(i) = 4 382 END DO 391 383 392 384 END SUBROUTINE cv_trigger 393 385 394 386 SUBROUTINE cv_compress(len, nloc, ncum, nd, iflag1, nk1, icb1, cbmf1, plcl1, & 395 tnk1, qnk1, gznk1, t1, q1, qs1, u1, v1, gz1, h1, lv1, cpn1, p1, ph1, tv1, &396 tp1, tvp1, clw1, iflag, nk, icb, cbmf, plcl, tnk, qnk, gznk, t, q, qs, u, &397 v, gz, h, lv, cpn, p, ph, tv, tp, tvp, clw, dph)387 tnk1, qnk1, gznk1, t1, q1, qs1, u1, v1, gz1, h1, lv1, cpn1, p1, ph1, tv1, & 388 tp1, tvp1, clw1, iflag, nk, icb, cbmf, plcl, tnk, qnk, gznk, t, q, qs, u, & 389 v, gz, h, lv, cpn, p, ph, tv, tp, tvp, clw, dph) 398 390 USE lmdz_print_control, ONLY: lunout 391 USE lmdz_abort_physic, ONLY: abort_physic 399 392 IMPLICIT NONE 400 393 … … 407 400 REAL t1(len, nd), q1(len, nd), qs1(len, nd), u1(len, nd), v1(len, nd) 408 401 REAL gz1(len, nd), h1(len, nd), lv1(len, nd), cpn1(len, nd) 409 REAL p1(len, nd), ph1(len, nd +1), tv1(len, nd), tp1(len, nd)402 REAL p1(len, nd), ph1(len, nd + 1), tv1(len, nd), tp1(len, nd) 410 403 REAL tvp1(len, nd), clw1(len, nd) 411 404 … … 415 408 REAL t(nloc, nd), q(nloc, nd), qs(nloc, nd), u(nloc, nd), v(nloc, nd) 416 409 REAL gz(nloc, nd), h(nloc, nd), lv(nloc, nd), cpn(nloc, nd) 417 REAL p(nloc, nd), ph(nloc, nd +1), tv(nloc, nd), tp(nloc, nd)410 REAL p(nloc, nd), ph(nloc, nd + 1), tv(nloc, nd), tp(nloc, nd) 418 411 REAL tvp(nloc, nd), clw(nloc, nd) 419 412 REAL dph(nloc, nd) … … 421 414 ! local variables: 422 415 INTEGER i, k, nn 423 CHARACTER (LEN=20) :: modname = 'cv_compress' 424 CHARACTER (LEN=80) :: abort_message 425 416 CHARACTER (LEN = 20) :: modname = 'cv_compress' 417 CHARACTER (LEN = 80) :: abort_message 426 418 427 419 DO k = 1, nl + 1 … … 472 464 DO k = 1, nl 473 465 DO i = 1, ncum 474 dph(i, k) = ph(i, k) - ph(i, k+1) 475 END DO 476 END DO 477 466 dph(i, k) = ph(i, k) - ph(i, k + 1) 467 END DO 468 END DO 478 469 479 470 END SUBROUTINE cv_compress 480 471 481 472 SUBROUTINE cv_undilute2(nloc, ncum, nd, icb, nk, tnk, qnk, gznk, t, q, qs, & 482 gz, p, dph, h, tv, lv, inb, inb1, tp, tvp, clw, hp, ep, sigp, frac)473 gz, p, dph, h, tv, lv, inb, inb1, tp, tvp, clw, hp, ep, sigp, frac) 483 474 IMPLICIT NONE 484 475 … … 537 528 ! *** Calculate certain parcel quantities, including static energy *** 538 529 539 540 DO i = 1, ncum 541 ah0(i) = (cpd*(1.-qnk(i))+cl*qnk(i))*tnk(i) + qnk(i)*(lv0-clmcpv*(tnk(i)- & 542 t0)) + gznk(i) 530 DO i = 1, ncum 531 ah0(i) = (cpd * (1. - qnk(i)) + cl * qnk(i)) * tnk(i) + qnk(i) * (lv0 - clmcpv * (tnk(i) - & 532 t0)) + gznk(i) 543 533 END DO 544 534 … … 546 536 ! *** Find lifted parcel quantities above cloud base *** 547 537 548 549 538 DO k = minorig + 1, nl 550 539 DO i = 1, ncum 551 IF (k>=(icb(i) +1)) THEN540 IF (k>=(icb(i) + 1)) THEN 552 541 tg = t(i, k) 553 542 qg = qs(i, k) 554 alv = lv0 - clmcpv *(t(i,k)-t0)543 alv = lv0 - clmcpv * (t(i, k) - t0) 555 544 556 545 ! First iteration. 557 546 558 s = cpd + alv *alv*qg/(rrv*t(i,k)*t(i,k))559 s = 1. /s560 ahg = cpd *tg + (cl-cpd)*qnk(i)*t(i, k) + alv*qg + gz(i, k)561 tg = tg + s *(ah0(i)-ahg)547 s = cpd + alv * alv * qg / (rrv * t(i, k) * t(i, k)) 548 s = 1. / s 549 ahg = cpd * tg + (cl - cpd) * qnk(i) * t(i, k) + alv * qg + gz(i, k) 550 tg = tg + s * (ah0(i) - ahg) 562 551 tg = max(tg, 35.0) 563 552 tc = tg - t0 564 553 denom = 243.5 + tc 565 554 IF (tc>=0.0) THEN 566 es = 6.112 *exp(17.67*tc/denom)555 es = 6.112 * exp(17.67 * tc / denom) 567 556 ELSE 568 es = exp(23.33086 -6111.72784/tg+0.15215*log(tg))557 es = exp(23.33086 - 6111.72784 / tg + 0.15215 * log(tg)) 569 558 END IF 570 qg = eps *es/(p(i,k)-es*(1.-eps))559 qg = eps * es / (p(i, k) - es * (1. - eps)) 571 560 572 561 ! Second iteration. 573 562 574 s = cpd + alv *alv*qg/(rrv*t(i,k)*t(i,k))575 s = 1. /s576 ahg = cpd *tg + (cl-cpd)*qnk(i)*t(i, k) + alv*qg + gz(i, k)577 tg = tg + s *(ah0(i)-ahg)563 s = cpd + alv * alv * qg / (rrv * t(i, k) * t(i, k)) 564 s = 1. / s 565 ahg = cpd * tg + (cl - cpd) * qnk(i) * t(i, k) + alv * qg + gz(i, k) 566 tg = tg + s * (ah0(i) - ahg) 578 567 tg = max(tg, 35.0) 579 568 tc = tg - t0 580 569 denom = 243.5 + tc 581 570 IF (tc>=0.0) THEN 582 es = 6.112 *exp(17.67*tc/denom)571 es = 6.112 * exp(17.67 * tc / denom) 583 572 ELSE 584 es = exp(23.33086 -6111.72784/tg+0.15215*log(tg))573 es = exp(23.33086 - 6111.72784 / tg + 0.15215 * log(tg)) 585 574 END IF 586 qg = eps *es/(p(i,k)-es*(1.-eps))587 588 alv = lv0 - clmcpv *(t(i,k)-t0)575 qg = eps * es / (p(i, k) - es * (1. - eps)) 576 577 alv = lv0 - clmcpv * (t(i, k) - t0) 589 578 ! PRINT*,'cpd dans convect2 ',cpd 590 579 ! PRINT*,'tp(i,k),ah0(i),cl,cpd,qnk(i),t(i,k),gz(i,k),alv,qg,cpd' 591 580 ! PRINT*,tp(i,k),ah0(i),cl,cpd,qnk(i),t(i,k),gz(i,k),alv,qg,cpd 592 tp(i, k) = (ah0(i) -(cl-cpd)*qnk(i)*t(i,k)-gz(i,k)-alv*qg)/cpd581 tp(i, k) = (ah0(i) - (cl - cpd) * qnk(i) * t(i, k) - gz(i, k) - alv * qg) / cpd 593 582 ! if (.NOT.cpd.gt.1000.) THEN 594 583 ! PRINT*,'CPD=',cpd … … 596 585 ! END IF 597 586 clw(i, k) = qnk(i) - qg 598 clw(i, k) = max(0.0, clw(i, k))599 rg = qg /(1.-qnk(i))600 tvp(i, k) = tp(i, k) *(1.+rg*epsi)587 clw(i, k) = max(0.0, clw(i, k)) 588 rg = qg / (1. - qnk(i)) 589 tvp(i, k) = tp(i, k) * (1. + rg * epsi) 601 590 END IF 602 591 END DO … … 611 600 DO k = minorig + 1, nl 612 601 DO i = 1, ncum 613 IF (k>=(nk(i) +1)) THEN602 IF (k>=(nk(i) + 1)) THEN 614 603 tca = tp(i, k) - t0 615 604 IF (tca>=0.0) THEN 616 605 elacrit = elcrit 617 606 ELSE 618 elacrit = elcrit *(1.0-tca/tlcrit)607 elacrit = elcrit * (1.0 - tca / tlcrit) 619 608 END IF 620 609 elacrit = max(elacrit, 0.0) 621 ep(i, k) = 1.0 - elacrit /max(clw(i,k), 1.0E-8)622 ep(i, k) = max(ep(i, k), 0.0)623 ep(i, k) = min(ep(i, k), 1.0)610 ep(i, k) = 1.0 - elacrit / max(clw(i, k), 1.0E-8) 611 ep(i, k) = max(ep(i, k), 0.0) 612 ep(i, k) = min(ep(i, k), 1.0) 624 613 sigp(i, k) = sigs 625 614 END IF … … 634 623 DO k = minorig + 1, nl 635 624 DO i = 1, ncum 636 IF (k>=(icb(i) +1)) THEN637 tvp(i, k) = tvp(i, k) *(1.0-qnk(i)+ep(i,k)*clw(i,k))625 IF (k>=(icb(i) + 1)) THEN 626 tvp(i, k) = tvp(i, k) * (1.0 - qnk(i) + ep(i, k) * clw(i, k)) 638 627 ! PRINT*,'i,k,tvp(i,k),qnk(i),ep(i,k),clw(i,k)' 639 628 ! PRINT*, i,k,tvp(i,k),qnk(i),ep(i,k),clw(i,k) … … 642 631 END DO 643 632 DO i = 1, ncum 644 tvp(i, nlp) = tvp(i, nl) - (gz(i, nlp)-gz(i,nl))/cpd633 tvp(i, nlp) = tvp(i, nl) - (gz(i, nlp) - gz(i, nl)) / cpd 645 634 END DO 646 635 … … 720 709 DO i = 1, ncum 721 710 IF (cape(i)<0.0) lcape(i) = .FALSE. 722 IF ((k>=(icb(i) +1)) .AND. lcape(i)) THEN723 by = (tvp(i, k)-tv(i,k))*dph(i, k)/p(i, k)724 byp(i) = (tvp(i, k+1)-tv(i,k+1))*dph(i, k+1)/p(i, k+1)711 IF ((k>=(icb(i) + 1)) .AND. lcape(i)) THEN 712 by = (tvp(i, k) - tv(i, k)) * dph(i, k) / p(i, k) 713 byp(i) = (tvp(i, k + 1) - tv(i, k + 1)) * dph(i, k + 1) / p(i, k + 1) 725 714 cape(i) = cape(i) + by 726 715 IF (by>=0.0) inb1(i) = k + 1 … … 736 725 defrac = capem(i) - cape(i) 737 726 defrac = max(defrac, 0.001) 738 frac(i) = -cape(i) /defrac727 frac(i) = -cape(i) / defrac 739 728 frac(i) = min(frac(i), 1.0) 740 729 frac(i) = max(frac(i), 0.0) … … 746 735 747 736 ! initialization: 748 DO i = 1, ncum *nlp737 DO i = 1, ncum * nlp 749 738 hp(i, 1) = h(i, 1) 750 739 END DO … … 753 742 DO i = 1, ncum 754 743 IF ((k>=icb(i)) .AND. (k<=inb(i))) THEN 755 hp(i, k) = h(i, nk(i)) + (lv(i,k)+(cpd-cpv)*t(i,k))*ep(i, k)*clw(i, k & 756 ) 757 END IF 758 END DO 759 END DO 760 744 hp(i, k) = h(i, nk(i)) + (lv(i, k) + (cpd - cpv) * t(i, k)) * ep(i, k) * clw(i, k & 745 ) 746 END IF 747 END DO 748 END DO 761 749 762 750 END SUBROUTINE cv_undilute2 763 751 764 752 SUBROUTINE cv_closure(nloc, ncum, nd, nk, icb, tv, tvp, p, ph, dph, plcl, & 765 cpn, iflag, cbmf)753 cpn, iflag, cbmf) 766 754 IMPLICIT NONE 767 755 … … 770 758 INTEGER nk(nloc), icb(nloc) 771 759 REAL tv(nloc, nd), tvp(nloc, nd), p(nloc, nd), dph(nloc, nd) 772 REAL ph(nloc, nd +1) ! caution nd instead ndp1 to be consistent...760 REAL ph(nloc, nd + 1) ! caution nd instead ndp1 to be consistent... 773 761 REAL plcl(nloc), cpn(nloc, nd) 774 762 … … 804 792 DO i = 1, ncum 805 793 dtpbl(i) = 0.0 806 tvpplcl(i) = tvp(i, icb(i) -1) - rrd*tvp(i, icb(i)-1)*(p(i,icb(i)-1)-plcl(&807 i))/(cpn(i,icb(i)-1)*p(i,icb(i)-1))808 tvaplcl(i) = tv(i, icb(i)) + (tvp(i, icb(i))-tvp(i,icb(i)+1))*(plcl(i)-p(i &809 ,icb(i)))/(p(i,icb(i))-p(i,icb(i)+1))794 tvpplcl(i) = tvp(i, icb(i) - 1) - rrd * tvp(i, icb(i) - 1) * (p(i, icb(i) - 1) - plcl(& 795 i)) / (cpn(i, icb(i) - 1) * p(i, icb(i) - 1)) 796 tvaplcl(i) = tv(i, icb(i)) + (tvp(i, icb(i)) - tvp(i, icb(i) + 1)) * (plcl(i) - p(i & 797 , icb(i))) / (p(i, icb(i)) - p(i, icb(i) + 1)) 810 798 END DO 811 799 … … 819 807 DO k = minorig, icbmax 820 808 DO i = 1, ncum 821 IF ((k>=nk(i)) .AND. (k<=(icb(i) -1))) THEN822 dtpbl(i) = dtpbl(i) + (tvp(i, k)-tv(i,k))*dph(i, k)823 END IF 824 END DO 825 END DO 826 DO i = 1, ncum 827 dtpbl(i) = dtpbl(i) /(ph(i,nk(i))-ph(i,icb(i)))809 IF ((k>=nk(i)) .AND. (k<=(icb(i) - 1))) THEN 810 dtpbl(i) = dtpbl(i) + (tvp(i, k) - tv(i, k)) * dph(i, k) 811 END IF 812 END DO 813 END DO 814 DO i = 1, ncum 815 dtpbl(i) = dtpbl(i) / (ph(i, nk(i)) - ph(i, icb(i))) 828 816 dtmin(i) = tvpplcl(i) - tvaplcl(i) + dtmax + dtpbl(i) 829 817 END DO … … 835 823 DO i = 1, ncum 836 824 work(i) = cbmf(i) 837 cbmf(i) = max(0.0, (1.0 -damp)*cbmf(i)+0.1*alpha*dtmin(i))825 cbmf(i) = max(0.0, (1.0 - damp) * cbmf(i) + 0.1 * alpha * dtmin(i)) 838 826 IF ((work(i)==0.0) .AND. (cbmf(i)==0.0)) THEN 839 827 iflag(i) = 3 … … 841 829 END DO 842 830 843 844 831 END SUBROUTINE cv_closure 845 832 846 833 SUBROUTINE cv_mixing(nloc, ncum, nd, icb, nk, inb, inb1, ph, t, q, qs, u, v, & 847 h, lv, qnk, hp, tv, tvp, ep, clw, cbmf, m, ment, qent, uent, vent, nent, &848 sij, elij)834 h, lv, qnk, hp, tv, tvp, ep, clw, cbmf, m, ment, qent, uent, vent, nent, & 835 sij, elij) 849 836 IMPLICIT NONE 850 837 … … 856 843 INTEGER icb(nloc), inb(nloc), inb1(nloc), nk(nloc) 857 844 REAL cbmf(nloc), qnk(nloc) 858 REAL ph(nloc, nd +1)845 REAL ph(nloc, nd + 1) 859 846 REAL t(nloc, nd), q(nloc, nd), qs(nloc, nd), lv(nloc, nd) 860 847 REAL u(nloc, nd), v(nloc, nd), h(nloc, nd), hp(nloc, nd) … … 880 867 ! ===================================================================== 881 868 882 DO i = 1, ncum *nlp869 DO i = 1, ncum * nlp 883 870 nent(i, 1) = 0 884 871 m(i, 1) = 0.0 … … 906 893 DO j = minorig + 1, nl 907 894 DO i = 1, ncum 908 IF ((j>=(icb(i) +1)) .AND. (j<=inb(i))) THEN895 IF ((j>=(icb(i) + 1)) .AND. (j<=inb(i))) THEN 909 896 k = min(j, inb1(i)) 910 dbo = abs(tv(i, k+1)-tvp(i,k+1)-tv(i,k-1)+tvp(i,k-1)) + &911 entp*0.04*(ph(i,k)-ph(i,k+1))897 dbo = abs(tv(i, k + 1) - tvp(i, k + 1) - tv(i, k - 1) + tvp(i, k - 1)) + & 898 entp * 0.04 * (ph(i, k) - ph(i, k + 1)) 912 899 work(i) = work(i) + dbo 913 m(i, j) = cbmf(i) *dbo900 m(i, j) = cbmf(i) * dbo 914 901 END IF 915 902 END DO … … 917 904 DO k = minorig + 1, nl 918 905 DO i = 1, ncum 919 IF ((k>=(icb(i) +1)) .AND. (k<=inb(i))) THEN920 m(i, k) = m(i, k) /work(i)906 IF ((k>=(icb(i) + 1)) .AND. (k<=inb(i))) THEN 907 m(i, k) = m(i, k) / work(i) 921 908 END IF 922 909 END DO … … 930 917 ! ===================================================================== 931 918 932 933 919 DO i = minorig + 1, nl 934 920 DO j = minorig + 1, nl 935 921 DO ij = 1, ncum 936 IF ((i>=(icb(ij) +1)) .AND. (j>=icb(ij)) .AND. (i<=inb(ij)) .AND. (j<= &937 inb(ij))) THEN938 qti = qnk(ij) - ep(ij, i) *clw(ij, i)939 bf2 = 1. + lv(ij, j) *lv(ij, j)*qs(ij, j)/(rrv*t(ij,j)*t(ij,j)*cpd)940 anum = h(ij, j) - hp(ij, i) + (cpv -cpd)*t(ij, j)*(qti-q(ij,j))941 denom = h(ij, i) - hp(ij, i) + (cpd -cpv)*(q(ij,i)-qti)*t(ij, j)922 IF ((i>=(icb(ij) + 1)) .AND. (j>=icb(ij)) .AND. (i<=inb(ij)) .AND. (j<= & 923 inb(ij))) THEN 924 qti = qnk(ij) - ep(ij, i) * clw(ij, i) 925 bf2 = 1. + lv(ij, j) * lv(ij, j) * qs(ij, j) / (rrv * t(ij, j) * t(ij, j) * cpd) 926 anum = h(ij, j) - hp(ij, i) + (cpv - cpd) * t(ij, j) * (qti - q(ij, j)) 927 denom = h(ij, i) - hp(ij, i) + (cpd - cpv) * (q(ij, i) - qti) * t(ij, j) 942 928 dei = denom 943 929 IF (abs(dei)<0.01) dei = 0.01 944 sij(ij, i, j) = anum /dei930 sij(ij, i, j) = anum / dei 945 931 sij(ij, i, i) = 1.0 946 altem = sij(ij, i, j) *q(ij, i) + (1.-sij(ij,i,j))*qti - qs(ij, j)947 altem = altem /bf2948 cwat = clw(ij, j) *(1.-ep(ij,j))932 altem = sij(ij, i, j) * q(ij, i) + (1. - sij(ij, i, j)) * qti - qs(ij, j) 933 altem = altem / bf2 934 cwat = clw(ij, j) * (1. - ep(ij, j)) 949 935 stemp = sij(ij, i, j) 950 936 IF ((stemp<0.0 .OR. stemp>1.0 .OR. altem>cwat) .AND. j>i) THEN 951 anum = anum - lv(ij, j) *(qti-qs(ij,j)-cwat*bf2)952 denom = denom + lv(ij, j) *(q(ij,i)-qti)937 anum = anum - lv(ij, j) * (qti - qs(ij, j) - cwat * bf2) 938 denom = denom + lv(ij, j) * (q(ij, i) - qti) 953 939 IF (abs(denom)<0.01) denom = 0.01 954 sij(ij, i, j) = anum /denom955 altem = sij(ij, i, j) *q(ij, i) + (1.-sij(ij,i,j))*qti - qs(ij, j)956 altem = altem - (bf2 -1.)*cwat940 sij(ij, i, j) = anum / denom 941 altem = sij(ij, i, j) * q(ij, i) + (1. - sij(ij, i, j)) * qti - qs(ij, j) 942 altem = altem - (bf2 - 1.) * cwat 957 943 END IF 958 IF (sij(ij, i,j)>0.0 .AND. sij(ij,i,j)<0.9) THEN959 qent(ij, i, j) = sij(ij, i, j) *q(ij, i) + (1.-sij(ij,i,j))*qti960 uent(ij, i, j) = sij(ij, i, j) *u(ij, i) + &961 (1.-sij(ij,i,j))*u(ij, nk(ij))962 vent(ij, i, j) = sij(ij, i, j) *v(ij, i) + &963 (1.-sij(ij,i,j))*v(ij, nk(ij))944 IF (sij(ij, i, j)>0.0 .AND. sij(ij, i, j)<0.9) THEN 945 qent(ij, i, j) = sij(ij, i, j) * q(ij, i) + (1. - sij(ij, i, j)) * qti 946 uent(ij, i, j) = sij(ij, i, j) * u(ij, i) + & 947 (1. - sij(ij, i, j)) * u(ij, nk(ij)) 948 vent(ij, i, j) = sij(ij, i, j) * v(ij, i) + & 949 (1. - sij(ij, i, j)) * v(ij, nk(ij)) 964 950 elij(ij, i, j) = altem 965 elij(ij, i, j) = max(0.0, elij(ij, i,j))966 ment(ij, i, j) = m(ij, i) /(1.-sij(ij,i,j))951 elij(ij, i, j) = max(0.0, elij(ij, i, j)) 952 ment(ij, i, j) = m(ij, i) / (1. - sij(ij, i, j)) 967 953 nent(ij, i) = nent(ij, i) + 1 968 954 END IF 969 sij(ij, i, j) = max(0.0, sij(ij, i,j))970 sij(ij, i, j) = min(1.0, sij(ij, i,j))955 sij(ij, i, j) = max(0.0, sij(ij, i, j)) 956 sij(ij, i, j) = min(1.0, sij(ij, i, j)) 971 957 END IF 972 958 END DO … … 979 965 980 966 DO ij = 1, ncum 981 IF ((i>=(icb(ij) +1)) .AND. (i<=inb(ij)) .AND. (nent(ij,i)==0)) THEN967 IF ((i>=(icb(ij) + 1)) .AND. (i<=inb(ij)) .AND. (nent(ij, i)==0)) THEN 982 968 ment(ij, i, i) = m(ij, i) 983 qent(ij, i, i) = q(ij, nk(ij)) - ep(ij, i) *clw(ij, i)969 qent(ij, i, i) = q(ij, nk(ij)) - ep(ij, i) * clw(ij, i) 984 970 uent(ij, i, i) = u(ij, nk(ij)) 985 971 vent(ij, i, i) = v(ij, nk(ij)) … … 999 985 ! ===================================================================== 1000 986 1001 CALL zilch(bsum, ncum *nlp)987 CALL zilch(bsum, ncum * nlp) 1002 988 DO ij = 1, ncum 1003 989 lwork(ij) = .FALSE. … … 1007 993 num1 = 0 1008 994 DO ij = 1, ncum 1009 IF ((i>=icb(ij) +1) .AND. (i<=inb(ij))) num1 = num1 + 1995 IF ((i>=icb(ij) + 1) .AND. (i<=inb(ij))) num1 = num1 + 1 1010 996 END DO 1011 997 IF (num1<=0) GO TO 789 1012 998 1013 999 DO ij = 1, ncum 1014 IF ((i>=icb(ij) +1) .AND. (i<=inb(ij))) THEN1015 lwork(ij) = (nent(ij, i)/=0)1016 qp1 = q(ij, nk(ij)) - ep(ij, i) *clw(ij, i)1017 anum = h(ij, i) - hp(ij, i) - lv(ij, i) *(qp1-qs(ij,i))1018 denom = h(ij, i) - hp(ij, i) + lv(ij, i) *(q(ij,i)-qp1)1000 IF ((i>=icb(ij) + 1) .AND. (i<=inb(ij))) THEN 1001 lwork(ij) = (nent(ij, i)/=0) 1002 qp1 = q(ij, nk(ij)) - ep(ij, i) * clw(ij, i) 1003 anum = h(ij, i) - hp(ij, i) - lv(ij, i) * (qp1 - qs(ij, i)) 1004 denom = h(ij, i) - hp(ij, i) + lv(ij, i) * (q(ij, i) - qp1) 1019 1005 IF (abs(denom)<0.01) denom = 0.01 1020 scrit(ij) = anum /denom1021 alt = qp1 - qs(ij, i) + scrit(ij) *(q(ij,i)-qp1)1006 scrit(ij) = anum / denom 1007 alt = qp1 - qs(ij, i) + scrit(ij) * (q(ij, i) - qp1) 1022 1008 IF (scrit(ij)<0.0 .OR. alt<0.0) scrit(ij) = 1.0 1023 1009 asij(ij) = 0.0 … … 1029 1015 num2 = 0 1030 1016 DO ij = 1, ncum 1031 IF ((i>=icb(ij) +1) .AND. (i<=inb(ij)) .AND. (j>=icb(&1032 ij)) .AND. (j<=inb(ij)) .AND. lwork(ij)) num2 = num2 + 11017 IF ((i>=icb(ij) + 1) .AND. (i<=inb(ij)) .AND. (j>=icb(& 1018 ij)) .AND. (j<=inb(ij)) .AND. lwork(ij)) num2 = num2 + 1 1033 1019 END DO 1034 1020 IF (num2<=0) GO TO 783 1035 1021 1036 1022 DO ij = 1, ncum 1037 IF ((i>=icb(ij) +1) .AND. (i<=inb(ij)) .AND. (j>=icb(&1038 ij)) .AND. (j<=inb(ij)) .AND. lwork(ij)) THEN1039 IF (sij(ij, i,j)>0.0 .AND. sij(ij,i,j)<0.9) THEN1023 IF ((i>=icb(ij) + 1) .AND. (i<=inb(ij)) .AND. (j>=icb(& 1024 ij)) .AND. (j<=inb(ij)) .AND. lwork(ij)) THEN 1025 IF (sij(ij, i, j)>0.0 .AND. sij(ij, i, j)<0.9) THEN 1040 1026 IF (j>i) THEN 1041 smid = min(sij(ij, i,j), scrit(ij))1027 smid = min(sij(ij, i, j), scrit(ij)) 1042 1028 sjmax = smid 1043 1029 sjmin = smid 1044 IF (smid<smin(ij) .AND. sij(ij, i,j+1)<smid) THEN1030 IF (smid<smin(ij) .AND. sij(ij, i, j + 1)<smid) THEN 1045 1031 smin(ij) = smid 1046 sjmax = min(sij(ij, i,j+1), sij(ij,i,j), scrit(ij))1047 sjmin = max(sij(ij, i,j-1), sij(ij,i,j))1032 sjmax = min(sij(ij, i, j + 1), sij(ij, i, j), scrit(ij)) 1033 sjmin = max(sij(ij, i, j - 1), sij(ij, i, j)) 1048 1034 sjmin = min(sjmin, scrit(ij)) 1049 1035 END IF 1050 1036 ELSE 1051 sjmax = max(sij(ij, i,j+1), scrit(ij))1052 smid = max(sij(ij, i,j), scrit(ij))1037 sjmax = max(sij(ij, i, j + 1), scrit(ij)) 1038 smid = max(sij(ij, i, j), scrit(ij)) 1053 1039 sjmin = 0.0 1054 IF (j>1) sjmin = sij(ij, i, j -1)1040 IF (j>1) sjmin = sij(ij, i, j - 1) 1055 1041 sjmin = max(sjmin, scrit(ij)) 1056 1042 END IF 1057 delp = abs(sjmax -smid)1058 delm = abs(sjmin -smid)1059 asij(ij) = asij(ij) + (delp +delm)*(ph(ij,j)-ph(ij,j+1))1060 ment(ij, i, j) = ment(ij, i, j) *(delp+delm)*(ph(ij,j)-ph(ij,j+1))1043 delp = abs(sjmax - smid) 1044 delm = abs(sjmin - smid) 1045 asij(ij) = asij(ij) + (delp + delm) * (ph(ij, j) - ph(ij, j + 1)) 1046 ment(ij, i, j) = ment(ij, i, j) * (delp + delm) * (ph(ij, j) - ph(ij, j + 1)) 1061 1047 END IF 1062 1048 END IF 1063 1049 END DO 1064 783 END DO1050 783 END DO 1065 1051 DO ij = 1, ncum 1066 IF ((i>=icb(ij) +1) .AND. (i<=inb(ij)) .AND. lwork(ij)) THEN1052 IF ((i>=icb(ij) + 1) .AND. (i<=inb(ij)) .AND. lwork(ij)) THEN 1067 1053 asij(ij) = max(1.0E-21, asij(ij)) 1068 asij(ij) = 1.0 /asij(ij)1054 asij(ij) = 1.0 / asij(ij) 1069 1055 bsum(ij, i) = 0.0 1070 1056 END IF … … 1072 1058 DO j = minorig, nl + 1 1073 1059 DO ij = 1, ncum 1074 IF ((i>=icb(ij) +1) .AND. (i<=inb(ij)) .AND. (j>=icb(&1075 ij)) .AND. (j<=inb(ij)) .AND. lwork(ij)) THEN1076 ment(ij, i, j) = ment(ij, i, j) *asij(ij)1060 IF ((i>=icb(ij) + 1) .AND. (i<=inb(ij)) .AND. (j>=icb(& 1061 ij)) .AND. (j<=inb(ij)) .AND. lwork(ij)) THEN 1062 ment(ij, i, j) = ment(ij, i, j) * asij(ij) 1077 1063 bsum(ij, i) = bsum(ij, i) + ment(ij, i, j) 1078 1064 END IF … … 1080 1066 END DO 1081 1067 DO ij = 1, ncum 1082 IF ((i>=icb(ij) +1) .AND. (i<=inb(ij)) .AND. (bsum(ij, &1083 i)<1.0E-18) .AND. lwork(ij)) THEN1068 IF ((i>=icb(ij) + 1) .AND. (i<=inb(ij)) .AND. (bsum(ij, & 1069 i)<1.0E-18) .AND. lwork(ij)) THEN 1084 1070 nent(ij, i) = 0 1085 1071 ment(ij, i, i) = m(ij, i) 1086 qent(ij, i, i) = q(ij, nk(ij)) - ep(ij, i) *clw(ij, i)1072 qent(ij, i, i) = q(ij, nk(ij)) - ep(ij, i) * clw(ij, i) 1087 1073 uent(ij, i, i) = u(ij, nk(ij)) 1088 1074 vent(ij, i, i) = v(ij, nk(ij)) … … 1091 1077 END IF 1092 1078 END DO 1093 789 END DO 1094 1079 789 END DO 1095 1080 1096 1081 END SUBROUTINE cv_mixing 1097 1082 1098 1083 SUBROUTINE cv_unsat(nloc, ncum, nd, inb, t, q, qs, gz, u, v, p, ph, h, lv, & 1099 ep, sigp, clw, m, ment, elij, iflag, mp, qp, up, vp, wt, water, evap)1084 ep, sigp, clw, m, ment, elij, iflag, mp, qp, up, vp, wt, water, evap) 1100 1085 IMPLICIT NONE 1101 1102 1086 1103 1087 include "cvthermo.h" … … 1109 1093 REAL t(nloc, nd), q(nloc, nd), qs(nloc, nd) 1110 1094 REAL gz(nloc, nd), u(nloc, nd), v(nloc, nd) 1111 REAL p(nloc, nd), ph(nloc, nd +1), h(nloc, nd)1095 REAL p(nloc, nd), ph(nloc, nd + 1), h(nloc, nd) 1112 1096 REAL lv(nloc, nd), ep(nloc, nd), sigp(nloc, nd), clw(nloc, nd) 1113 1097 REAL m(nloc, nd), ment(nloc, nd, nd), elij(nloc, nd, nd) … … 1149 1133 DO k = 2, nl + 1 1150 1134 DO i = 1, ncum 1151 qp(i, k) = q(i, k -1)1152 up(i, k) = u(i, k -1)1153 vp(i, k) = v(i, k -1)1135 qp(i, k) = q(i, k - 1) 1136 up(i, k) = u(i, k - 1) 1137 vp(i, k) = v(i, k - 1) 1154 1138 END DO 1155 1139 END DO … … 1163 1147 ! *** and condensed water flux *** 1164 1148 1165 1166 1149 DO i = 1, ncum 1167 1150 jtt(i) = 2 1168 IF (ep(i, inb(i))<=0.0001) iflag(i) = 21151 IF (ep(i, inb(i))<=0.0001) iflag(i) = 2 1169 1152 IF (iflag(i)==0) THEN 1170 1153 lwork(i) = .TRUE. … … 1176 1159 ! *** Begin downdraft loop *** 1177 1160 1178 1179 1161 CALL zilch(wdtrain, ncum) 1180 1162 DO i = nl + 1, 1, -1 … … 1191 1173 DO ij = 1, ncum 1192 1174 IF ((i<=inb(ij)) .AND. (lwork(ij))) THEN 1193 wdtrain(ij) = g *ep(ij, i)*m(ij, i)*clw(ij, i)1175 wdtrain(ij) = g * ep(ij, i) * m(ij, i) * clw(ij, i) 1194 1176 END IF 1195 1177 END DO … … 1199 1181 DO ij = 1, ncum 1200 1182 IF ((i<=inb(ij)) .AND. (lwork(ij))) THEN 1201 awat = elij(ij, j, i) - (1. -ep(ij,i))*clw(ij, i)1183 awat = elij(ij, j, i) - (1. - ep(ij, i)) * clw(ij, i) 1202 1184 awat = max(0.0, awat) 1203 wdtrain(ij) = wdtrain(ij) + g *awat*ment(ij, j, i)1185 wdtrain(ij) = wdtrain(ij) + g * awat * ment(ij, j, i) 1204 1186 END IF 1205 1187 END DO … … 1222 1204 ! rain *** 1223 1205 1224 IF (t(ij, i)>273.0) THEN1206 IF (t(ij, i)>273.0) THEN 1225 1207 coeff = coeffr 1226 1208 wt(ij, i) = omtrain 1227 1209 END IF 1228 qsm = 0.5 *(q(ij,i)+qp(ij,i+1))1229 afac = coeff *ph(ij, i)*(qs(ij,i)-qsm)/(1.0E4+2.0E3*ph(ij,i)*qs(ij,i))1210 qsm = 0.5 * (q(ij, i) + qp(ij, i + 1)) 1211 afac = coeff * ph(ij, i) * (qs(ij, i) - qsm) / (1.0E4 + 2.0E3 * ph(ij, i) * qs(ij, i)) 1230 1212 afac = max(afac, 0.0) 1231 1213 sigt = sigp(ij, i) 1232 1214 sigt = max(0.0, sigt) 1233 1215 sigt = min(1.0, sigt) 1234 b6 = 100. *(ph(ij,i)-ph(ij,i+1))*sigt*afac/wt(ij, i)1235 c6 = (water(ij, i+1)*wt(ij,i+1)+wdtrain(ij)/sigd)/wt(ij, i)1236 revap = 0.5 *(-b6+sqrt(b6*b6+4.*c6))1237 evap(ij, i) = sigt *afac*revap1238 water(ij, i) = revap *revap1216 b6 = 100. * (ph(ij, i) - ph(ij, i + 1)) * sigt * afac / wt(ij, i) 1217 c6 = (water(ij, i + 1) * wt(ij, i + 1) + wdtrain(ij) / sigd) / wt(ij, i) 1218 revap = 0.5 * (-b6 + sqrt(b6 * b6 + 4. * c6)) 1219 evap(ij, i) = sigt * afac * revap 1220 water(ij, i) = revap * revap 1239 1221 1240 1222 ! *** Calculate precipitating downdraft mass flux under *** … … 1242 1224 1243 1225 IF (i>1) THEN 1244 dhdp = (h(ij, i)-h(ij,i-1))/(p(ij,i-1)-p(ij,i))1226 dhdp = (h(ij, i) - h(ij, i - 1)) / (p(ij, i - 1) - p(ij, i)) 1245 1227 dhdp = max(dhdp, 10.0) 1246 mp(ij, i) = 100. *ginv*lv(ij, i)*sigd*evap(ij, i)/dhdp1247 mp(ij, i) = max(mp(ij, i), 0.0)1228 mp(ij, i) = 100. * ginv * lv(ij, i) * sigd * evap(ij, i) / dhdp 1229 mp(ij, i) = max(mp(ij, i), 0.0) 1248 1230 1249 1231 ! *** Add small amount of inertia to downdraft *** 1250 1232 1251 fac = 20.0 /(ph(ij,i-1)-ph(ij,i))1252 mp(ij, i) = (fac *mp(ij,i+1)+mp(ij,i))/(1.+fac)1233 fac = 20.0 / (ph(ij, i - 1) - ph(ij, i)) 1234 mp(ij, i) = (fac * mp(ij, i + 1) + mp(ij, i)) / (1. + fac) 1253 1235 1254 1236 ! *** Force mp to decrease linearly to zero … … 1257 1239 ! *** 1258 1240 1259 IF (p(ij, i)>(0.949*p(ij,1))) THEN1241 IF (p(ij, i)>(0.949 * p(ij, 1))) THEN 1260 1242 jtt(ij) = max(jtt(ij), i) 1261 mp(ij, i) = mp(ij, jtt(ij)) *(p(ij,1)-p(ij,i))/ &1262 (p(ij,1)-p(ij,jtt(ij)))1243 mp(ij, i) = mp(ij, jtt(ij)) * (p(ij, 1) - p(ij, i)) / & 1244 (p(ij, 1) - p(ij, jtt(ij))) 1263 1245 END IF 1264 1246 END IF … … 1270 1252 qstm = qs(ij, 1) 1271 1253 ELSE 1272 qstm = qs(ij, i -1)1254 qstm = qs(ij, i - 1) 1273 1255 END IF 1274 IF (mp(ij, i)>mp(ij,i+1)) THEN1275 rat = mp(ij, i +1)/mp(ij, i)1276 qp(ij, i) = qp(ij, i +1)*rat + q(ij, i)*(1.0-rat) + &1277 100.*ginv*sigd*(ph(ij,i)-ph(ij,i+1))*(evap(ij,i)/mp(ij,i))1278 up(ij, i) = up(ij, i +1)*rat + u(ij, i)*(1.-rat)1279 vp(ij, i) = vp(ij, i +1)*rat + v(ij, i)*(1.-rat)1256 IF (mp(ij, i)>mp(ij, i + 1)) THEN 1257 rat = mp(ij, i + 1) / mp(ij, i) 1258 qp(ij, i) = qp(ij, i + 1) * rat + q(ij, i) * (1.0 - rat) + & 1259 100. * ginv * sigd * (ph(ij, i) - ph(ij, i + 1)) * (evap(ij, i) / mp(ij, i)) 1260 up(ij, i) = up(ij, i + 1) * rat + u(ij, i) * (1. - rat) 1261 vp(ij, i) = vp(ij, i + 1) * rat + v(ij, i) * (1. - rat) 1280 1262 ELSE 1281 IF (mp(ij, i+1)>0.0) THEN1282 qp(ij, i) = (gz(ij, i+1)-gz(ij,i)+qp(ij,i+1)*(lv(ij,i+1)+t(ij, &1283 i+1)*(cl-cpd))+cpd*(t(ij,i+1)-t(ij, &1284 i)))/(lv(ij,i)+t(ij,i)*(cl-cpd))1285 up(ij, i) = up(ij, i +1)1286 vp(ij, i) = vp(ij, i +1)1263 IF (mp(ij, i + 1)>0.0) THEN 1264 qp(ij, i) = (gz(ij, i + 1) - gz(ij, i) + qp(ij, i + 1) * (lv(ij, i + 1) + t(ij, & 1265 i + 1) * (cl - cpd)) + cpd * (t(ij, i + 1) - t(ij, & 1266 i))) / (lv(ij, i) + t(ij, i) * (cl - cpd)) 1267 up(ij, i) = up(ij, i + 1) 1268 vp(ij, i) = vp(ij, i + 1) 1287 1269 END IF 1288 1270 END IF 1289 qp(ij, i) = min(qp(ij, i), qstm)1290 qp(ij, i) = max(qp(ij, i), 0.0)1271 qp(ij, i) = min(qp(ij, i), qstm) 1272 qp(ij, i) = max(qp(ij, i), 0.0) 1291 1273 END IF 1292 1274 END IF 1293 1275 END DO 1294 899 END DO 1295 1276 899 END DO 1296 1277 1297 1278 END SUBROUTINE cv_unsat 1298 1279 1299 1280 SUBROUTINE cv_yield(nloc, ncum, nd, nk, icb, inb, delt, t, q, u, v, gz, p, & 1300 ph, h, hp, lv, cpn, ep, clw, frac, m, mp, qp, up, vp, wt, water, evap, &1301 ment, qent, uent, vent, nent, elij, tv, tvp, iflag, wd, qprime, tprime, &1302 precip, cbmf, ft, fq, fu, fv, ma, qcondc)1281 ph, h, hp, lv, cpn, ep, clw, frac, m, mp, qp, up, vp, wt, water, evap, & 1282 ment, qent, uent, vent, nent, elij, tv, tvp, iflag, wd, qprime, tprime, & 1283 precip, cbmf, ft, fq, fu, fv, ma, qcondc) 1303 1284 IMPLICIT NONE 1304 1285 … … 1313 1294 REAL t(nloc, nd), q(nloc, nd), u(nloc, nd), v(nloc, nd) 1314 1295 REAL gz(nloc, nd) 1315 REAL p(nloc, nd), ph(nloc, nd +1), h(nloc, nd)1296 REAL p(nloc, nd), ph(nloc, nd + 1), h(nloc, nd) 1316 1297 REAL hp(nloc, nd), lv(nloc, nd) 1317 1298 REAL cpn(nloc, nd), ep(nloc, nd), clw(nloc, nd), frac(nloc) … … 1343 1324 ! -- initializations: 1344 1325 1345 delti = 1.0 /delt1326 delti = 1.0 / delt 1346 1327 1347 1328 DO i = 1, ncum … … 1355 1336 fv(i, k) = 0.0 1356 1337 fq(i, k) = 0.0 1357 lvcp(i, k) = lv(i, k) /cpn(i, k)1338 lvcp(i, k) = lv(i, k) / cpn(i, k) 1358 1339 qcondc(i, k) = 0.0 ! cld 1359 1340 qcond(i, k) = 0.0 ! cld … … 1370 1351 ! c & /(rowl*g) 1371 1352 ! c precip(i)=precip(i)*delt/86400. 1372 precip(i) = wt(i, 1) *sigd*water(i, 1)*86400/g1353 precip(i) = wt(i, 1) * sigd * water(i, 1) * 86400 / g 1373 1354 END IF 1374 1355 END DO … … 1379 1360 1380 1361 DO i = 1, ncum 1381 wd(i) = betad *abs(mp(i,icb(i)))*0.01*rrd*t(i, icb(i))/(sigd*p(i,icb(i)))1382 qprime(i) = 0.5 *(qp(i,1)-q(i,1))1383 tprime(i) = lv0 *qprime(i)/cpd1362 wd(i) = betad * abs(mp(i, icb(i))) * 0.01 * rrd * t(i, icb(i)) / (sigd * p(i, icb(i))) 1363 qprime(i) = 0.5 * (qp(i, 1) - q(i, 1)) 1364 tprime(i) = lv0 * qprime(i) / cpd 1384 1365 END DO 1385 1366 … … 1388 1369 1389 1370 DO i = 1, ncum 1390 work(i) = 0.01 /(ph(i,1)-ph(i,2))1371 work(i) = 0.01 / (ph(i, 1) - ph(i, 2)) 1391 1372 am(i) = 0.0 1392 1373 END DO … … 1399 1380 END DO 1400 1381 DO i = 1, ncum 1401 IF ((g *work(i)*am(i))>=delti) iflag(i) = 11402 ft(i, 1) = ft(i, 1) + g *work(i)*am(i)*(t(i,2)-t(i,1)+(gz(i,2)-gz(i, &1403 1))/cpn(i,1))1404 ft(i, 1) = ft(i, 1) - lvcp(i, 1) *sigd*evap(i, 1)1405 ft(i, 1) = ft(i, 1) + sigd *wt(i, 2)*(cl-cpd)*water(i, 2)*(t(i,2)-t(i,1))* &1406 work(i)/cpn(i, 1)1407 fq(i, 1) = fq(i, 1) + g *mp(i, 2)*(qp(i,2)-q(i,1))*work(i) + &1408 sigd*evap(i, 1)1409 fq(i, 1) = fq(i, 1) + g *am(i)*(q(i,2)-q(i,1))*work(i)1410 fu(i, 1) = fu(i, 1) + g *work(i)*(mp(i,2)*(up(i,2)-u(i,1))+am(i)*(u(i, &1411 2)-u(i,1)))1412 fv(i, 1) = fv(i, 1) + g *work(i)*(mp(i,2)*(vp(i,2)-v(i,1))+am(i)*(v(i, &1413 2)-v(i,1)))1382 IF ((g * work(i) * am(i))>=delti) iflag(i) = 1 1383 ft(i, 1) = ft(i, 1) + g * work(i) * am(i) * (t(i, 2) - t(i, 1) + (gz(i, 2) - gz(i, & 1384 1)) / cpn(i, 1)) 1385 ft(i, 1) = ft(i, 1) - lvcp(i, 1) * sigd * evap(i, 1) 1386 ft(i, 1) = ft(i, 1) + sigd * wt(i, 2) * (cl - cpd) * water(i, 2) * (t(i, 2) - t(i, 1)) * & 1387 work(i) / cpn(i, 1) 1388 fq(i, 1) = fq(i, 1) + g * mp(i, 2) * (qp(i, 2) - q(i, 1)) * work(i) + & 1389 sigd * evap(i, 1) 1390 fq(i, 1) = fq(i, 1) + g * am(i) * (q(i, 2) - q(i, 1)) * work(i) 1391 fu(i, 1) = fu(i, 1) + g * work(i) * (mp(i, 2) * (up(i, 2) - u(i, 1)) + am(i) * (u(i, & 1392 2) - u(i, 1))) 1393 fv(i, 1) = fv(i, 1) + g * work(i) * (mp(i, 2) * (vp(i, 2) - v(i, 1)) + am(i) * (v(i, & 1394 2) - v(i, 1))) 1414 1395 END DO 1415 1396 DO j = 2, nl 1416 1397 DO i = 1, ncum 1417 1398 IF (j<=inb(i)) THEN 1418 fq(i, 1) = fq(i, 1) + g *work(i)*ment(i, j, 1)*(qent(i,j,1)-q(i,1))1419 fu(i, 1) = fu(i, 1) + g *work(i)*ment(i, j, 1)*(uent(i,j,1)-u(i,1))1420 fv(i, 1) = fv(i, 1) + g *work(i)*ment(i, j, 1)*(vent(i,j,1)-v(i,1))1399 fq(i, 1) = fq(i, 1) + g * work(i) * ment(i, j, 1) * (qent(i, j, 1) - q(i, 1)) 1400 fu(i, 1) = fu(i, 1) + g * work(i) * ment(i, j, 1) * (uent(i, j, 1) - u(i, 1)) 1401 fv(i, 1) = fv(i, 1) + g * work(i) * ment(i, j, 1) * (vent(i, j, 1) - v(i, 1)) 1421 1402 END IF 1422 1403 END DO … … 1442 1423 DO k = i + 1, nl + 1 1443 1424 DO ij = 1, ncum 1444 IF ((i>=nk(ij)) .AND. (i<=inb(ij)) .AND. (k<=(inb(ij) +1))) THEN1425 IF ((i>=nk(ij)) .AND. (i<=inb(ij)) .AND. (k<=(inb(ij) + 1))) THEN 1445 1426 amp1(ij) = amp1(ij) + m(ij, k) 1446 1427 END IF … … 1451 1432 DO j = i + 1, nl + 1 1452 1433 DO ij = 1, ncum 1453 IF ((j<=(inb(ij) +1)) .AND. (i<=inb(ij))) THEN1434 IF ((j<=(inb(ij) + 1)) .AND. (i<=inb(ij))) THEN 1454 1435 amp1(ij) = amp1(ij) + ment(ij, k, j) 1455 1436 END IF … … 1469 1450 DO ij = 1, ncum 1470 1451 IF (i<=inb(ij)) THEN 1471 dpinv = 0.01 /(ph(ij,i)-ph(ij,i+1))1472 cpinv = 1.0 /cpn(ij, i)1473 1474 ft(ij, i) = ft(ij, i) + g *dpinv*(amp1(ij)*(t(ij,i+1)-t(ij, &1475 i)+(gz(ij,i+1)-gz(ij,i))*cpinv)-ad(ij)*(t(ij,i)-t(ij, &1476 i-1)+(gz(ij,i)-gz(ij,i-1))*cpinv)) - sigd*lvcp(ij, i)*evap(ij, i)1477 ft(ij, i) = ft(ij, i) + g *dpinv*ment(ij, i, i)*(hp(ij,i)-h(ij,i)+t(ij &1478 ,i)*(cpv-cpd)*(q(ij,i)-qent(ij,i,i)))*cpinv1479 ft(ij, i) = ft(ij, i) + sigd *wt(ij, i+1)*(cl-cpd)*water(ij, i+1)*(t(&1480 ij,i+1)-t(ij,i))*dpinv*cpinv1481 fq(ij, i) = fq(ij, i) + g *dpinv*(amp1(ij)*(q(ij,i+1)-q(ij, &1482 i))-ad(ij)*(q(ij,i)-q(ij,i-1)))1483 fu(ij, i) = fu(ij, i) + g *dpinv*(amp1(ij)*(u(ij,i+1)-u(ij, &1484 i))-ad(ij)*(u(ij,i)-u(ij,i-1)))1485 fv(ij, i) = fv(ij, i) + g *dpinv*(amp1(ij)*(v(ij,i+1)-v(ij, &1486 i))-ad(ij)*(v(ij,i)-v(ij,i-1)))1452 dpinv = 0.01 / (ph(ij, i) - ph(ij, i + 1)) 1453 cpinv = 1.0 / cpn(ij, i) 1454 1455 ft(ij, i) = ft(ij, i) + g * dpinv * (amp1(ij) * (t(ij, i + 1) - t(ij, & 1456 i) + (gz(ij, i + 1) - gz(ij, i)) * cpinv) - ad(ij) * (t(ij, i) - t(ij, & 1457 i - 1) + (gz(ij, i) - gz(ij, i - 1)) * cpinv)) - sigd * lvcp(ij, i) * evap(ij, i) 1458 ft(ij, i) = ft(ij, i) + g * dpinv * ment(ij, i, i) * (hp(ij, i) - h(ij, i) + t(ij & 1459 , i) * (cpv - cpd) * (q(ij, i) - qent(ij, i, i))) * cpinv 1460 ft(ij, i) = ft(ij, i) + sigd * wt(ij, i + 1) * (cl - cpd) * water(ij, i + 1) * (t(& 1461 ij, i + 1) - t(ij, i)) * dpinv * cpinv 1462 fq(ij, i) = fq(ij, i) + g * dpinv * (amp1(ij) * (q(ij, i + 1) - q(ij, & 1463 i)) - ad(ij) * (q(ij, i) - q(ij, i - 1))) 1464 fu(ij, i) = fu(ij, i) + g * dpinv * (amp1(ij) * (u(ij, i + 1) - u(ij, & 1465 i)) - ad(ij) * (u(ij, i) - u(ij, i - 1))) 1466 fv(ij, i) = fv(ij, i) + g * dpinv * (amp1(ij) * (v(ij, i + 1) - v(ij, & 1467 i)) - ad(ij) * (v(ij, i) - v(ij, i - 1))) 1487 1468 END IF 1488 1469 END DO … … 1490 1471 DO ij = 1, ncum 1491 1472 IF (i<=inb(ij)) THEN 1492 awat = elij(ij, k, i) - (1. -ep(ij,i))*clw(ij, i)1473 awat = elij(ij, k, i) - (1. - ep(ij, i)) * clw(ij, i) 1493 1474 awat = max(awat, 0.0) 1494 fq(ij, i) = fq(ij, i) + g *dpinv*ment(ij, k, i)*(qent(ij,k,i)-awat-q &1495 (ij,i))1496 fu(ij, i) = fu(ij, i) + g *dpinv*ment(ij, k, i)*(uent(ij,k,i)-u(ij,i &1497 ))1498 fv(ij, i) = fv(ij, i) + g *dpinv*ment(ij, k, i)*(vent(ij,k,i)-v(ij,i &1499 ))1475 fq(ij, i) = fq(ij, i) + g * dpinv * ment(ij, k, i) * (qent(ij, k, i) - awat - q & 1476 (ij, i)) 1477 fu(ij, i) = fu(ij, i) + g * dpinv * ment(ij, k, i) * (uent(ij, k, i) - u(ij, i & 1478 )) 1479 fv(ij, i) = fv(ij, i) + g * dpinv * ment(ij, k, i) * (vent(ij, k, i) - v(ij, i & 1480 )) 1500 1481 ! (saturated updrafts resulting from mixing) ! cld 1501 qcond(ij, i) = qcond(ij, i) + (elij(ij, k,i)-awat) ! cld1482 qcond(ij, i) = qcond(ij, i) + (elij(ij, k, i) - awat) ! cld 1502 1483 nqcond(ij, i) = nqcond(ij, i) + 1. ! cld 1503 1484 END IF … … 1507 1488 DO ij = 1, ncum 1508 1489 IF ((i<=inb(ij)) .AND. (k<=inb(ij))) THEN 1509 fq(ij, i) = fq(ij, i) + g *dpinv*ment(ij, k, i)*(qent(ij,k,i)-q(ij,i &1510 ))1511 fu(ij, i) = fu(ij, i) + g *dpinv*ment(ij, k, i)*(uent(ij,k,i)-u(ij,i &1512 ))1513 fv(ij, i) = fv(ij, i) + g *dpinv*ment(ij, k, i)*(vent(ij,k,i)-v(ij,i &1514 ))1490 fq(ij, i) = fq(ij, i) + g * dpinv * ment(ij, k, i) * (qent(ij, k, i) - q(ij, i & 1491 )) 1492 fu(ij, i) = fu(ij, i) + g * dpinv * ment(ij, k, i) * (uent(ij, k, i) - u(ij, i & 1493 )) 1494 fv(ij, i) = fv(ij, i) + g * dpinv * ment(ij, k, i) * (vent(ij, k, i) - v(ij, i & 1495 )) 1515 1496 END IF 1516 1497 END DO … … 1518 1499 DO ij = 1, ncum 1519 1500 IF (i<=inb(ij)) THEN 1520 fq(ij, i) = fq(ij, i) + sigd *evap(ij, i) + g*(mp(ij,i+1)*(qp(ij, &1521 i+1)-q(ij,i))-mp(ij,i)*(qp(ij,i)-q(ij,i-1)))*dpinv1522 fu(ij, i) = fu(ij, i) + g *(mp(ij,i+1)*(up(ij,i+1)-u(ij, &1523 i))-mp(ij,i)*(up(ij,i)-u(ij,i-1)))*dpinv1524 fv(ij, i) = fv(ij, i) + g *(mp(ij,i+1)*(vp(ij,i+1)-v(ij, &1525 i))-mp(ij,i)*(vp(ij,i)-v(ij,i-1)))*dpinv1501 fq(ij, i) = fq(ij, i) + sigd * evap(ij, i) + g * (mp(ij, i + 1) * (qp(ij, & 1502 i + 1) - q(ij, i)) - mp(ij, i) * (qp(ij, i) - q(ij, i - 1))) * dpinv 1503 fu(ij, i) = fu(ij, i) + g * (mp(ij, i + 1) * (up(ij, i + 1) - u(ij, & 1504 i)) - mp(ij, i) * (up(ij, i) - u(ij, i - 1))) * dpinv 1505 fv(ij, i) = fv(ij, i) + g * (mp(ij, i + 1) * (vp(ij, i + 1) - v(ij, & 1506 i)) - mp(ij, i) * (vp(ij, i) - v(ij, i - 1))) * dpinv 1526 1507 ! (saturated downdrafts resulting from mixing) ! cld 1527 1508 DO k = i + 1, inb(ij) ! cld … … 1530 1511 END DO ! cld 1531 1512 ! (particular case: no detraining level is found) ! cld 1532 IF (nent(ij, i)==0) THEN ! cld1533 qcond(ij, i) = qcond(ij, i) + (1. -ep(ij,i))*clw(ij, i) ! cld1513 IF (nent(ij, i)==0) THEN ! cld 1514 qcond(ij, i) = qcond(ij, i) + (1. - ep(ij, i)) * clw(ij, i) ! cld 1534 1515 nqcond(ij, i) = nqcond(ij, i) + 1. ! cld 1535 1516 END IF ! cld 1536 IF (nqcond(ij, i)/=0.) THEN ! cld1537 qcond(ij, i) = qcond(ij, i) /nqcond(ij, i) ! cld1517 IF (nqcond(ij, i)/=0.) THEN ! cld 1518 qcond(ij, i) = qcond(ij, i) / nqcond(ij, i) ! cld 1538 1519 END IF ! cld 1539 1520 END IF 1540 1521 END DO 1541 1500 END DO1522 1500 END DO 1542 1523 1543 1524 ! *** Adjust tendencies at top of convection layer to reflect *** … … 1546 1527 DO ij = 1, ncum 1547 1528 fqold = fq(ij, inb(ij)) 1548 fq(ij, inb(ij)) = fq(ij, inb(ij)) *(1.-frac(ij))1549 fq(ij, inb(ij) -1) = fq(ij, inb(ij)-1) + frac(ij)*fqold*((ph(ij, &1550 inb(ij))-ph(ij,inb(ij)+1))/(ph(ij,inb(ij)-1)-ph(ij, &1551 inb(ij))))*lv(ij, inb(ij))/lv(ij, inb(ij)-1)1529 fq(ij, inb(ij)) = fq(ij, inb(ij)) * (1. - frac(ij)) 1530 fq(ij, inb(ij) - 1) = fq(ij, inb(ij) - 1) + frac(ij) * fqold * ((ph(ij, & 1531 inb(ij)) - ph(ij, inb(ij) + 1)) / (ph(ij, inb(ij) - 1) - ph(ij, & 1532 inb(ij)))) * lv(ij, inb(ij)) / lv(ij, inb(ij) - 1) 1552 1533 ftold = ft(ij, inb(ij)) 1553 ft(ij, inb(ij)) = ft(ij, inb(ij)) *(1.-frac(ij))1554 ft(ij, inb(ij) -1) = ft(ij, inb(ij)-1) + frac(ij)*ftold*((ph(ij, &1555 inb(ij))-ph(ij,inb(ij)+1))/(ph(ij,inb(ij)-1)-ph(ij, &1556 inb(ij))))*cpn(ij, inb(ij))/cpn(ij, inb(ij)-1)1534 ft(ij, inb(ij)) = ft(ij, inb(ij)) * (1. - frac(ij)) 1535 ft(ij, inb(ij) - 1) = ft(ij, inb(ij) - 1) + frac(ij) * ftold * ((ph(ij, & 1536 inb(ij)) - ph(ij, inb(ij) + 1)) / (ph(ij, inb(ij) - 1) - ph(ij, & 1537 inb(ij)))) * cpn(ij, inb(ij)) / cpn(ij, inb(ij) - 1) 1557 1538 fuold = fu(ij, inb(ij)) 1558 fu(ij, inb(ij)) = fu(ij, inb(ij)) *(1.-frac(ij))1559 fu(ij, inb(ij) -1) = fu(ij, inb(ij)-1) + frac(ij)*fuold*((ph(ij, &1560 inb(ij))-ph(ij,inb(ij)+1))/(ph(ij,inb(ij)-1)-ph(ij,inb(ij))))1539 fu(ij, inb(ij)) = fu(ij, inb(ij)) * (1. - frac(ij)) 1540 fu(ij, inb(ij) - 1) = fu(ij, inb(ij) - 1) + frac(ij) * fuold * ((ph(ij, & 1541 inb(ij)) - ph(ij, inb(ij) + 1)) / (ph(ij, inb(ij) - 1) - ph(ij, inb(ij)))) 1561 1542 fvold = fv(ij, inb(ij)) 1562 fv(ij, inb(ij)) = fv(ij, inb(ij)) *(1.-frac(ij))1563 fv(ij, inb(ij) -1) = fv(ij, inb(ij)-1) + frac(ij)*fvold*((ph(ij, &1564 inb(ij))-ph(ij,inb(ij)+1))/(ph(ij,inb(ij)-1)-ph(ij,inb(ij))))1543 fv(ij, inb(ij)) = fv(ij, inb(ij)) * (1. - frac(ij)) 1544 fv(ij, inb(ij) - 1) = fv(ij, inb(ij) - 1) + frac(ij) * fvold * ((ph(ij, & 1545 inb(ij)) - ph(ij, inb(ij) + 1)) / (ph(ij, inb(ij) - 1) - ph(ij, inb(ij)))) 1565 1546 END DO 1566 1547 … … 1573 1554 vav(ij) = 0.0 1574 1555 DO i = 1, inb(ij) 1575 ents(ij) = ents(ij) + (cpn(ij, i)*ft(ij,i)+lv(ij,i)*fq(ij,i))*(ph(ij,i)- &1576 ph(ij,i+1))1577 uav(ij) = uav(ij) + fu(ij, i) *(ph(ij,i)-ph(ij,i+1))1578 vav(ij) = vav(ij) + fv(ij, i) *(ph(ij,i)-ph(ij,i+1))1556 ents(ij) = ents(ij) + (cpn(ij, i) * ft(ij, i) + lv(ij, i) * fq(ij, i)) * (ph(ij, i) - & 1557 ph(ij, i + 1)) 1558 uav(ij) = uav(ij) + fu(ij, i) * (ph(ij, i) - ph(ij, i + 1)) 1559 vav(ij) = vav(ij) + fv(ij, i) * (ph(ij, i) - ph(ij, i + 1)) 1579 1560 END DO 1580 1561 END DO 1581 1562 DO ij = 1, ncum 1582 ents(ij) = ents(ij) /(ph(ij,1)-ph(ij,inb(ij)+1))1583 uav(ij) = uav(ij) /(ph(ij,1)-ph(ij,inb(ij)+1))1584 vav(ij) = vav(ij) /(ph(ij,1)-ph(ij,inb(ij)+1))1563 ents(ij) = ents(ij) / (ph(ij, 1) - ph(ij, inb(ij) + 1)) 1564 uav(ij) = uav(ij) / (ph(ij, 1) - ph(ij, inb(ij) + 1)) 1565 vav(ij) = vav(ij) / (ph(ij, 1) - ph(ij, inb(ij) + 1)) 1585 1566 END DO 1586 1567 DO ij = 1, ncum 1587 1568 DO i = 1, inb(ij) 1588 ft(ij, i) = ft(ij, i) - ents(ij) /cpn(ij, i)1589 fu(ij, i) = (1. -cu)*(fu(ij,i)-uav(ij))1590 fv(ij, i) = (1. -cu)*(fv(ij,i)-vav(ij))1569 ft(ij, i) = ft(ij, i) - ents(ij) / cpn(ij, i) 1570 fu(ij, i) = (1. - cu) * (fu(ij, i) - uav(ij)) 1571 fv(ij, i) = (1. - cu) * (fv(ij, i) - vav(ij)) 1591 1572 END DO 1592 1573 END DO … … 1594 1575 DO k = 1, nl + 1 1595 1576 DO i = 1, ncum 1596 IF ((q(i,k)+delt*fq(i,k))<0.0) iflag(i) = 10 1597 END DO 1598 END DO 1599 1577 IF ((q(i, k) + delt * fq(i, k))<0.0) iflag(i) = 10 1578 END DO 1579 END DO 1600 1580 1601 1581 DO i = 1, ncum … … 1624 1604 DO k = nl, 1, -1 1625 1605 DO i = 1, ncum 1626 ma(i, k) = ma(i, k +1) + m(i, k)1606 ma(i, k) = ma(i, k + 1) + m(i, k) 1627 1607 END DO 1628 1608 END DO … … 1646 1626 ax(ij, i) = 0. ! cld 1647 1627 DO j = icb(ij), i ! cld 1648 ax(ij, i) = ax(ij, i) + rrd *(tvp(ij,j)-tv(ij,j)) & ! cld1649 *(ph(ij,j)-ph(ij,j+1))/p(ij, j) ! cld1628 ax(ij, i) = ax(ij, i) + rrd * (tvp(ij, j) - tv(ij, j)) & ! cld 1629 * (ph(ij, j) - ph(ij, j + 1)) / p(ij, j) ! cld 1650 1630 END DO ! cld 1651 IF (ax(ij, i)>0.0) THEN ! cld1652 wa(ij, i) = sqrt(2. *ax(ij,i)) ! cld1631 IF (ax(ij, i)>0.0) THEN ! cld 1632 wa(ij, i) = sqrt(2. * ax(ij, i)) ! cld 1653 1633 END IF ! cld 1654 1634 END DO ! cld 1655 1635 DO i = 1, nl ! cld 1656 IF (wa(ij, i)>0.0) & ! cld1657 siga(ij, i) = mac(ij, i)/wa(ij, i) & ! cld1658 *rrd*tvp(ij, i)/p(ij, i)/100./delta ! cld1659 siga(ij, i) = min(siga(ij, i), 1.0) ! cld1660 qcondc(ij, i) = siga(ij, i) *clw(ij, i)*(1.-ep(ij,i)) & ! cld1661 +(1.-siga(ij,i))*qcond(ij, i) ! cld1636 IF (wa(ij, i)>0.0) & ! cld 1637 siga(ij, i) = mac(ij, i) / wa(ij, i) & ! cld 1638 * rrd * tvp(ij, i) / p(ij, i) / 100. / delta ! cld 1639 siga(ij, i) = min(siga(ij, i), 1.0) ! cld 1640 qcondc(ij, i) = siga(ij, i) * clw(ij, i) * (1. - ep(ij, i)) & ! cld 1641 + (1. - siga(ij, i)) * qcond(ij, i) ! cld 1662 1642 END DO ! cld 1663 1643 END DO ! cld 1664 1644 1665 1666 1645 END SUBROUTINE cv_yield 1667 1646 1668 1647 SUBROUTINE cv_uncompress(nloc, len, ncum, nd, idcum, iflag, precip, cbmf, ft, & 1669 fq, fu, fv, ma, qcondc, iflag1, precip1, cbmf1, ft1, fq1, fu1, fv1, ma1, &1670 qcondc1)1648 fq, fu, fv, ma, qcondc, iflag1, precip1, cbmf1, ft1, fq1, fu1, fv1, ma1, & 1649 qcondc1) 1671 1650 IMPLICIT NONE 1672 1651 … … 1709 1688 END DO 1710 1689 1711 1712 1690 END SUBROUTINE cv_uncompress 1713 1691 -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/cva_driver.F90
r5117 r5132 53 53 USE lmdz_print_control, ONLY: prt_level, lunout 54 54 USE add_phys_tend_mod, ONLY: fl_cor_ebil 55 USE lmdz_abort_physic, ONLY: abort_physic 55 56 #ifdef ISO 56 57 USE infotrac_phy, ONLY: ntraciso=>ntiso,niso,niso,itZonIso,nzone -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/isotopes_mod.F90
r5117 r5132 432 432 433 433 SUBROUTINE getinp_s(nam, val, def, lDisp) 434 USE ioipsl_getincom, ONLY: getin434 USE IOIPSL, ONLY: getin 435 435 USE lmdz_phys_mpi_data, ONLY: is_mpi_root 436 436 USE lmdz_phys_omp_data, ONLY: is_omp_root … … 451 451 452 452 SUBROUTINE getinp_i(nam, val, def, lDisp) 453 USE ioipsl_getincom, ONLY: getin453 USE IOIPSL, ONLY: getin 454 454 USE lmdz_phys_mpi_data, ONLY: is_mpi_root 455 455 USE lmdz_phys_omp_data, ONLY: is_omp_root … … 470 470 471 471 SUBROUTINE getinp_r(nam, val, def, lDisp) 472 USE ioipsl_getincom, ONLY: getin472 USE IOIPSL, ONLY: getin 473 473 USE lmdz_phys_mpi_data, ONLY: is_mpi_root 474 474 USE lmdz_phys_omp_data, ONLY: is_omp_root … … 489 489 490 490 SUBROUTINE getinp_l(nam, val, def, lDisp) 491 USE ioipsl_getincom, ONLY: getin491 USE IOIPSL, ONLY: getin 492 492 USE lmdz_phys_mpi_data, ONLY: is_mpi_root 493 493 USE lmdz_phys_omp_data, ONLY: is_omp_root -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/isotopes_routines_mod.F90
r5117 r5132 4 4 MODULE isotopes_routines_mod 5 5 USE infotrac_phy, ONLY: niso, ntraciso=>ntiso, index_trac=>itZonIso, ntraceurs_zone=>nzone 6 USE lmdz_abort_physic, ONLY: abort_physic 6 7 IMPLICIT NONE 7 8 -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/isotopes_verif_mod.F90
r5117 r5132 9 9 !#endif 10 10 USE infotrac_phy, ONLY: ntraciso=>ntiso, niso, itZonIso, nzone 11 USE lmdz_abort_physic, ONLY: abort_physic 11 12 IMPLICIT NONE 12 13 save -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/isotrac_mod.F90
r5117 r5132 6 6 USE lmdz_readTracFiles, ONLY: delPhase 7 7 USE isotopes_mod, ONLY: ridicule, get_in 8 USE lmdz_abort_physic, ONLY: abort_physic 8 9 9 10 IMPLICIT NONE -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/limit_read_mod.F90
r5117 r5132 11 11 ! limit_read_sst : return sea ice temperature 12 12 ! limit_read_tot : read limit.nc and store the fields in local modules variables 13 14 USE lmdz_abort_physic, ONLY: abort_physic 13 15 14 16 IMPLICIT NONE -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/lmdz_lscp_old.F90
r5117 r5132 4 4 5 5 MODULE lmdz_lscp_old 6 USE lmdz_abort_physic, ONLY: abort_physic 6 7 CONTAINS 7 8 SUBROUTINE fisrtilp(dtime,paprs,pplay,t,q,ptconv,ratqs, & -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/phyaqua_mod.F90
r5117 r5132 4 4 MODULE phyaqua_mod 5 5 ! Routines complementaires pour la physique planetaire. 6 USE lmdz_abort_physic, ONLY: abort_physic 6 7 IMPLICIT NONE 7 8 -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/phyetat0_mod.F90
r5117 r5132 2 2 3 3 MODULE phyetat0_mod 4 USE lmdz_abort_physic, ONLY: abort_physic 4 5 5 6 PRIVATE -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/phyredem.F90
r5117 r5132 51 51 USE time_phylmdz_mod, ONLY: annee_ref, day_end, itau_phy, pdtphys 52 52 USE config_ocean_skin_m, ONLY: activate_ocean_skin 53 USE lmdz_abort_physic, ONLY: abort_physic 53 54 54 55 IMPLICIT none -
LMDZ6/branches/Amaury_dev/libf/phylmdiso/physiq_mod.F90
r5128 r5132 111 111 USE phys_output_write_mod 112 112 113 USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_DUST 113 USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_DUST, CPPKEY_STRATAER 114 114 115 115 !!!!!!!!!!!!!!!!!! "USE" section for CPP keys !!!!!!!!!!!!!!!!!!!!!!!! … … 1494 1494 1495 1495 IF (CPPKEY_STRATAER) THEN 1496 #ifdef ISO 1497 CALL abort_gcm("physiq_mod", "StratAer isn't ISO-compatible for now, 07/24",1) 1498 #else 1496 1499 CALL strataer_init 1497 1500 CALL strataer_nuc_init 1498 1501 CALL strataer_emiss_init 1502 #endif 1499 1503 END IF 1500 1504 … … 1620 1624 CALL getin_p('iflag_phytrac',iflag_phytrac) 1621 1625 IF (CPPKEY_DUST) THEN 1622 IF (iflag_phytrac .EQ.0) THEN1626 IF (iflag_phytrac==0) THEN 1623 1627 WRITE(lunout,*) 'In order to run with SPLA, iflag_phytrac will be forced to 1' 1624 1628 iflag_phytrac = 1 … … 5776 5780 5777 5781 #ifdef CPP_RRTM 5778 IF (CPPKEY_STRATER) THEN 5782 IF (CPPKEY_STRATAER) THEN 5783 #ifdef ISO 5784 CALL abort_gcm("physiq_mod", "StratAer isn't ISO-compatible for now, 07/24",1) 5785 #else 5779 5786 !--compute stratospheric mask 5780 5787 CALL stratosphere_mask(missing_val, pphis, t_seri, pplay, latitude_deg) 5781 5788 !--interactive strat aerosols 5782 5789 CALL calcaerosolstrato_rrtm(pplay,t_seri,paprs,debut) 5790 #endif 5783 5791 END IF 5784 5792 #endif … … 6411 6419 IF (ok_qch4) THEN 6412 6420 ! d_q_ch4: H2O source from CH4 in MMR/s (mass mixing ratio/s or kg H2O/kg air/s) 6413 IF (CPPKEY_STRATER) THEN 6421 IF (CPPKEY_STRATAER) THEN 6422 #ifdef ISO 6423 CALL abort_gcm("physiq_mod", "StratAer isn't ISO-compatible for now, 07/24",1) 6424 #else 6414 6425 CALL stratH2O_methox(debut,paprs,d_q_ch4) 6426 #endif 6415 6427 ELSE 6416 6428 ! ECMWF routine METHOX … … 6435 6447 6436 6448 6437 IF (CPPKEY_STRATER) THEN 6449 IF (CPPKEY_STRATAER) THEN 6450 #ifdef ISO 6451 CALL abort_gcm("physiq_mod", "StratAer isn't ISO-compatible for now, 07/24",1) 6452 #else 6438 6453 IF (ok_qemiss) THEN 6439 6454 flh2o=1 … … 6478 6493 END SELECT ! emission scenario (flag_emit) 6479 6494 ENDIF 6495 #endif 6480 6496 END IF 6481 6497 … … 6932 6948 ENDDO 6933 6949 6934 IF (CPPKEY_STRATER) THEN 6950 IF (CPPKEY_STRATAER) THEN 6951 #ifdef ISO 6952 CALL abort_gcm("physiq_mod", "StratAer isn't ISO-compatible for now, 07/24",1) 6953 #else 6935 6954 IF (ok_qemiss) THEN 6936 6955 DO k = 1, klev … … 6938 6957 ENDDO 6939 6958 ENDIF 6959 #endif 6940 6960 END IF 6941 6961 IF (ok_qch4) THEN
Note: See TracChangeset
for help on using the changeset viewer.