Changeset 899 for codes/icosagcm/trunk/src/output
- Timestamp:
- 06/13/19 16:45:41 (5 years ago)
- Location:
- codes/icosagcm/trunk/src/output
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/trunk/src/output/netcdf_mod.F90
r803 r899 81 81 integer, intent(out) :: varid 82 82 integer :: nf90_def_var 83 nf90_def_var = 0 83 84 end function nf90_def_var 84 85 … … 89 90 integer, dimension(:), optional, intent( in) :: start, count, stride, map 90 91 integer :: nf90_put_var_int0 92 nf90_put_var_int0 = 0 91 93 end function nf90_put_var_int0 92 94 … … 96 98 integer, dimension(:), optional, intent( in) :: start, count, stride, map 97 99 integer :: nf90_put_var_int1 100 nf90_put_var_int1 = 0 98 101 end function nf90_put_var_int1 99 102 … … 103 106 integer, dimension(:), optional, intent( in) :: start, count, stride, map 104 107 integer :: nf90_put_var_int2 108 nf90_put_var_int2 = 0 105 109 end function nf90_put_var_int2 106 110 … … 110 114 integer, dimension(:), optional, intent( in) :: start, count, stride, map 111 115 integer :: nf90_put_var_int3 116 nf90_put_var_int3 = 0 112 117 end function nf90_put_var_int3 113 118 … … 116 121 real, intent( in) :: values 117 122 integer, dimension(:), optional, intent( in) :: start, count, stride, map 118 integer :: nf90_put_var_real0 123 integer :: nf90_put_var_real0 124 nf90_put_var_real0 = 0 119 125 end function nf90_put_var_real0 120 126 … … 123 129 real, intent( in) :: values(:) 124 130 integer, dimension(:), optional, intent( in) :: start, count, stride, map 125 integer :: nf90_put_var_real1 131 integer :: nf90_put_var_real1 132 nf90_put_var_real1 = 0 126 133 end function nf90_put_var_real1 127 134 … … 130 137 real, intent( in) :: values(:,:) 131 138 integer, dimension(:), optional, intent( in) :: start, count, stride, map 132 integer :: nf90_put_var_real2 139 integer :: nf90_put_var_real2 140 nf90_put_var_real2 = 0 133 141 end function nf90_put_var_real2 134 142 … … 137 145 real, intent( in) :: values(:,:,:) 138 146 integer, dimension(:), optional, intent( in) :: start, count, stride, map 139 integer :: nf90_put_var_real3 147 integer :: nf90_put_var_real3 148 nf90_put_var_real3 = 0 140 149 end function nf90_put_var_real3 141 150 … … 146 155 integer, dimension(:), optional, intent( in) :: start, count, stride, map 147 156 integer :: nf90_get_var_int0 157 nf90_get_var_int0 = 0 148 158 end function nf90_get_var_int0 149 159 … … 153 163 integer, dimension(:), optional, intent( in) :: start, count, stride, map 154 164 integer :: nf90_get_var_int1 165 nf90_get_var_int1 = 0 155 166 end function nf90_get_var_int1 156 167 … … 160 171 integer, dimension(:), optional, intent( in) :: start, count, stride, map 161 172 integer :: nf90_get_var_int2 173 nf90_get_var_int2 = 0 162 174 end function nf90_get_var_int2 163 175 … … 167 179 integer, dimension(:), optional, intent( in) :: start, count, stride, map 168 180 integer :: nf90_get_var_int3 181 nf90_get_var_int3 = 0 169 182 end function nf90_get_var_int3 170 183 … … 173 186 real, intent( out) :: values 174 187 integer, dimension(:), optional, intent( in) :: start, count, stride, map 175 integer :: nf90_get_var_real0 188 integer :: nf90_get_var_real0 189 nf90_get_var_real0 = 0 176 190 end function nf90_get_var_real0 177 191 … … 180 194 real, intent( out) :: values(:) 181 195 integer, dimension(:), optional, intent( in) :: start, count, stride, map 182 integer :: nf90_get_var_real1 196 integer :: nf90_get_var_real1 197 nf90_get_var_real1 = 0 183 198 end function nf90_get_var_real1 184 199 … … 187 202 real, intent( out) :: values(:,:) 188 203 integer, dimension(:), optional, intent( in) :: start, count, stride, map 189 integer :: nf90_get_var_real2 204 integer :: nf90_get_var_real2 205 nf90_get_var_real2 = 0 190 206 end function nf90_get_var_real2 191 207 … … 194 210 real, intent( out) :: values(:,:,:) 195 211 integer, dimension(:), optional, intent( in) :: start, count, stride, map 196 integer :: nf90_get_var_real3 212 integer :: nf90_get_var_real3 213 nf90_get_var_real3 = 0 197 214 end function nf90_get_var_real3 198 215 -
codes/icosagcm/trunk/src/output/output_field.f90
r667 r899 7 7 PRIVATE 8 8 9 LOGICAL ,SAVE:: xios_output9 LOGICAL :: xios_output 10 10 !$OMP THREADPRIVATE(xios_output) 11 LOGICAL ,SAVE:: enable_io11 LOGICAL :: enable_io 12 12 !$OMP THREADPRIVATE(enable_io) 13 13 -
codes/icosagcm/trunk/src/output/restart.f90
r893 r899 60 60 61 61 TYPE(t_domain),POINTER :: d 62 TYPE(t_field),POINTER :: field_glo(:)63 62 TYPE(t_field),POINTER :: field(:) 64 63 … … 421 420 INTEGER :: fieldId(20) 422 421 423 TYPE(t_domain),POINTER :: d424 TYPE(t_field),POINTER :: field_glo(:)425 422 TYPE(t_field),POINTER :: field(:) 426 423 427 424 CHARACTER(LEN=255) :: start_file_name 428 425 INTEGER,PARAMETER :: nvert=6 429 INTEGER :: ncid , cellId, levId, edgeId, vertid, lonId, latId, bounds_lonId, bounds_latId430 INTEGER :: ind,ind_glo,i,j,k,nf426 INTEGER :: ncid 427 INTEGER :: nf 431 428 INTEGER :: status 432 REAL(rstd),ALLOCATABLE :: lon(:),lat(:),bounds_lon(:,:),bounds_lat(:,:)433 429 REAL(rstd) :: it_real 434 430 … … 464 460 ! CALL xios_recv_field("it_start",it_real) 465 461 CALL xios_read_var("it_start",it_real) 466 it= it_real462 it=INT(it_real) 467 463 ELSE 468 464 -
codes/icosagcm/trunk/src/output/write_field.f90
r548 r899 350 350 REAL(r8),ALLOCATABLE :: field_val2d(:) 351 351 REAL(r8),ALLOCATABLE :: field_val3d(:,:) 352 REAL(r8),ALLOCATABLE :: field_val4d(:,:,:)353 352 LOGICAL, INTENT(IN) :: once 354 353 TYPE(t_domain),POINTER :: d 355 354 INTEGER :: Index 356 355 INTEGER :: ind,i,j,k,n,ncell,q 357 INTEGER :: iie,jje,iin,jjn358 356 INTEGER :: status 359 357 CHARACTER(len=255) :: name 360 CHARACTER(len=255) :: str_ind361 358 INTEGER :: ind_b,ind_e 362 359 INTEGER :: halo_size … … 394 391 Index=GetFieldIndex(name) 395 392 else 396 FieldIndex(Index)=FieldIndex(Index)+1 .393 FieldIndex(Index)=FieldIndex(Index)+1 397 394 endif 398 395 … … 629 626 REAL(r8),ALLOCATABLE :: field_val2d(:) 630 627 REAL(r8),ALLOCATABLE :: field_val3d(:,:) 631 REAL(r8),ALLOCATABLE :: field_val4d(:,:,:)632 628 TYPE(t_domain),POINTER :: d 633 629 INTEGER :: Index 634 630 INTEGER :: ind,i,j,l,k,n,ncell,q 635 INTEGER :: iie,jje,iin,jjn636 631 INTEGER :: status 637 632 CHARACTER(len=255) :: name 638 CHARACTER(len=255) :: str_ind639 633 INTEGER :: ind_b,ind_e 640 634 INTEGER :: halo_size … … 664 658 Index=GetFieldIndex(name) 665 659 else 666 FieldIndex(Index)=FieldIndex(Index)+1 .660 FieldIndex(Index)=FieldIndex(Index)+1 667 661 endif 668 662 … … 1165 1159 TYPE(t_domain),POINTER :: d 1166 1160 INTEGER :: nvertId,ncid,lonId,latId,bounds_lonId,bounds_latId,timeId,ncellId 1167 INTEGER :: dim3id ,dim4id1161 INTEGER :: dim3id 1168 1162 INTEGER :: status 1169 1163 INTEGER :: ind,i,j,k,n,q 1170 INTEGER :: iie,jje,iin,jjn1171 1164 INTEGER :: ind_b,ind_e 1172 1165 INTEGER :: halo_size … … 1174 1167 INTEGER :: nij 1175 1168 CHARACTER(LEN=255) :: name 1176 INTEGER :: l,level_size, levId , dimlevId1169 INTEGER :: l,level_size, levId 1177 1170 1178 1171 name=TRIM(ADJUSTL(name_in)) … … 1477 1470 TYPE(t_domain),POINTER :: d 1478 1471 INTEGER :: nvertId,ncid,lonId,latId,bounds_lonId,bounds_latId,timeId,ncellId 1479 INTEGER :: dim3id ,dim4id1472 INTEGER :: dim3id 1480 1473 INTEGER :: status 1481 1474 INTEGER :: ind,i,j,k,n,q 1482 INTEGER :: iie,jje,iin,jjn1483 1475 INTEGER :: ind_b,ind_e 1484 1476 INTEGER :: halo_size … … 1783 1775 USE netcdf_mod 1784 1776 IMPLICIT NONE 1785 INTEGER :: i, k,status1777 INTEGER :: i,status 1786 1778 !$OMP MASTER 1787 1779 DO i=1,NbField … … 1805 1797 int2str='' 1806 1798 do while (flag) 1807 int2str=CHAR(MOD(i,10)+48)// int2str1799 int2str=CHAR(MOD(i,10)+48)//trim(int2str) 1808 1800 i=i/10 1809 1801 if (i==0) flag=.false. -
codes/icosagcm/trunk/src/output/xios_mod.F90
r888 r899 9 9 LOGICAL,SAVE :: using_xios 10 10 11 #ifdef CPP_USING_XIOS 12 11 13 INTEGER,SAVE :: ncell_i 12 14 !$OMP THREADPRIVATE(ncell_i) … … 17 19 18 20 PRIVATE ncell_i,ncell_v,ncell_e 19 20 #ifdef CPP_USING_XIOS21 21 22 22 CONTAINS
Note: See TracChangeset
for help on using the changeset viewer.