3 SUBROUTINE condsurf( jour, jourvrai, lmt_bils )
27 #include "indicesol.h"
34 INTEGER jour, jourvrai
38 INTEGER ig,
i, kt, ierr
40 INTEGER anneelim,anneemax
43 REAL :: lmt_bils_glo(klon_glo)
55 IF (jour.LT.0 .OR. jour.GT.(360-1))
THEN
56 print*,
'Le jour demande n est pas correct: ', jour
66 IF(jourvrai.LE. (kt-1)*360 + 359 )
THEN
67 WRITE(fich,
'("limit",i4,".nc")') anneelim
71 anneelim = anneelim + 1
74 print *,
' PBS ! Le jour a lire sur le fichier limit ne se '
75 print *,
' trouve pas sur les ',nannemax,
' annees a partir de '
83 WRITE(fich,
'("limitNEW.nc")')
91 ierr = nf_open(fich, nf_nowrite,nid)
92 IF (ierr.NE.nf_noerr)
THEN
93 WRITE(6,*)
' Pb d''ouverture du fichier ', fich
94 WRITE(6,*)
' Le fichier limit ',fich,
' (avec 4 chiffres , pour'
95 WRITE(6,*)
' l an 2000 ) , n existe pas ! '
96 WRITE(6,*)
' ierr = ', ierr
108 ierr = nf_inq_varid(nid,
"BILS", nvarid)
109 IF (ierr .NE. nf_noerr)
THEN
110 print*,
"condsurf: Le champ <BILS> est absent"
113 print*,
'debut,epais',debut,epais,
'jour,jourvrai',jour,jourvrai
115 ierr = nf_get_vara_double(nid, nvarid,debut,epais,lmt_bils_glo)
117 ierr = nf_get_vara_real(nid, nvarid,debut,epais,lmt_bils_glo)
119 IF (ierr .NE. nf_noerr)
THEN
120 print*,
"condsurf: Lecture echouee pour <BILS>"
132 CALL
scatter(lmt_bils_glo,lmt_bils)