Changeset 386
- Timestamp:
- 2011-08-05T15:58:48+02:00 (13 years ago)
- Location:
- branches/ORCHIDEE_EXT/ORCHIDEE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/condveg.f90
r311 r386 682 682 ALLOCATE(lat_rel(iml,jml), STAT=ALLOC_ERR) 683 683 IF (ALLOC_ERR/=0) THEN 684 PRINT *,"ERROR IN ALLOCATION of lat_rel : ",ALLOC_ERR684 WRITE(numout,*) "ERROR IN ALLOCATION of lat_rel : ",ALLOC_ERR 685 685 STOP 686 686 ENDIF … … 688 688 ALLOCATE(lon_rel(iml,jml), STAT=ALLOC_ERR) 689 689 IF (ALLOC_ERR/=0) THEN 690 PRINT *,"ERROR IN ALLOCATION of lon_rel : ",ALLOC_ERR690 WRITE(numout,*) "ERROR IN ALLOCATION of lon_rel : ",ALLOC_ERR 691 691 STOP 692 692 ENDIF … … 694 694 ALLOCATE(mask(iml,jml), STAT=ALLOC_ERR) 695 695 IF (ALLOC_ERR/=0) THEN 696 PRINT *,"ERROR IN ALLOCATION of mask : ",ALLOC_ERR696 WRITE(numout,*) "ERROR IN ALLOCATION of mask : ",ALLOC_ERR 697 697 STOP 698 698 ENDIF … … 700 700 ALLOCATE(soilcol(iml,jml), STAT=ALLOC_ERR) 701 701 IF (ALLOC_ERR/=0) THEN 702 PRINT *,"ERROR IN ALLOCATION of soiltext : ",ALLOC_ERR702 WRITE(numout,*) "ERROR IN ALLOCATION of soiltext : ",ALLOC_ERR 703 703 STOP 704 704 ENDIF … … 739 739 ALLOCATE(sub_area(nbpt,nbvmax), STAT=ALLOC_ERR) 740 740 IF (ALLOC_ERR/=0) THEN 741 PRINT *,"ERROR IN ALLOCATION of sub_area : ",ALLOC_ERR741 WRITE(numout,*) "ERROR IN ALLOCATION of sub_area : ",ALLOC_ERR 742 742 STOP 743 743 ENDIF … … 746 746 ALLOCATE(sub_index(nbpt,nbvmax,2), STAT=ALLOC_ERR) 747 747 IF (ALLOC_ERR/=0) THEN 748 PRINT *,"ERROR IN ALLOCATION of sub_index : ",ALLOC_ERR748 WRITE(numout,*) "ERROR IN ALLOCATION of sub_index : ",ALLOC_ERR 749 749 STOP 750 750 ENDIF -
branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/slowproc.f90
r381 r386 536 536 ALLOCATE(frac_nobio_nextyear(kjpindex, nnobio), STAT=ier) 537 537 IF (ier/=0) THEN 538 PRINT *,"ERROR IN ALLOCATION of frac_nobio_nextyear : ",ier538 WRITE(numout,*) "ERROR IN ALLOCATION of frac_nobio_nextyear : ",ier 539 539 STOP 540 540 ENDIF … … 544 544 ALLOCATE(totfrac_nobio_nextyear(kjpindex), STAT=ier) 545 545 IF (ier/=0) THEN 546 PRINT *,"ERROR IN ALLOCATION of totfrac_nobio_nextyear : ",ier546 WRITE(numout,*) "ERROR IN ALLOCATION of totfrac_nobio_nextyear : ",ier 547 547 STOP 548 548 ENDIF … … 871 871 IF (natural(jv)) THEN 872 872 veget_max(:,jv)=zero 873 ELSE 874 sum_veget_max = zero 875 DO ji = 1, kjpindex 876 ! we sum only on the indexes corresponding to the non_natural pfts 873 ENDIF 874 ENDDO 875 ! 876 sum_veget_max = zero 877 DO ji = 1, kjpindex 878 ! we sum only on the indexes corresponding to the non_natural pfts 879 DO jv = 2,nvm 880 IF (.NOT. natural(jv)) THEN 877 881 sum_veget_max = sum_veget_max + veget_max(ji,jv) 878 ! veget_max(ji,1) = un - SUM(veget_max(ji,jv))-SUM(frac_nobio(ji,:)) 879 ENDDO 880 veget_max(ji,1) = un - sum_veget_max - SUM(frac_nobio(ji,:)) 881 ENDIF 882 ENDDO !- end loop nvm 882 ENDIF 883 ENDDO 884 veget_max(ji,1) = un - sum_veget_max - SUM(frac_nobio(ji,:)) 885 ENDDO 883 886 ELSE 884 887 veget_max(:,:) = zero … … 908 911 IF (natural(jv)) THEN 909 912 veget_max(:,jv)=zero 910 ELSE 911 ! Add 15/03/2011 912 sum_veget_max = zero 913 DO ji = 1, kjpindex 913 ENDIF 914 ENDDO 915 ! 916 sum_veget_max = zero 917 DO ji = 1, kjpindex 918 DO jv = 2, nvm 919 IF(.NOT. natural(jv)) THEN 914 920 sum_veget_max = sum_veget_max + veget_max(ji,jv) 915 END DO916 veget_max(ji,1) = un - sum_veget_max- SUM(frac_nobio(ji,:))917 ENDIF918 ENDDO !- end loop nvm921 ENDIF 922 ENDDO 923 veget_max(ji,1) = un - sum_veget_max- SUM(frac_nobio(ji,:)) 924 ENDDO 919 925 ELSE 920 926 veget_max(:,:) = zero … … 929 935 ! 930 936 ELSE 931 932 937 ! WITH restarts for vegetation and DGVM and NO AGRICULTURE 938 IF ( control%ok_dgvm ) THEN 933 939 ! 934 940 ! If we are dealing with dynamic vegetation then all … … 937 943 ! set to 0 as well 938 944 ! 939 ! IF (.NOT. agriculture) THEN940 ! DO ji = 1, kjpindex941 ! veget_max(ji,1) = veget_max(ji,1) + SUM(veget_max(ji,nvm-1:nvm))942 ! ENDDO943 ! veget_max(ji,nvm-1:nvm) = zero944 ! ENDIF945 946 945 !$$$ 25/10/10 :: Modif DS & NV :: attention garde t'on la masse de C !!! 947 946 IF (.NOT. agriculture) THEN 948 947 DO jv = 2, nvm 949 948 DO ji = 1, kjpindex 950 949 IF ( .NOT. natural (jv)) THEN 951 950 veget_max(ji,1) = veget_max(ji,1) + veget_max(ji,jv) 952 951 veget_max(ji,jv) = zero 953 ENDIF952 ENDIF 954 953 ENDDO 955 954 ENDDO … … 2727 2726 CHARACTER(LEN=80) :: filename 2728 2727 INTEGER(i_std) :: iml, jml, lml, tml, fid, ib, ip, jp, vid 2729 REAL(r_std) :: lev(1), date, dt, coslat , pi2728 REAL(r_std) :: lev(1), date, dt, coslat 2730 2729 INTEGER(i_std) :: itau(1) 2731 2730 REAL(r_std), ALLOCATABLE, DIMENSION(:) :: lat_ful, lon_ful, vegmap … … 3963 3962 INTEGER(i_std), INTENT(out) :: inear 3964 3963 3965 ! REAL(r_std) :: pi3966 3964 REAL(r_std) :: pa, p 3967 3965 REAL(r_std) :: coscolat, sincolat -
branches/ORCHIDEE_EXT/ORCHIDEE/src_stomate/stomate_alloc.f90
r257 r386 152 152 ! 153 153 L0 = 1. - R0 - S0 ! defined in constantes.f90 154 IF ((L0 .LT. zero) .OR. (S0 .EQ. un)) STOP 'L0 negative or division by zero if S0 = 1' 154 IF ((L0 .LT. zero) .OR. (S0 .EQ. un)) THEN 155 CALL ipslerr (3,'in module stomate_alloc', & 156 & 'Something wrong happened', & 157 & 'L0 negative or division by zero if S0 = 1', & 158 & '(Check your parameters.)') 159 ENDIF 155 160 156 161 !
Note: See TracChangeset
for help on using the changeset viewer.