3 SUBROUTINE condsurf(jour, jourvrai, lmt_bils)
32 INTEGER jour, jourvrai
36 INTEGER ig, i, kt, ierr
38 INTEGER anneelim, anneemax
54 IF (jour<0 .OR. jour>(360-1))
THEN
55 print *,
'Le jour demande n est pas correct: ', jour
65 IF (jourvrai<=(kt-1)*360+359)
THEN
66 WRITE (fich,
'("limit",i4,".nc")') anneelim
70 anneelim = anneelim + 1
73 print *,
' PBS ! Le jour a lire sur le fichier limit ne se '
74 print *,
' trouve pas sur les ', nannemax,
' annees a partir de '
82 WRITE (fich,
'("limitNEW.nc")')
90 ierr = nf_open(fich, nf_nowrite, nid)
91 IF (ierr/=nf_noerr)
THEN
92 WRITE (6, *)
' Pb d''ouverture du fichier ', fich
93 WRITE (6, *)
' Le fichier limit ', fich,
' (avec 4 chiffres , pour'
94 WRITE (6, *)
' l an 2000 ) , n existe pas ! '
95 WRITE (6, *)
' ierr = ', ierr
107 ierr = nf_inq_varid(nid,
'BILS', nvarid)
108 IF (ierr/=nf_noerr)
THEN
109 CALL abort_physic(
'cond_surf',
'Le champ <BILS> est absent', 1)
111 print *,
'debut,epais', debut, epais,
'jour,jourvrai', jour, jourvrai
113 ierr = nf_get_vara_double(nid, nvarid, debut, epais, lmt_bils_glo)
115 ierr = nf_get_vara_real(nid, nvarid, debut, epais, lmt_bils_glo)
117 IF (ierr/=nf_noerr)
THEN
118 CALL abort_physic(
'condsurf',
'Lecture echouee pour <BILS>', 1)
129 CALL scatter(lmt_bils_glo, lmt_bils)
!$Header!c include clesph0 h c COMMON clesph0 ok_limitvrai
!$Header!integer nvarmx parameter(nfmx=10, imx=200, jmx=150, lmx=200, nvarmx=1000) real xd(imx
subroutine condsurf(jour, jourvrai, lmt_bils)
subroutine abort_physic(modname, message, ierr)