Changeset 425 for branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba
- Timestamp:
- 2011-08-31T09:32:29+02:00 (13 years ago)
- Location:
- branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/intersurf.f90
r407 r425 69 69 ! 70 70 !!$ DS : ajout du flag IMPOSE_PARAM 71 ! Flag impos_param : it is set to true by default71 ! Flag impos_param : it is set to true by default 72 72 LOGICAL, SAVE :: impose_param = .TRUE. 73 73 ! … … 2759 2759 TYPE(control_type), INTENT(out) :: control_flags !! Flags that (de)activate parts of the model 2760 2760 2761 2762 !2763 !Config Key = NVM2764 !Config Desc = number of PFTs2765 !Config if = ANYTIME2766 !Config Def = 132767 !Config Help = The number of vegetation types define by the user2768 !Config Units = NONE2769 CALL getin_p('NVM',nvm)2770 WRITE(numout,*)'the number of pfts is : ', nvm2771 2761 ! 2772 2762 !Config Key = LONGPRINT … … 2823 2813 ENDIF 2824 2814 2825 !Config Key = IMPOSE_PARAM2826 !Config Desc = Do you impose the values of the parameters?2827 !Config if = ANYTIME2828 !Config Def = y2829 !Config Help = This flag can deactivate the reading of some paramters.2830 ! Useful if you want to use the standard values without commenting the run.def2831 !Config Units = NONE2832 CALL getin_p('IMPOSE_PARAM',impose_param)2833 2834 ! Read and allocate the pft parameters2835 CALL pft_parameters_main2836 2837 2815 ! 2838 2816 !Config Key = RIVER_ROUTING … … 2847 2825 WRITE(numout,*) "RIVER routing is activated : ",control_flags%river_routing 2848 2826 ! 2849 !!$ DS : reading of parameters associated to river_routing2850 IF ( control_flags%river_routing ) THEN2851 CALL getin_routing_parameters2852 ENDIF2853 2827 2854 2828 ! … … 2870 2844 ENDIF 2871 2845 ! 2872 !!$ DS : reading of parameters associated to hydrol_cwrr2873 IF ( control_flags%hydrol_cwrr ) THEN2874 CALL getin_hydrol_cwrr_parameters2875 ELSE2876 CALL getin_hydrolc_parameters2877 ! we read the parameters for the choisnel hydrology2878 ENDIF2879 2846 2880 2847 ! … … 2888 2855 WRITE(numout,*) 'photosynthesis: ', control_flags%ok_co2 2889 2856 ! 2890 !!$ DS : reading of parameters associated to ok_co22891 IF ( control_flags%ok_co2 ) THEN2892 CALL getin_co2_parameters2893 ENDIF2894 2857 2895 2858 ! … … 2903 2866 WRITE(numout,*) 'STOMATE is activated: ',control_flags%ok_stomate 2904 2867 ! 2905 !!$ DS : reading of parameters associated to ok_stomate2906 IF ( control_flags%ok_stomate ) THEN2907 CALL getin_stomate_parameters2908 IF ( impose_param ) THEN2909 CALL getin_stomate_pft_parameters2910 WRITE(numout,*)' some stomate_pft_parameters have been imposed '2911 ELSE2912 WRITE(numout,*)' all stomate_pft_parameters are set to default values'2913 ENDIF2914 ENDIF2915 2868 2916 2869 ! … … 2927 2880 ! 2928 2881 control_flags%ok_sechiba = .TRUE. 2929 !!$ DS : reading of parameters associated to ok_sechiba2930 IF ( control_flags%ok_sechiba ) THEN2931 CALL getin_sechiba_parameters2932 IF ( impose_param ) THEN2933 CALL getin_sechiba_pft_parameters2934 WRITE(numout,*)' some sechiba_pft_parameters have been imposed '2935 ELSE2936 WRITE(numout,*)' all sechiba_pft_parameters are set to default values'2937 ENDIF2938 ENDIF2939 2940 2882 ! 2941 2883 ! … … 2965 2907 control_flags%ok_pheno = .TRUE. 2966 2908 ! 2967 !>> july 2011 2968 ! DS: activation of sub-models of ORCHIDEE 2909 2910 !>> DS 08/2011 : for externalisation 2911 2912 ! 1. Number of PFTs defined by the user 2913 2914 !Config Key = NVM 2915 !Config Desc = number of PFTs 2916 !Config if = ANYTIME 2917 !Config Def = 13 2918 !Config Help = The number of vegetation types define by the user 2919 !Config Units = NONE 2920 CALL getin_p('NVM',nvm) 2921 WRITE(numout,*)'the number of pfts is : ', nvm 2922 2923 ! 2. Should we read the parameters in the run.def file ? 2924 2925 !Config Key = IMPOSE_PARAM 2926 !Config Desc = Do you impose the values of the parameters? 2927 !Config if = ANYTIME 2928 !Config Def = y 2929 !Config Help = This flag can deactivate the reading of some parameters. 2930 ! Useful if you want to use the standard values without commenting the run.def 2931 !Config Units = NONE 2932 ! 2933 CALL getin_p('IMPOSE_PARAM',impose_param) 2934 2935 ! 3. Allocate and intialize the pft parameters 2936 2937 CALL pft_parameters_main(control_flags%ok_sechiba,control_flags%ok_stomate) 2938 2939 ! 4. Activation sub-models of ORCHIDEE 2940 2969 2941 CALL activate_sub_models(control_flags%ok_sechiba, control_flags%river_routing,control_flags%ok_stomate) 2970 ! Vegetation configuration(impose_veg, land_use, lcchange...previously in slowproc) 2942 2943 ! 5. Vegetation configuration (impose_veg, land_use, lcchange...previously in slowproc) 2944 2971 2945 CALL veget_config 2946 2947 ! 6. Read the parameters in the run.def file according the flags 2948 2949 IF ( control_flags%ok_sechiba .AND. impose_param ) THEN 2950 CALL getin_sechiba_parameters 2951 CALL getin_sechiba_pft_parameters 2952 WRITE(numout,*)' some sechiba_pft_parameters have been imposed ' 2953 ELSE 2954 WRITE(numout,*)' all sechiba_pft_parameters are set to default values' 2955 ENDIF 2956 2957 IF ( control_flags%ok_co2 .AND. impose_param ) THEN 2958 CALL getin_co2_parameters 2959 ENDIF 2960 2961 IF ( control_flags%hydrol_cwrr .AND. impose_param ) THEN 2962 CALL getin_hydrol_cwrr_parameters 2963 ELSE 2964 IF (impose_param) THEN 2965 CALL getin_hydrolc_parameters 2966 ! we read the parameters for the choisnel hydrology 2967 ENDIF 2968 ENDIF 2969 2970 IF ( control_flags%river_routing .AND. impose_param ) THEN 2971 CALL getin_routing_parameters 2972 ENDIF 2973 2974 IF ( control_flags%ok_stomate .AND. impose_param ) THEN 2975 CALL getin_stomate_parameters 2976 CALL getin_stomate_pft_parameters 2977 WRITE(numout,*)' some stomate_pft_parameters have been imposed ' 2978 ELSE 2979 WRITE(numout,*)' all stomate_pft_parameters are set to default values' 2980 ENDIF 2981 2982 IF ( control_flags%ok_dgvm .AND. impose_param ) THEN 2983 CALL getin_dgvm_parameters 2984 ENDIF 2985 2986 !>> END DS 2987 ! 2972 2988 ! 2973 2989 RETURN -
branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/slowproc.f90
r386 r425 946 946 IF (.NOT. agriculture) THEN 947 947 DO jv = 2, nvm 948 DO ji = 1, kjpindex949 IF ( .NOT. natural (jv)) THEN948 IF ( .NOT. natural (jv)) THEN 949 DO ji = 1, kjpindex 950 950 veget_max(ji,1) = veget_max(ji,1) + veget_max(ji,jv) 951 951 veget_max(ji,jv) = zero 952 END IF953 END DO952 ENDDO 953 ENDIF 954 954 ENDDO 955 955 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.