File: nf_nc_noparallel.f90

package info (click to toggle)
netcdf-fortran 4.6.0%2Breally4.5.4%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,496 kB
  • sloc: fortran: 25,848; f90: 21,007; sh: 4,740; ansic: 1,729; makefile: 585; pascal: 292; xml: 173
file content (66 lines) | stat: -rw-r--r-- 1,796 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
! -- This file provides functions for parallel I/O when 
! -- netCDF is built without parallel support
!
! -- C functions return NC_ENOPAR when built without parallel support
! -- so do the same here

! Parallel I/O access is only available in library build which support
! parallel I/O. To support parallel I/O, netCDF must be built with
! netCDF-4 enabled (configure options --enable-netcdf-4 and --enable-parallel4)
! and with a HDF5 library that supports parallel I/O, or with support for the
! PnetCDF library via the --enable-pnetcdf option.

!-------------------------------- nf_create_par -------------------------------
 Function nf_create_par (path, cmode, comm, info, ncid) RESULT(status)

! create parallel file

 USE netcdf_nc_interfaces

 Implicit NONE

 Integer,          Intent(IN)  :: cmode, comm, info
 Character(LEN=*), Intent(IN)  :: path
 Integer,          Intent(OUT) :: ncid

 Integer                       :: status

 ncid = 0
 status = NC_ENOPAR

 End Function nf_create_par
!-------------------------------- nf_open_par --------------------------------
 Function nf_open_par (path, mode, comm, info, ncid) RESULT(status)

! open a parallel file

 USE netcdf_nc_interfaces

 Implicit NONE

 Integer,          Intent(IN)  :: mode, comm, info
 Character(LEN=*), Intent(IN)  :: path
 Integer,          Intent(OUT) :: ncid

 Integer                       :: status

 ncid = 0
 status = NC_ENOPAR

 End Function nf_open_par
!-------------------------------- nf_var_par_access -------------------------
 Function nf_var_par_access( ncid, varid, iaccess) RESULT (status)

! set parallel variable access

 USE netcdf_nc_interfaces

 Implicit NONE

 Integer, Intent(IN) :: ncid, varid, iaccess

 Integer             :: status

 status = NC_ENOPAR

 End Function nf_var_par_access