psmile_get_true_mask_entries.F90
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 subroutine psmile_get_true_mask_entries (mask_array, mask_shape, &
00012 inter, n_true, ierror)
00013
00014
00015
00016 use PRISM_constants
00017
00018 use PSMILe, dummy_interface => PSMILe_get_true_mask_entries
00019
00020 implicit none
00021
00022
00023
00024 Integer, Intent (In) :: mask_shape (2, ndim_3d)
00025
00026
00027
00028 Logical, Intent (In) :: mask_array (
00029 mask_shape(1,1):mask_shape(2,1),
00030 mask_shape(1,2):mask_shape(2,2),
00031 mask_shape(1,3):mask_shape(2,3))
00032
00033
00034
00035 Integer, Intent (In) :: inter (2, ndim_3d)
00036
00037
00038
00039
00040
00041 Integer, Intent (Out) :: n_true
00042
00043
00044
00045 Integer, Intent (Out) :: ierror
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071 Character(len=len_cvs_string), save :: mycvs =
00072 '$Id: psmile_get_true_mask_entries.F90 2325 2010-04-21 15:00:07Z valcke $'
00073
00074
00075
00076 #ifdef VERBOSE
00077 print 9990, trim(ch_id)
00078
00079 call psmile_flushstd
00080 #endif /* VERBOSE */
00081
00082
00083
00084 ierror = 0
00085
00086 n_true = count (mask_array(inter(1,1):inter(2,1), &
00087 inter(1,2):inter(2,2), &
00088 inter(2,3):inter(2,3)) )
00089
00090 #ifdef VERBOSE
00091 print 9980, trim(ch_id), ierror, n_true
00092 call psmile_flushstd
00093 #endif /* VERBOSE */
00094
00095
00096
00097
00098
00099 #ifdef VERBOSE
00100
00101 9990 format (1x, a, ': psmile_get_true_mask_entries:')
00102 9980 format (1x, a, ': psmile_get_true_mask_entries: eof ierror =', i3, &
00103 '; n_true =', i7)
00104
00105 #endif /* VERBOSE */
00106
00107 end subroutine PSMILe_get_true_mask_entries