Changeset 2302 for trunk/LMDZ.MARS/libf/phymars
- Timestamp:
- Apr 28, 2020, 9:53:07 AM (5 years ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/initracer.F
r2284 r2302 105 105 igcm_hco2plus=0 106 106 igcm_hcoplus=0 107 igcm_h2oplus=0 107 108 igcm_elec=0 108 109 … … 327 328 igcm_hcoplus=iq 328 329 mmol(igcm_hcoplus)=29. 330 count=count+1 331 endif 332 if (noms(iq).eq."h2oplus") then 333 igcm_h2oplus=iq 334 mmol(igcm_h2oplus)=18. 329 335 count=count+1 330 336 endif … … 374 380 write(*,*)' ',iq,' ',trim(noms(iq)) 375 381 enddo 376 stop382 call abort_physic("initracer","tracer mismatch",1) 377 383 else 378 384 write(*,*) "initracer: found all expected tracers, namely:" … … 522 528 print*,'initracer: STOP!', 523 529 $ ' properties of dust need to be set in initracer !!!' 524 stop530 call abort_physic("initracer","dustbin properties issue",1) 525 531 526 532 else if (dustbin.eq.1) then … … 633 639 write(*,*) " cannot use doubleq option without ", 634 640 & "a dust_mass tracer !" 635 stop641 call abort_physic("initracer","doubleq issue",1) 636 642 endif 637 643 if (igcm_dust_number.eq.0) then … … 639 645 write(*,*) " cannot use doubleq option without ", 640 646 & "a dust_number tracer !" 641 stop647 call abort_physic("initracer","doubleq issue",1) 642 648 endif 643 649 endif … … 653 659 if (count.ne.dustbin) then 654 660 write(*,*) "initracer: error !!" 655 write(*,*) " dus bin is set to ",dustbin,661 write(*,*) " dustbin is set to ",dustbin, 656 662 & " but we only have the following dust tracers:" 657 663 do iq=1,count 658 664 write(*,*)" ",trim(noms(igcm_dustbin(iq))) 659 665 enddo 660 stop666 call abort_physic("initracer","dustbin issue",1) 661 667 endif 662 668 endif … … 668 674 write(*,*) " cannot use water option without ", 669 675 & "an h2o_vap tracer !" 670 stop676 call abort_physic("initracer","water cycle issue",1) 671 677 endif 672 678 if (igcm_h2o_ice.eq.0) then … … 674 680 write(*,*) " cannot use water option without ", 675 681 & "an h2o_ice tracer !" 676 stop682 call abort_physic("initracer","water cycle issue",1) 677 683 endif 678 684 endif … … 684 690 write(*,*) " cannot use co2 clouds option without ", 685 691 & "a co2 tracer !" 686 stop692 call abort_physic("initracer","co2 clouds issue",1) 687 693 endif 688 694 if (igcm_co2_ice .eq. 0) then … … 690 696 write(*,*) " cannot use co2 clouds option without ", 691 697 & "a co2_ice tracer !" 692 stop698 call abort_physic("initracer","co2 clouds issue",1) 693 699 endif 694 700 endif … … 700 706 write(*,*) " cannot use rdstorm option without ", 701 707 & "a stormdust_mass tracer !" 702 stop708 call abort_physic("initracer","rdstorm issue",1) 703 709 endif 704 710 if (igcm_stormdust_number.eq.0) then … … 706 712 write(*,*) " cannot use rdstorm option without ", 707 713 & "a stormdust_number tracer !" 708 stop714 call abort_physic("initracer","rdstorm issue",1) 709 715 endif 710 716 endif … … 716 722 write(*,*) " cannot use slpwind option without ", 717 723 & "a topdust_mass tracer !" 718 stop724 call abort_physic("initracer","slpwind issue",1) 719 725 endif 720 726 if (igcm_topdust_number.eq.0) then … … 722 728 write(*,*) " cannot use slpwind option without ", 723 729 & "a topdust_number tracer !" 724 stop730 call abort_physic("initracer","slpwind issue",1) 725 731 endif 726 732 endif … … 732 738 write(*,*) "initracer: error !!" 733 739 write(*,*) " with nltemodel>0, we need the co2 tracer!" 734 stop740 call abort_physic("initracer","missing co2 tracer",1) 735 741 endif 736 742 if (igcm_co.eq.0) then 737 743 write(*,*) "initracer: error !!" 738 744 write(*,*) " with nltemodel>0, we need the co tracer!" 739 stop745 call abort_physic("initracer","missing co tracer",1) 740 746 endif 741 747 if (igcm_o.eq.0) then 742 748 write(*,*) "initracer: error !!" 743 749 write(*,*) " with nltemodel>0, we need the o tracer!" 744 stop750 call abort_physic("initracer","missing o tracer",1) 745 751 endif 746 752 if (igcm_n2.eq.0) then 747 753 write(*,*) "initracer: error !!" 748 754 write(*,*) " with nltemodel>0, we need the n2 tracer!" 749 stop755 call abort_physic("initracer","missing n2 tracer",1) 750 756 endif 751 757 endif … … 758 764 write(*,*) " cannot use scavenging option without ", 759 765 & "a ccn_mass or ccnco2_mass tracer !" 760 stop766 call abort_physic("initracer","scavenging issue",1) 761 767 endif 762 768 if (igcm_ccn_number.eq.0 .and. igcm_ccnco2_number.eq.0 ) then … … 764 770 write(*,*) " cannot use scavenging option without ", 765 771 & "a ccn_number or ccnco2_number tracer !" 766 stop772 call abort_physic("initracer","scavenging issue",1) 767 773 endif 768 774 endif ! of if (scavenging) … … 774 780 write(*,*) " cannot use chemistry option without ", 775 781 & "a co2 tracer !" 776 stop782 call abort_physic("initracer","missing co2 tracer",1) 777 783 endif 778 784 if (igcm_co.eq.0) then … … 780 786 write(*,*) " cannot use chemistry option without ", 781 787 & "a co tracer !" 782 stop788 call abort_physic("initracer","missing co tracer",1) 783 789 endif 784 790 if (igcm_o.eq.0) then … … 786 792 write(*,*) " cannot use chemistry option without ", 787 793 & "a o tracer !" 788 stop794 call abort_physic("initracer","missing o tracer",1) 789 795 endif 790 796 if (igcm_o1d.eq.0) then … … 792 798 write(*,*) " cannot use chemistry option without ", 793 799 & "a o1d tracer !" 794 stop800 call abort_physic("initracer","missing o1d tracer",1) 795 801 endif 796 802 if (igcm_o2.eq.0) then … … 798 804 write(*,*) " cannot use chemistry option without ", 799 805 & "an o2 tracer !" 800 stop806 call abort_physic("initracer","missing o2 tracer",1) 801 807 endif 802 808 if (igcm_o3.eq.0) then … … 804 810 write(*,*) " cannot use chemistry option without ", 805 811 & "an o3 tracer !" 806 stop812 call abort_physic("initracer","missing o3 tracer",1) 807 813 endif 808 814 if (igcm_h.eq.0) then … … 810 816 write(*,*) " cannot use chemistry option without ", 811 817 & "a h tracer !" 812 stop818 call abort_physic("initracer","missing h tracer",1) 813 819 endif 814 820 if (igcm_h2.eq.0) then … … 816 822 write(*,*) " cannot use chemistry option without ", 817 823 & "a h2 tracer !" 818 stop824 call abort_physic("initracer","missing h2 tracer",1) 819 825 endif 820 826 if (igcm_oh.eq.0) then … … 822 828 write(*,*) " cannot use chemistry option without ", 823 829 & "an oh tracer !" 824 stop830 call abort_physic("initracer","missing oh tracer",1) 825 831 endif 826 832 if (igcm_ho2.eq.0) then … … 828 834 write(*,*) " cannot use chemistry option without ", 829 835 & "a ho2 tracer !" 830 stop836 call abort_physic("initracer","missing ho2 tracer",1) 831 837 endif 832 838 if (igcm_h2o2.eq.0) then … … 834 840 write(*,*) " cannot use chemistry option without ", 835 841 & "a h2o2 tracer !" 836 stop842 call abort_physic("initracer","missing h2o2 tracer",1) 837 843 endif 838 844 if (igcm_n2.eq.0) then … … 840 846 write(*,*) " cannot use chemistry option without ", 841 847 & "a n2 tracer !" 842 stop848 call abort_physic("initracer","missing n2 tracer",1) 843 849 endif 844 850 if (igcm_ar.eq.0) then … … 846 852 write(*,*) " cannot use chemistry option without ", 847 853 & "an ar tracer !" 848 stop854 call abort_physic("initracer","missing ar tracer",1) 849 855 endif 850 856 endif ! of if (photochem .or. callthermos) -
trunk/LMDZ.MARS/libf/phymars/tracer_mod.F90
r2284 r2302 87 87 integer,save :: igcm_hco2plus 88 88 integer,save :: igcm_hcoplus 89 integer,save :: igcm_h2oplus 89 90 integer,save :: igcm_elec 90 91 ! other tracers
Note: See TracChangeset
for help on using the changeset viewer.