Changeset 15411 for NEMO/branches/UKMO
- Timestamp:
- 2021-10-20T11:41:34+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/NEMO_4.0.4_CO9_shelf_climate/src/OCE/DIA/diaregmean.F90
r15402 r15411 160 160 161 161 IF(ln_diaregmean_diasbc) THEN 162 ALLOCATE( tmp_field_SBC_mat(jpi,jpj, 7), STAT= ierr ) !SBC terms162 ALLOCATE( tmp_field_SBC_mat(jpi,jpj,9), STAT= ierr ) !SBC terms 163 163 IF( ierr /= 0 ) CALL ctl_stop( 'tmp_field_SBC_mat: failed to allocate tmp_field_SBC_mat array' ) 164 164 tmp_field_SBC_mat(:,:,:) = 0. … … 494 494 CHARACTER (len=120), DIMENSION(19) :: name_dat_mat 495 495 CHARACTER (len=120), DIMENSION(4) :: name_AR5_mat 496 CHARACTER (len=120), DIMENSION( 7) :: name_SBC_mat496 CHARACTER (len=120), DIMENSION(9) :: name_SBC_mat 497 497 CHARACTER (len=120), DIMENSION(4) :: name_HSCM_mat 498 498 INTEGER :: vi … … 500 500 REAL(wp), DIMENSION(19) :: output_mulitpler_dat_mat 501 501 REAL(wp), DIMENSION(4) :: output_mulitpler_AR5_mat 502 REAL(wp), DIMENSION( 7) :: output_mulitpler_SBC_mat502 REAL(wp), DIMENSION(9) :: output_mulitpler_SBC_mat 503 503 REAL(wp), DIMENSION(4) :: output_mulitpler_HSVM_mat 504 504 … … 691 691 tmp_field_SBC_mat(:,:,7) = tmp_field_SBC_mat(:,:,7) + (rnf*tmask(:,:,1)) 692 692 name_SBC_mat(7) = 'rnf' 693 694 tmp_field_SBC_mat(:,:,8) = tmp_field_SBC_mat(:,:,8) + (emp*tmask(:,:,1)*tsn(:,:,1,jp_tem)*3850.) 695 name_SBC_mat(8) = 'empheat' 696 tmp_field_SBC_mat(:,:,9) = tmp_field_SBC_mat(:,:,9) + (rnf*tmask(:,:,1)*tsn(:,:,1,jp_tem)*3850.) 697 name_SBC_mat(9) = 'rnfheat' 698 693 699 ENDIF 694 700 … … 723 729 IF (iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_ave')))) .OR. & 724 730 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_tot')))) .OR. & 731 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_totheat')))) .OR. & 725 732 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_var')))) .OR. & 726 733 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_cnt')))) .OR. & … … 746 753 IF (iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_ave')))) .OR. & 747 754 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_tot')))) .OR. & 755 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_totarea')))) .OR. & 748 756 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_var')))) .OR. & 749 757 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_cnt')))) .OR. & … … 763 771 IF (iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_ave')))) .OR. & 764 772 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_tot')))) .OR. & 773 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_totarea')))) .OR. & 765 774 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_var')))) .OR. & 766 775 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_cnt')))) .OR. & … … 776 785 777 786 IF( ln_diaregmean_diasbc ) THEN 778 DO vi=1, 7! State loop787 DO vi=1,9 ! State loop 779 788 780 789 tmp_name=TRIM( name_SBC_mat(vi) ) 781 790 IF (iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_ave')))) .OR. & 782 791 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_tot')))) .OR. & 792 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_totarea')))) .OR. & 783 793 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_var')))) .OR. & 784 794 & iom_use(trim( trim(trim("reg_") // trim(tmp_name) // trim('_cnt')))) .OR. & … … 1122 1132 !ENDIF 1123 1133 1124 ! calculate the mean and variance from the total, sum of squares and the count.1134 ! calculate the mean and variance from the total, sum of squares and the count. 1125 1135 ! When area weighting, you can't area weight the total. 1126 1136 ! this if block may be redundant, as totarea_mat == tot_mat, and cnt_mat == area_mat when ln_diaregmean_areawgt == False
Note: See TracChangeset
for help on using the changeset viewer.