00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 subroutine psmile_generate_1d_3d_dble ( &
00012 vector1, vector2, vector3, shape, &
00013 dest_array, dest_shape, &
00014 grid_valid_shape, &
00015 ierror)
00016
00017
00018
00019 use PRISM_constants
00020
00021 use PSMILe, dummy_interface => PSMILe_Generate_1d_3d_dble
00022
00023 implicit none
00024
00025
00026
00027 Integer, Intent (In) :: shape (2, ndim_3d)
00028
00029
00030
00031
00032 Double Precision, Intent (In) :: vector1 (shape(1,1):
00033 shape(2,1))
00034 Double Precision, Intent (In) :: vector2 (shape(1,2):
00035 shape(2,2))
00036 Double Precision, Intent (In) :: vector3 (shape(1,3):
00037 shape(2,3))
00038
00039
00040 Integer, Intent (In) :: dest_shape (2, ndim_3d)
00041
00042
00043
00044 Integer, Intent (In) :: grid_valid_shape (2, ndim_3d)
00045
00046
00047
00048
00049
00050 Double Precision, Intent (Out) :: dest_array (
00051 dest_shape(1,1):dest_shape(2,1),
00052 dest_shape(1,2):dest_shape(2,2),
00053 dest_shape(1,3):dest_shape(2,3))
00054
00055
00056
00057 integer, Intent (Out) :: ierror
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067 Integer :: j, k
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086 Character(len=len_cvs_string), save :: mycvs =
00087 '$Id: psmile_generate_1d_3d_dble.F90 2325 2010-04-21 15:00:07Z valcke $'
00088
00089
00090
00091
00092
00093 #ifdef VERBOSE
00094 print 9990, trim(ch_id)
00095
00096 call psmile_flushstd
00097 #endif /* VERBOSE */
00098
00099 ierror = 0
00100
00101
00102
00103 do k = grid_valid_shape (1, 3), grid_valid_shape (2, 3)
00104 do j = grid_valid_shape (1, 2), grid_valid_shape (2, 2)
00105
00106 dest_array (grid_valid_shape(1,1):grid_valid_shape(2,1), j, k) = &
00107 vector1 (grid_valid_shape(1,1):grid_valid_shape(2,1))
00108
00109 end do
00110 end do
00111
00112
00113
00114 do k = grid_valid_shape (1, 3), grid_valid_shape (2, 3)
00115 do j = grid_valid_shape (1, 2), grid_valid_shape (2, 2)
00116
00117 dest_array (grid_valid_shape(1,1):grid_valid_shape(2,1), j, k) = &
00118 vector2 (j)
00119
00120 end do
00121 end do
00122
00123
00124
00125 do k = grid_valid_shape (1, 3), grid_valid_shape (2, 3)
00126 do j = grid_valid_shape (1, 2), grid_valid_shape (2, 2)
00127
00128 dest_array (grid_valid_shape(1,1):grid_valid_shape(2,1), &
00129 grid_valid_shape(1,2):grid_valid_shape(2,2), k) = &
00130 vector3 (k)
00131
00132 end do
00133 end do
00134
00135
00136
00137 #ifdef VERBOSE
00138 print 9980, trim(ch_id), ierror
00139
00140 call psmile_flushstd
00141 #endif /* VERBOSE */
00142
00143
00144
00145
00146 #ifdef VERBOSE
00147
00148 9990 format (1x, a, ': psmile_generate_1d_3d_dble')
00149 9980 format (1x, a, ': psmile_generate_1d_3d_dble: eof ierror =', i3)
00150
00151 #endif /* VERBOSE */
00152
00153 end subroutine PSMILe_Generate_1d_3d_dble