- Timestamp:
- Feb 18, 2014, 10:59:29 AM (11 years ago)
- Location:
- LMDZ5/trunk/libf
- Files:
-
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3d/ce0l.F90
r1907 r1984 94 94 END IF 95 95 96 IF (grilles_gcm_netcdf) THEN97 98 99 100 101 102 103 END IF 96 97 WRITE(lunout,'(//)') 98 WRITE(lunout,*) ' *************************** ' 99 WRITE(lunout,*) ' *** grilles_gcm_netcdf *** ' 100 WRITE(lunout,*) ' *************************** ' 101 WRITE(lunout,'(//)') 102 CALL grilles_gcm_netcdf_sub(masque,phis) 103 104 104 #endif 105 105 ! of #ifndef CPP_EARTH #else -
LMDZ5/trunk/libf/dyn3d/conf_gcm.F
r1907 r1984 890 890 ok_etat0 = .TRUE. 891 891 CALL getin('ok_etat0',ok_etat0) 892 893 !Config Key = grilles_gcm_netcdf894 !Config Desc = creation de fichier grilles_gcm.nc dans create_etat0_limit895 !Config Def = n896 grilles_gcm_netcdf = .FALSE.897 CALL getin('grilles_gcm_netcdf',grilles_gcm_netcdf)898 892 899 893 write(lunout,*)' #########################################' … … 943 937 write(lunout,*)' ok_limit = ', ok_limit 944 938 write(lunout,*)' ok_etat0 = ', ok_etat0 945 write(lunout,*)' grilles_gcm_netcdf = ', grilles_gcm_netcdf946 939 c 947 940 RETURN -
LMDZ5/trunk/libf/dyn3d/logic.h
r1907 r1984 11 11 & statcl,conser,apdiss,apdelq,saison,ecripar,fxyhypb,ysinus & 12 12 & ,read_start,ok_guide,ok_strato,ok_gradsfile & 13 & ,ok_limit,ok_etat0, grilles_gcm_netcdf,hybrid13 & ,ok_limit,ok_etat0,hybrid 14 14 15 15 COMMON/logici/ iflag_phys,iflag_trac … … 18 18 & apdiss,apdelq,saison,ecripar,fxyhypb,ysinus & 19 19 & ,read_start,ok_guide,ok_strato,ok_gradsfile & 20 & ,ok_limit,ok_etat0,grilles_gcm_netcdf 20 & ,ok_limit,ok_etat0 21 21 22 logical hybrid ! vertical coordinate is hybrid if true (sigma otherwise) 22 23 ! (only used if disvert_type==2) -
LMDZ5/trunk/libf/dyn3d_common/grilles_gcm_netcdf_sub.F90
r1952 r1984 1 1 ! 2 ! $ Header$2 ! $Id: $ 3 3 ! 4 4 ! This subroutine creates the file grilles_gcm.nc containg longitudes and 5 5 ! latitudes in degrees for grid u and v. This subroutine is called from 6 ! ce0l if grilles_gcm_netcdf=TRUE. This subroutine corresponds to the first6 ! ce0l. This subroutine corresponds to the first 7 7 ! part in the program create_fausse_var. 8 8 ! … … 48 48 INTEGER :: area_id 49 49 INTEGER :: mask_id 50 INTEGER :: presnivs_id 50 51 51 52 rad = 6400000 … … 80 81 ! CREATION OUTPUT 81 82 ! ouverture fichier netcdf de sortie out 82 status=NF_CREATE('grilles_gcm.nc',NF_NOCLOBBER,ncid_out) 83 status=NF_CREATE('grilles_gcm.nc',NF_CLOBBER,ncid_out) 84 CALL handle_err(status) 83 85 status=NF_DEF_DIM(ncid_out,'lonu',iim+1,out_lonudim) 86 CALL handle_err(status) 84 87 status=NF_DEF_DIM(ncid_out,'lonv',iim+1,out_lonvdim) 88 CALL handle_err(status) 85 89 status=NF_DEF_DIM(ncid_out,'latu',jjm+1,out_latudim) 90 CALL handle_err(status) 86 91 status=NF_DEF_DIM(ncid_out,'latv',jjm,out_latvdim) 92 CALL handle_err(status) 87 93 88 94 … … 136 142 137 143 status=NF_ENDDEF(ncid_out) 144 write(*,*) "COUCOU 6" 145 CALL handle_err(status) 138 146 ! 5) ----- FERMETURE DES FICHIERS NETCDF------------------ 139 147 ! -------------------------------------------------------- … … 143 151 #ifdef NC_DOUBLE 144 152 status=NF_PUT_VARA_DOUBLE(ncid_out,out_lonuid,1,iim+1,rlonudeg) 153 CALL handle_err(status) 145 154 status=NF_PUT_VARA_DOUBLE(ncid_out,out_lonvid,1,iim+1,rlonvdeg) 155 CALL handle_err(status) 146 156 status=NF_PUT_VARA_DOUBLE(ncid_out,out_latuid,1,jjm+1,rlatudeg) 157 CALL handle_err(status) 147 158 status=NF_PUT_VARA_DOUBLE(ncid_out,out_latvid,1,jjm,rlatvdeg) 159 CALL handle_err(status) 148 160 #else 149 161 status=NF_PUT_VARA_REAL(ncid_out,out_lonuid,1,iim+1,rlonudeg) 162 CALL handle_err(status) 150 163 status=NF_PUT_VARA_REAL(ncid_out,out_lonvid,1,iim+1,rlonvdeg) 164 CALL handle_err(status) 151 165 status=NF_PUT_VARA_REAL(ncid_out,out_latuid,1,jjm+1,rlatudeg) 166 CALL handle_err(status) 152 167 status=NF_PUT_VARA_REAL(ncid_out,out_latvid,1,jjm,rlatvdeg) 168 CALL handle_err(status) 153 169 #endif 154 170 … … 171 187 #ifdef NC_DOUBLE 172 188 status=NF_PUT_VARA_DOUBLE(ncid_out,out_varid,start, count,temp) 189 CALL handle_err(status) 173 190 #else 174 191 status=NF_PUT_VARA_REAL(ncid_out,out_varid,start, count,temp) 192 CALL handle_err(status) 175 193 #endif 176 194 177 195 ! On re-ouvre le fichier pour rajouter 4 nouvelles variables necessaire pour INCA 178 196 ! lev - phis - aire - mask 179 rlevdeg(:) = presnivs 197 ! rlevdeg(:) = presnivs 198 rlevdeg(:) = presnivs(:) 180 199 phis_loc(:,:) = phis(:,:)/g 181 200 182 201 ! niveaux de pression verticaux 183 202 status = NF_REDEF (ncid_out) 203 CALL handle_err(status) 184 204 status=NF_DEF_DIM(ncid_out,'lev',llm,out_levdim) 205 CALL handle_err(status) 206 status=NF_DEF_VAR(ncid_out,'presnivs',NF_FLOAT,1,out_levdim,& 207 presnivs_id) 208 CALL handle_err(status) 185 209 186 210 ! fields … … 196 220 197 221 status=NF_ENDDEF(ncid_out) 222 CALL handle_err(status) 198 223 199 224 ! ecriture des variables 200 225 #ifdef NC_DOUBLE 201 status=NF_PUT_VARA_DOUBLE(ncid_out,out_levid,1,llm,rlevdeg) 226 status=NF_PUT_VARA_DOUBLE(ncid_out,presnivs_id,1,llm,rlevdeg) 227 CALL handle_err(status) 202 228 #else 203 229 status=NF_PUT_VARA_REAL(ncid_out,out_levid,1,llm,rlevdeg) 230 CALL handle_err(status) 204 231 #endif 205 232 … … 214 241 215 242 status = nf_put_vara_double(ncid_out, phis_id,start,count, phis_loc) 243 CALL handle_err(status) 216 244 status = nf_put_vara_double(ncid_out, area_id,start,count, aire) 245 CALL handle_err(status) 217 246 masque_int(:,:) = nINT(masque(:,:)) 218 247 status = nf_put_vara_int(ncid_out, mask_id,start,count,masque_int) -
LMDZ5/trunk/libf/dyn3dmem/ce0l.F90
r1907 r1984 115 115 END IF 116 116 117 IF (grilles_gcm_netcdf) THEN 118 WRITE(lunout,'(//)') 119 WRITE(lunout,*) ' *************************** ' 120 WRITE(lunout,*) ' *** grilles_gcm_netcdf *** ' 121 WRITE(lunout,*) ' *************************** ' 122 WRITE(lunout,'(//)') 123 CALL grilles_gcm_netcdf_sub(masque,phis) 124 END IF 117 WRITE(lunout,'(//)') 118 WRITE(lunout,*) ' *************************** ' 119 WRITE(lunout,*) ' *** grilles_gcm_netcdf *** ' 120 WRITE(lunout,*) ' *************************** ' 121 WRITE(lunout,'(//)') 122 CALL grilles_gcm_netcdf_sub(masque,phis) 125 123 126 124 #ifdef CPP_MPI -
LMDZ5/trunk/libf/dyn3dmem/conf_gcm.F
r1907 r1984 944 944 ok_etat0 = .TRUE. 945 945 CALL getin('ok_etat0',ok_etat0) 946 947 !Config Key = grilles_gcm_netcdf948 !Config Desc = creation de fichier grilles_gcm.nc dans create_etat0_limit949 !Config Def = n950 grilles_gcm_netcdf = .FALSE.951 CALL getin('grilles_gcm_netcdf',grilles_gcm_netcdf)952 946 953 947 write(lunout,*)' #########################################' … … 999 993 write(lunout,*)' ok_limit = ', ok_limit 1000 994 write(lunout,*)' ok_etat0 = ', ok_etat0 1001 write(lunout,*)' grilles_gcm_netcdf = ', grilles_gcm_netcdf1002 995 c 1003 996 RETURN -
LMDZ5/trunk/libf/dyn3dmem/logic.h
r1907 r1984 1 1 ! 2 ! $Id $2 ! $Id: $ 3 3 ! 4 4 ! … … 11 11 & statcl,conser,apdiss,apdelq,saison,ecripar,fxyhypb,ysinus & 12 12 & ,read_start,ok_guide,ok_strato,ok_gradsfile & 13 & ,ok_limit,ok_etat0, grilles_gcm_netcdf,hybrid13 & ,ok_limit,ok_etat0,hybrid 14 14 15 15 COMMON/logici/ iflag_phys,iflag_trac … … 18 18 & apdiss,apdelq,saison,ecripar,fxyhypb,ysinus & 19 19 & ,read_start,ok_guide,ok_strato,ok_gradsfile & 20 & ,ok_limit,ok_etat0,grilles_gcm_netcdf 20 & ,ok_limit,ok_etat0 21 21 22 logical hybrid ! vertical coordinate is hybrid if true (sigma otherwise) 22 23 ! (only used if disvert_type==2) -
LMDZ5/trunk/libf/dyn3dpar/ce0l.F90
r1907 r1984 115 115 END IF 116 116 117 IF (grilles_gcm_netcdf) THEN 118 WRITE(lunout,'(//)') 119 WRITE(lunout,*) ' *************************** ' 120 WRITE(lunout,*) ' *** grilles_gcm_netcdf *** ' 121 WRITE(lunout,*) ' *************************** ' 122 WRITE(lunout,'(//)') 123 CALL grilles_gcm_netcdf_sub(masque,phis) 124 END IF 117 WRITE(lunout,'(//)') 118 WRITE(lunout,*) ' *************************** ' 119 WRITE(lunout,*) ' *** grilles_gcm_netcdf *** ' 120 WRITE(lunout,*) ' *************************** ' 121 WRITE(lunout,'(//)') 122 CALL grilles_gcm_netcdf_sub(masque,phis) 125 123 126 124 #ifdef CPP_MPI -
LMDZ5/trunk/libf/dyn3dpar/conf_gcm.F
r1907 r1984 942 942 ok_etat0 = .TRUE. 943 943 CALL getin('ok_etat0',ok_etat0) 944 945 !Config Key = grilles_gcm_netcdf946 !Config Desc = creation de fichier grilles_gcm.nc dans create_etat0_limit947 !Config Def = n948 grilles_gcm_netcdf = .FALSE.949 CALL getin('grilles_gcm_netcdf',grilles_gcm_netcdf)950 944 951 945 write(lunout,*)' #########################################' … … 997 991 write(lunout,*)' ok_limit = ', ok_limit 998 992 write(lunout,*)' ok_etat0 = ', ok_etat0 999 write(lunout,*)' grilles_gcm_netcdf = ', grilles_gcm_netcdf1000 993 c 1001 994 RETURN -
LMDZ5/trunk/libf/dyn3dpar/logic.h
r1907 r1984 11 11 & statcl,conser,apdiss,apdelq,saison,ecripar,fxyhypb,ysinus & 12 12 & ,read_start,ok_guide,ok_strato,ok_gradsfile & 13 & ,ok_limit,ok_etat0, grilles_gcm_netcdf,hybrid13 & ,ok_limit,ok_etat0,hybrid 14 14 15 15 COMMON/logici/ iflag_phys,iflag_trac … … 18 18 & apdiss,apdelq,saison,ecripar,fxyhypb,ysinus & 19 19 & ,read_start,ok_guide,ok_strato,ok_gradsfile & 20 & ,ok_limit,ok_etat0,grilles_gcm_netcdf 20 & ,ok_limit,ok_etat0 21 21 22 logical hybrid ! vertical coordinate is hybrid if true (sigma otherwise) 22 23 ! (only used if disvert_type==2)
Note: See TracChangeset
for help on using the changeset viewer.