Changeset 142 for trunk/SOURCES
- Timestamp:
- 10/17/17 17:03:23 (7 years ago)
- Location:
- trunk/SOURCES
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SOURCES/Ant40_files/output_anta40_mod-0.4.f90
r139 r142 95 95 do k=1,nvar 96 96 read(568,'(a100)') namevar(k) 97 print*,trim(namevar(k))98 97 read(568,'(a100)') standard_name(k) 99 print*,trim(standard_name(k))100 98 read(568,'(a100)') long_name(k) 101 print*,trim(long_name(k))102 99 read(568,'(a100)') units(k) 103 print*,trim(units(k))104 100 read(568,*) 105 101 enddo 106 102 close(568) 107 print*,'apres lecture fichier descriptions variables'108 103 ! Fichier Netcdf initMIP 109 104 ! creation du fichier Netcdf : 110 105 status=nf90_create(path = 'short'//runname//'.nc', cmode = nf90_clobber, ncid = ncid) 111 106 if (status /= nf90_noerr) call handle_err(status) 112 print*,'apres nf90_create'113 107 114 108 ! definition des dimension : 115 109 status=nf90_def_dim(ncid, name="time", len=NF90_UNLIMITED, dimid=timeDimID) 116 110 if (status /= nf90_noerr) call handle_err(status) 117 print*,'apres 2'118 111 status=nf90_def_var(ncid, name="time", xtype=nf90_float, dimids=(/ timeDimID/), varid=timeVarID) 119 112 if (status /= nf90_noerr) call handle_err(status) 120 113 status=nf90_put_att(ncid, timeVarID, "standard_name", "time") 121 114 if (status /= nf90_noerr) call handle_err(status) 122 print*,'apres 3'123 115 status=nf90_put_att(ncid, timeVarID,"units", "years since 2007-01-01 00:00:00") 124 116 if (status /= nf90_noerr) call handle_err(status) 125 print*,'apres 4'126 117 127 118 ! definition des variables de sortie : … … 129 120 status=nf90_def_var(ncid, name=trim(namevar(k)), xtype=nf90_float, dimids= & 130 121 (/ timeDimID /), varid=varID(k)) 131 print*,'apres 5'132 122 if (status /= nf90_noerr) call handle_err(status) 133 123 status=nf90_put_att(ncid, varID(k), "standard_name", trim(standard_name(k))) 134 print*,'apres 6',trim(standard_name(k))135 124 if (status /= nf90_noerr) call handle_err(status) 136 125 status=nf90_put_att(ncid, varID(k), "long_name", trim(long_name(k))) 137 print*,'apres 7',trim(long_name(k))138 126 if (status /= nf90_noerr) call handle_err(status) 139 127 status=nf90_put_att(ncid, varID(k), "units", trim(units(k))) 140 print*,'apres 8', trim(units(k))141 128 if (status /= nf90_noerr) call handle_err(status) 142 129 enddo 143 print*,'apres boucle'144 130 145 131 ! fin de la definition du fchier : … … 284 270 !940 format('%%%% ',a,' time=',f8.0,' %%%%') 285 271 286 print*, 'dans shortoutput avant netcdf ncshortout', ncshortout287 272 288 273 if (ncshortout.eq.1) then ! ecriture netcdf … … 305 290 306 291 nbtimeout=nbtimeout+1 307 print*,'ecriture shortnc', nbtimeout292 308 293 status=nf90_put_var(ncid, timeVarID, time, start=(/nbtimeout/)) 309 294 if (status /= nf90_noerr) call handle_err(status) -
trunk/SOURCES/bilan_flux_output_mod.f90
r140 r142 81 81 82 82 83 84 85 83 ! calcul de la moyenne des flux sur dtoutflux 86 if ((mod(abs(time),dtoutflux).lt.dtmin).and.(abs(dtsum-dtoutflux).lt.dtmin)) then 84 !if ((mod(abs(time),dtoutflux).lt.dtmin).and.(abs(dtsum-dtoutflux).lt.dtmin)) then 85 if (mod(abs(time),dtoutflux).lt.dtmin) then 87 86 bm_flux(:,:)=bm_flux(:,:)/dtsum 88 87 bmelt_flux(:,:)=bmelt_flux(:,:)/dtsum … … 92 91 93 92 ! sorties dans debug_3d: 94 debug_3d(:,:, 87) = bm_flux(:,:) ! acabf93 debug_3d(:,:,106) = bm_flux(:,:) ! acabf 95 94 debug_3d(:,:,107) = bmelt_flux(:,:) ! libmassbf 96 95 debug_3d(:,:,108) = dhdt_flux(:,:) ! dlithkdt … … 99 98 100 99 ! remise a 0 100 dtsum = 0. 101 101 bm_flux(:,:) = 0. 102 102 bmelt_flux(:,:) = 0. … … 105 105 grline_flux(:,:) = 0. 106 106 107 else if (abs(dtsum-dtoutflux).lt.dtmin) then108 print*,'pb sorties flux dtoutflux : time=', time109 print*,'dtsum=',dtsum,' dtoutflux', dtoutflux110 else if (mod(abs(time),dtoutflux).lt.dtmin) then111 print*,'pb sorties flux dtsum : time=', time112 print*,'dtsum=',dtsum,' dtoutflux', dtoutflux107 !~ else if (abs(dtsum-dtoutflux).lt.dtmin) then 108 !~ print*,'pb sorties flux dtoutflux : time=', time 109 !~ print*,'dtsum=',dtsum,' dtoutflux', dtoutflux 110 !~ else if (mod(abs(time),dtoutflux).lt.dtmin) then 111 !~ print*,'pb sorties flux dtsum : time=', time 112 !~ print*,'dtsum=',dtsum,' dtoutflux', dtoutflux 113 113 endif 114 114 -
trunk/SOURCES/calving_frange.f90
r129 r142 403 403 S(i,j)=H(i,j)*(1.-ro/row) + sealevel 404 404 B(i,j)=S(i,j) - H(i,j) 405 ! ATTENTION ne pas mettre ice=0 sinon degradation bilan d'eau (bm et bmelt non comptabilises dans ce cas) 405 406 endif 406 407 … … 419 420 endwhere 420 421 421 calv_dtt(:,:) = calv_dtt(:,:) + calv(:,:) ! somme du calving sur dtt 422 ! calv_dtt est remis à 0 dans bilan_eau(tous les dtt)422 calv_dtt(:,:) = calv_dtt(:,:) + calv(:,:) ! somme du calving sur dtt 423 ! calv_dtt est remis a 0 dans steps_time_loop (tous les dtt) 423 424 end subroutine calving 424 425 !------------------------------------------------------------------------------------------ -
trunk/SOURCES/flottab2-0.7.f90
r129 r142 68 68 integer :: numtache 69 69 integer :: nb_pt 70 real :: petit_H=0.001 ! pour test ice sur zone flottante 70 71 contains 71 72 ! ----------------------------------------------------------------------------------- … … 593 594 where (flot(:,:)) 594 595 !cdc 1m where (H(:,:).gt.max(Hmin,Hmin+BM(:,:)-Bmelt(:,:))) 595 where (H(:,:).gt.0.) 596 where (H(:,:).gt.max(BM(:,:)-Bmelt(:,:)+petit_H,0.)*dt) 597 !cdc where (H(:,:).gt.0.) 596 598 ice(:,:)=1 597 599 elsewhere -
trunk/SOURCES/main3D-0.4-40km.f90
r128 r142 213 213 214 214 215 216 if (iter_beta.eq.0) then217 218 if (itracebug.eq.1) call tracebug(' Avant appel routine icethick3')219 call icethick3220 debug_3D(:,:,88) = S(:,:)221 if (itracebug.eq.1) call tracebug(' Apres appel routine icethick3')222 end if215 !cdc supprime pour initialisation propre 216 !~ if (iter_beta.eq.0) then 217 218 !~ if (itracebug.eq.1) call tracebug(' Avant appel routine icethick3') 219 !~ call icethick3 220 !~ debug_3D(:,:,88) = S(:,:) 221 !~ if (itracebug.eq.1) call tracebug(' Apres appel routine icethick3') 222 !~ end if 223 223 224 224 -
trunk/SOURCES/steps_time_loop.f90
r136 r142 57 57 58 58 call icethick3 59 60 59 call flottab 61 62 60 call calving 63 64 61 call ablation_bord 65 66 62 call bilan_eau 67 63 call bilan_flux_output 68 if (isynchro.eq.1) then 69 call shortoutput 70 diff_H = 0. 71 Bm_dtt(:,:) = 0. 72 bmelt_dtt(:,:) = 0. 73 calv_dtt(:,:)=0. 74 ablbord_dtt(:,:)=0. 75 diff_H_2D(:,:)=0. 76 grline_dtt(:,:)=0. 77 endif 64 65 !~ if (isynchro.eq.1) then 66 !~ call shortoutput 67 !~ diff_H = 0. 68 !~ Bm_dtt(:,:) = 0. 69 !~ bmelt_dtt(:,:) = 0. 70 !~ calv_dtt(:,:)=0. 71 !~ ablbord_dtt(:,:)=0. 72 !~ diff_H_2D(:,:)=0. 73 !~ grline_dtt(:,:)=0. 74 !~ endif 78 75 79 76 call flottab … … 161 158 call testsort_time_ncdf(time) 162 159 if (iglob_ncdf .EQ. 1) call sortie_ncdf_cat 163 160 if (isynchro.eq.1) then 161 call shortoutput 162 diff_H = 0. 163 Bm_dtt(:,:) = 0. 164 bmelt_dtt(:,:) = 0. 165 calv_dtt(:,:)=0. 166 ablbord_dtt(:,:)=0. 167 diff_H_2D(:,:)=0. 168 grline_dtt(:,:)=0. 169 endif 164 170 165 171 ! sortie compteur tous les dtcpt ans -
trunk/SOURCES/util_recovery.f90
r141 r142 101 101 (TIME .EQ. TEND).OR.(ipredef.eq.1) ) THEN 102 102 103 print*,'sortie cptr time ipredef:',time, ipredef104 103 if (ipredef .EQ. 1) then 105 104 ! pour changer de signe entre le passe et le futur … … 109 108 signe= '-' 110 109 endif 111 112 110 113 111 if (int(mod(abs(tab_time(indice)),1000.)).eq.0) then … … 129 127 endif 130 128 filin=runname//signe//unite//trim(ADJUSTL(ntime)) 131 print*,'sortie cptr filin=',filin132 129 133 130 else !ipredef==0
Note: See TracChangeset
for help on using the changeset viewer.