/[lmdze]/trunk/phylmd/Interface_surf/interfoce_lim.f90
ViewVC logotype

Contents of /trunk/phylmd/Interface_surf/interfoce_lim.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations)
Thu Jun 13 14:40:06 2019 UTC (4 years, 11 months ago) by guez
File size: 1122 byte(s)
Change all `.f` suffixes to `.f90`. (The opposite was done in revision
82.)  Because of change of philosopy in GNUmakefile: we already had a
rewritten rule for `.f`, so it does not make the makefile longer to
replace it by a rule for `.f90`. And it spares us options of
makedepf90 and of the compiler. Also we prepare the way for a simpler
`CMakeLists.txt`.

1 module interfoce_lim_m
2
3 implicit none
4
5 contains
6
7 SUBROUTINE interfoce_lim(jour, pctsrf_new_oce, pctsrf_new_sic)
8
9 ! lecture conditions limites
10 ! Cette routine sert d'interface entre le modèle atmosphérique et
11 ! un fichier de conditions aux limites.
12
13 ! Laurent FAIRHEAD, February 2000
14
15 USE netcdf, ONLY: nf90_nowrite
16 use netcdf95, only: NF95_CLOSE, nf95_get_var, NF95_INQ_VARID, nf95_open
17
18 integer, intent(IN):: jour ! jour \`a lire dans l'ann\'ee
19
20 real, intent(out):: pctsrf_new_oce(:), pctsrf_new_sic(:) ! (klon)
21 ! sous-maille fractionnelle
22
23 ! Local:
24 integer ncid, varid ! pour NetCDF
25
26 ! --------------------------------------------------
27
28 call NF95_OPEN ('limit.nc', NF90_NOWRITE, ncid)
29
30 ! Fraction "ocean"
31 call NF95_INQ_VARID(ncid, 'FOCE', varid)
32 call NF95_GET_VAR(ncid, varid, pctsrf_new_oce, start = (/1, jour/))
33
34 ! Fraction "glace de mer"
35 call NF95_INQ_VARID(ncid, 'FSIC', varid)
36 call NF95_GET_VAR(ncid, varid, pctsrf_new_sic, start = (/1, jour/))
37
38 call NF95_CLOSE(ncid)
39
40 END SUBROUTINE interfoce_lim
41
42 end module interfoce_lim_m

  ViewVC Help
Powered by ViewVC 1.1.21