MONC
Data Types | Functions/Subroutines | Variables
dummy_netcdf_mod Module Reference

Data Types

type  integer_array_wrapper_type
 
interface  nf90_def_var
 
interface  nf90_get_var
 
interface  nf90_put_var
 

Functions/Subroutines

subroutine dummy_netcdf_reset ()
 
integer function nf90_open (path, mode, ncid)
 
integer function nf90_create (path, mode, ncid, comm, info)
 
integer function nf90_put_att (ncid, attribute, key, value)
 
integer function nf90_enddef (ncid)
 
integer function nf90_close (ncid)
 
integer function nf90_inquire_attribute (ncid, attributeid, key, len)
 
integer function nf90_get_att (ncid, attributeid, key, value)
 
integer function nf90_inq_varid (ncid, key, varid)
 
integer function nf90_get_var_char (ncid, varid, target, indexes, start, count, map)
 
integer function nf90_get_var_integer (ncid, varid, target, indexes, start, count, map)
 
integer function nf90_get_var_real (ncid, varid, target, indexes, start, count, map)
 
integer function nf90_get_var_real_scalar (ncid, varid, target, indexes, start, count, map)
 
integer function nf90_get_var_real3d (ncid, varid, target, indexes, start, count, map)
 
integer function nf90_get_var_double (ncid, varid, target, indexes, start, count, map)
 
integer function nf90_get_var_double_scalar (ncid, varid, target, indexes, start, count, map)
 
integer function nf90_get_var_double3d (ncid, varid, target, indexes, start, count, map)
 
integer function nf90_put_var_char (ncid, varid, source, indexes, start, count, map)
 
integer function nf90_put_var_integer (ncid, varid, source, indexes, start, count, map)
 
integer function nf90_put_var_real (ncid, varid, source, indexes, start, count, map)
 
integer function nf90_put_var_real_scalar (ncid, varid, source, indexes, start, count, map)
 
integer function nf90_put_var_real_3d (ncid, varid, source, indexes, start, count, map)
 
integer function nf90_put_var_double (ncid, varid, source, indexes, start, count, map)
 
integer function nf90_put_var_double_scalar (ncid, varid, source, indexes, start, count, map)
 
integer function nf90_put_var_double_3d (ncid, varid, source, indexes, start, count, map)
 
integer function nf90_inq_dimid (ncid, key, dim_id)
 
integer function nf90_inquire_dimension (ncid, id, len)
 
character(len=10) function nf90_strerror (status)
 
integer function nf90_def_dim (ncid, key, length, dimension_id)
 
integer function nf90_def_var_single (ncid, key, type, dim_id, varid)
 
integer function nf90_def_var_atomic (ncid, key, type, varid)
 
integer function nf90_def_var_multiple (ncid, key, type, dim_ids, varid)
 

Variables

logical define_mode = .false.
 
type(map_type), save variable_ids
 
type(map_type), save variable_data
 
type(map_type), save global_attributes
 
type(map_type), save dimension_ids
 
type(map_type), save dimension_lengths
 
type(map_type), save var_data
 
integer, parameter nf90_noerr = 0
 
integer, parameter dummy_error =100
 
integer, parameter nf90_global =0
 
integer, parameter nf90_ebaddim =1000
 
integer, parameter nf90_enotatt =2000
 
integer, parameter nf90_enotvar = 3000
 
integer, parameter nf90_real =0
 
integer, parameter nf90_int =1
 
integer, parameter nf90_char =2
 
integer, parameter nf90_double =3
 
integer, parameter nf90_clobber =0
 
integer, parameter nf90_nowrite =1
 
integer, parameter nf90_netcdf4 =0
 
integer, parameter nf90_mpiio =0
 
integer current_ncid =0
 
integer current_dim =0
 
integer current_var_id = 0
 

Function/Subroutine Documentation

◆ dummy_netcdf_reset()

subroutine dummy_netcdf_mod::dummy_netcdf_reset

Definition at line 50 of file dummy_netcdf.F90.

51  call c_free(variable_ids)
52  call c_free(global_attributes)
53  call c_free(dimension_ids)
54  call c_free(dimension_lengths)
55  current_ncid=0
56  current_dim=0
57  current_var_id = 0
58  define_mode = .false.
Here is the caller graph for this function:

◆ nf90_close()

integer function dummy_netcdf_mod::nf90_close ( integer, intent(in)  ncid)

Definition at line 108 of file dummy_netcdf.F90.

109  integer, intent(in) :: ncid
110 
111  nf90_close = nf90_noerr
Here is the caller graph for this function:

◆ nf90_create()

integer function dummy_netcdf_mod::nf90_create ( character(len=*), intent(in)  path,
integer, intent(in)  mode,
integer, intent(out)  ncid,
integer, intent(in), optional  comm,
integer, intent(in), optional  info 
)

Definition at line 73 of file dummy_netcdf.F90.

74  character(len=*), intent(in) :: path
75  integer, intent(in) :: mode
76  integer, intent(in), optional :: comm, info
77  integer, intent(out) :: ncid
78 
79  ncid = 1
80  define_mode = .true.
81  nf90_create = nf90_noerr
Here is the caller graph for this function:

◆ nf90_def_dim()

integer function dummy_netcdf_mod::nf90_def_dim ( integer, intent(in)  ncid,
character(len=*), intent(in)  key,
integer, intent(in)  length,
integer, intent(out)  dimension_id 
)

Definition at line 366 of file dummy_netcdf.F90.

367  integer, intent(in) :: ncid, length
368  character(len=*), intent(in) :: key
369  integer, intent(out) :: dimension_id
370 
371  class(*), pointer :: raw_data
372 
373  current_dim = current_dim + 1
374  dimension_id = current_dim
375  raw_data=>conv_to_generic(length, .true.)
376  call c_put(dimension_lengths, conv_to_string(dimension_id), raw_data)
377  nf90_def_dim = nf90_noerr
Here is the caller graph for this function:

◆ nf90_def_var_atomic()

integer function dummy_netcdf_mod::nf90_def_var_atomic ( integer, intent(in)  ncid,
character(len=*), intent(in)  key,
integer, intent(in)  type,
integer, intent(out)  varid 
)

Definition at line 398 of file dummy_netcdf.F90.

399  integer, intent(in) :: ncid, type
400  character(len=*), intent(in) :: key
401  integer, intent(out) :: varid
402 
403  class(*), pointer :: raw_data
404 
405  current_var_id = current_var_id + 1
406  varid = current_var_id
407  raw_data=>conv_to_generic(varid, .true.)
408  call c_put(variable_ids, key, raw_data)
409  raw_data=>conv_to_generic(1, .true.)
410  call c_put(variable_data, key, raw_data)
411  nf90_def_var_atomic = nf90_noerr

◆ nf90_def_var_multiple()

integer function dummy_netcdf_mod::nf90_def_var_multiple ( integer, intent(in)  ncid,
character(len=*), intent(in)  key,
integer, intent(in)  type,
integer, dimension(:)  dim_ids,
integer, intent(out)  varid 
)

Definition at line 415 of file dummy_netcdf.F90.

416  integer, intent(in) :: ncid, type
417  integer, dimension(:) :: dim_ids
418  character(len=*), intent(in) :: key
419  integer, intent(out) :: varid
420 
421  integer :: i
422  type(integer_array_wrapper_type), pointer :: wrapper
423  class(*), pointer :: raw_data, raw_id_data
424 
425  allocate(wrapper)
426  wrapper%size=size(dim_ids)
427  allocate(wrapper%data(wrapper%size))
428 
429  do i=1,wrapper%size
430  wrapper%data(i) = dim_ids(i)
431  end do
432  raw_data => wrapper
433  current_var_id = current_var_id + 1
434  varid = current_var_id
435  raw_id_data=>conv_to_generic(varid, .true.)
436  call c_put(variable_ids, key, raw_id_data)
437  call c_put(variable_data, key, raw_data)
438  nf90_def_var_multiple = nf90_noerr

◆ nf90_def_var_single()

integer function dummy_netcdf_mod::nf90_def_var_single ( integer, intent(in)  ncid,
character(len=*), intent(in)  key,
integer, intent(in)  type,
integer, intent(in)  dim_id,
integer, intent(out)  varid 
)

Definition at line 381 of file dummy_netcdf.F90.

382  integer, intent(in) :: ncid, type, dim_id
383  character(len=*), intent(in) :: key
384  integer, intent(out) :: varid
385 
386  class(*), pointer :: raw_data
387 
388  current_var_id = current_var_id + 1
389  varid = current_var_id
390  raw_data=>conv_to_generic(varid, .true.)
391  call c_put(variable_ids, key, raw_data)
392  raw_data=>conv_to_generic(dim_id, .true.)
393  call c_put(variable_data, key, raw_data)
394  nf90_def_var_single = nf90_noerr

◆ nf90_enddef()

integer function dummy_netcdf_mod::nf90_enddef ( integer, intent(in)  ncid)

Definition at line 100 of file dummy_netcdf.F90.

101  integer, intent(in) :: ncid
102 
103  define_mode = .false.
104  nf90_enddef = nf90_noerr
Here is the caller graph for this function:

◆ nf90_get_att()

integer function dummy_netcdf_mod::nf90_get_att ( integer, intent(in)  ncid,
integer, intent(in)  attributeid,
character(len=*), intent(in)  key,
character(len=100), intent(out)  value 
)

Definition at line 125 of file dummy_netcdf.F90.

126  integer, intent(in) :: ncid, attributeid
127  character(len=*), intent(in) :: key
128  character(len=100), intent(out) :: value
129 
130  class(*), pointer :: raw_data
131 
132  if (attributeid == nf90_global) then
133  raw_data=>c_get(global_attributes, key)
134  value = conv_to_string(raw_data, .true., 100)
135  end if
136  nf90_get_att = nf90_noerr
Here is the caller graph for this function:

◆ nf90_get_var_char()

integer function dummy_netcdf_mod::nf90_get_var_char ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character(len=100), intent(out)  target,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 161 of file dummy_netcdf.F90.

162  integer, intent(in) :: ncid, varid
163  character(len=100), intent(out) :: target
164  integer, dimension(:), optional, intent(in) :: indexes, start, count, map
165 
166  nf90_get_var_char = nf90_noerr

◆ nf90_get_var_double()

integer function dummy_netcdf_mod::nf90_get_var_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=double_precision), dimension(*), intent(out)  target,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 210 of file dummy_netcdf.F90.

211  integer, intent(in) :: ncid, varid
212  real(kind=double_precision), dimension(*), intent(out) :: target
213  integer, dimension(:), optional, intent(in) :: indexes, start, count, map
214 
215  nf90_get_var_double = nf90_noerr

◆ nf90_get_var_double3d()

integer function dummy_netcdf_mod::nf90_get_var_double3d ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=double_precision), dimension(:,:,:), intent(out)  target,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 228 of file dummy_netcdf.F90.

229  integer, intent(in) :: ncid, varid
230  real(kind=double_precision), dimension(:,:,:), intent(out) :: target
231  integer, dimension(:), optional, intent(in) :: indexes, start, count, map
232 
233  nf90_get_var_double3d = nf90_noerr

◆ nf90_get_var_double_scalar()

integer function dummy_netcdf_mod::nf90_get_var_double_scalar ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=double_precision), intent(out)  target,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 219 of file dummy_netcdf.F90.

220  integer, intent(in) :: ncid, varid
221  real(kind=double_precision), intent(out) :: target
222  integer, dimension(:), optional, intent(in) :: indexes, start, count, map
223 
224  nf90_get_var_double_scalar = nf90_noerr

◆ nf90_get_var_integer()

integer function dummy_netcdf_mod::nf90_get_var_integer ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, dimension(*), intent(out)  target,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 170 of file dummy_netcdf.F90.

171  integer, intent(in) :: ncid, varid
172  integer, dimension(*), intent(out) :: target
173  integer, dimension(:), optional, intent(in) :: indexes, start, count, map
174 
175  class(*), pointer :: raw_data
176  raw_data=>c_get(var_data, conv_to_string(varid))
177  target(1) = conv_to_integer(raw_data, .false.)
178 
179  nf90_get_var_integer = nf90_noerr
Here is the caller graph for this function:

◆ nf90_get_var_real()

integer function dummy_netcdf_mod::nf90_get_var_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=single_precision), dimension(*), intent(out)  target,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 183 of file dummy_netcdf.F90.

184  integer, intent(in) :: ncid, varid
185  real(kind=single_precision), dimension(*), intent(out) :: target
186  integer, dimension(:), optional, intent(in) :: indexes, start, count, map
187 
188  nf90_get_var_real = nf90_noerr

◆ nf90_get_var_real3d()

integer function dummy_netcdf_mod::nf90_get_var_real3d ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=single_precision), dimension(:,:,:), intent(out)  target,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 201 of file dummy_netcdf.F90.

202  integer, intent(in) :: ncid, varid
203  real(kind=single_precision), dimension(:,:,:), intent(out) :: target
204  integer, dimension(:), optional, intent(in) :: indexes, start, count, map
205 
206  nf90_get_var_real3d = nf90_noerr

◆ nf90_get_var_real_scalar()

integer function dummy_netcdf_mod::nf90_get_var_real_scalar ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=single_precision), intent(out)  target,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 192 of file dummy_netcdf.F90.

193  integer, intent(in) :: ncid, varid
194  real(kind=single_precision), intent(out) :: target
195  integer, dimension(:), optional, intent(in) :: indexes, start, count, map
196 
197  nf90_get_var_real_scalar = nf90_noerr

◆ nf90_inq_dimid()

integer function dummy_netcdf_mod::nf90_inq_dimid ( integer, intent(in)  ncid,
character(len=*), intent(in)  key,
integer, intent(out)  dim_id 
)

Definition at line 326 of file dummy_netcdf.F90.

327  integer, intent(in) :: ncid
328  character(len=*), intent(in) :: key
329  integer, intent(out) :: dim_id
330 
331  class(*), pointer :: raw_data
332 
333  if (c_contains(dimension_ids, key)) then
334  raw_data=>c_get(dimension_ids, key)
335  dim_id = conv_to_integer(raw_data, .false.)
336  nf90_inq_dimid = nf90_noerr
337  else
338  nf90_inq_dimid = nf90_ebaddim
339  end if
Here is the caller graph for this function:

◆ nf90_inq_varid()

integer function dummy_netcdf_mod::nf90_inq_varid ( integer, intent(in)  ncid,
character(len=*), intent(in)  key,
integer, intent(out)  varid 
)

Definition at line 140 of file dummy_netcdf.F90.

141  character(len=*), intent(in) :: key
142  integer, intent(in) :: ncid
143  integer, intent(out) :: varid
144 
145  class(*), pointer :: raw_data
146 
147  if (c_contains(variable_ids, key)) then
148  raw_data=>c_get(variable_ids, key)
149  if (associated(raw_data)) then
150  varid = conv_to_integer(raw_data, .false.)
151  nf90_inq_varid = nf90_noerr
152  return
153  end if
154  nf90_inq_varid = dummy_error
155  else
156  nf90_inq_varid = nf90_enotvar
157  end if
Here is the caller graph for this function:

◆ nf90_inquire_attribute()

integer function dummy_netcdf_mod::nf90_inquire_attribute ( integer, intent(in)  ncid,
integer, intent(in)  attributeid,
character(len=*), intent(in)  key,
integer, intent(out)  len 
)

Definition at line 115 of file dummy_netcdf.F90.

116  integer, intent(in) :: ncid, attributeid
117  character(len=*), intent(in) :: key
118  integer, intent(out) :: len
119 
120  len = 200 ! Dummy 200
121  nf90_inquire_attribute = nf90_noerr
Here is the caller graph for this function:

◆ nf90_inquire_dimension()

integer function dummy_netcdf_mod::nf90_inquire_dimension ( integer, intent(in)  ncid,
integer, intent(in)  id,
integer, intent(out)  len 
)

Definition at line 343 of file dummy_netcdf.F90.

344  integer, intent(in) :: ncid, id
345  integer, intent(out) :: len
346 
347  class(*), pointer :: raw_data
348 
349  if (c_contains(dimension_lengths, conv_to_string(id))) then
350  raw_data => c_get(dimension_lengths, conv_to_string(id))
351  len = conv_to_integer(raw_data, .false.)
352  nf90_inquire_dimension = nf90_noerr
353  else
354  nf90_inquire_dimension = dummy_error
355  end if
Here is the caller graph for this function:

◆ nf90_open()

integer function dummy_netcdf_mod::nf90_open ( character(len=*), intent(in)  path,
integer, intent(in)  mode,
integer, intent(out)  ncid 
)

Definition at line 62 of file dummy_netcdf.F90.

63  character(len=*), intent(in) :: path
64  integer, intent(in) :: mode
65  integer, intent(out) :: ncid
66 
67  current_ncid = current_ncid + 1
68  ncid = current_ncid
69  nf90_open = nf90_noerr
Here is the caller graph for this function:

◆ nf90_put_att()

integer function dummy_netcdf_mod::nf90_put_att ( integer, intent(in)  ncid,
integer, intent(in)  attribute,
character(len=*), intent(in)  key,
character(len=*), intent(in)  value 
)

Definition at line 85 of file dummy_netcdf.F90.

86  integer, intent(in) :: ncid, attribute
87  character(len=*), intent(in) :: key, value
88  class(*), pointer :: raw_data
89 
90  if (attribute == nf90_global) then
91  raw_data=>conv_to_generic(value, .true.)
92  call c_put(global_attributes, key, raw_data)
93  else
94 
95  end if
96  nf90_put_att = nf90_noerr
Here is the caller graph for this function:

◆ nf90_put_var_char()

integer function dummy_netcdf_mod::nf90_put_var_char ( integer, intent(in)  ncid,
integer, intent(in)  varid,
character(len=*), intent(in)  source,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 237 of file dummy_netcdf.F90.

238  integer, intent(in) :: ncid, varid
239  character(len=*), intent(in) :: source
240  integer, dimension(:), optional , intent(in) :: indexes, start, count, map
241 
242  class(*), pointer :: raw_data
243 
244  call assert_false(define_mode, "Switched from define mode")
245  raw_data=>conv_to_generic(source, .true.)
246  call c_put(var_data, conv_to_string(varid), raw_data)
247 
248  nf90_put_var_char = nf90_noerr

◆ nf90_put_var_double()

integer function dummy_netcdf_mod::nf90_put_var_double ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=double_precision), dimension(*), intent(in)  source,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 296 of file dummy_netcdf.F90.

297  integer, intent(in) :: ncid, varid
298  real(kind=double_precision), dimension(*), intent(in) :: source
299  integer, dimension(:), optional , intent(in) :: indexes, start, count, map
300 
301  call assert_false(define_mode, "Switched from define mode")
302  nf90_put_var_double = nf90_noerr

◆ nf90_put_var_double_3d()

integer function dummy_netcdf_mod::nf90_put_var_double_3d ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=double_precision), dimension(:,:,:), intent(in)  source,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 316 of file dummy_netcdf.F90.

317  integer, intent(in) :: ncid, varid
318  real(kind=double_precision), dimension(:,:,:), intent(in) :: source
319  integer, dimension(:), optional , intent(in) :: indexes, start, count, map
320 
321  call assert_false(define_mode, "Switched from define mode")
322  nf90_put_var_double_3d = nf90_noerr

◆ nf90_put_var_double_scalar()

integer function dummy_netcdf_mod::nf90_put_var_double_scalar ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=double_precision), intent(in)  source,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 306 of file dummy_netcdf.F90.

307  integer, intent(in) :: ncid, varid
308  real(kind=double_precision), intent(in) :: source
309  integer, dimension(:), optional , intent(in) :: indexes, start, count, map
310 
311  call assert_false(define_mode, "Switched from define mode")
312  nf90_put_var_double_scalar = nf90_noerr

◆ nf90_put_var_integer()

integer function dummy_netcdf_mod::nf90_put_var_integer ( integer, intent(in)  ncid,
integer, intent(in)  varid,
integer, intent(in)  source,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 252 of file dummy_netcdf.F90.

253  integer, intent(in) :: ncid, varid
254  integer, intent(in) :: source
255  integer, dimension(:), optional , intent(in) :: indexes, start, count, map
256 
257  class(*), pointer :: raw_data
258 
259  call assert_false(define_mode, "Switched from define mode")
260  raw_data=>conv_to_generic(source, .true.)
261  call c_put(var_data, conv_to_string(varid), raw_data)
262  nf90_put_var_integer = nf90_noerr

◆ nf90_put_var_real()

integer function dummy_netcdf_mod::nf90_put_var_real ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=single_precision), dimension(*), intent(in)  source,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 266 of file dummy_netcdf.F90.

267  integer, intent(in) :: ncid, varid
268  real(kind=single_precision), dimension(*), intent(in) :: source
269  integer, dimension(:), optional , intent(in) :: indexes, start, count, map
270 
271  call assert_false(define_mode, "Switched from define mode")
272  nf90_put_var_real = nf90_noerr

◆ nf90_put_var_real_3d()

integer function dummy_netcdf_mod::nf90_put_var_real_3d ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=single_precision), dimension(:,:,:), intent(in)  source,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 286 of file dummy_netcdf.F90.

287  integer, intent(in) :: ncid, varid
288  real(kind=single_precision), dimension(:,:,:), intent(in) :: source
289  integer, dimension(:), optional , intent(in) :: indexes, start, count, map
290 
291  call assert_false(define_mode, "Switched from define mode")
292  nf90_put_var_real_3d = nf90_noerr

◆ nf90_put_var_real_scalar()

integer function dummy_netcdf_mod::nf90_put_var_real_scalar ( integer, intent(in)  ncid,
integer, intent(in)  varid,
real(kind=single_precision), intent(in)  source,
integer, dimension(:), intent(in), optional  indexes,
integer, dimension(:), intent(in), optional  start,
integer, dimension(:), intent(in), optional  count,
integer, dimension(:), intent(in), optional  map 
)

Definition at line 276 of file dummy_netcdf.F90.

277  integer, intent(in) :: ncid, varid
278  real(kind=single_precision), intent(in) :: source
279  integer, dimension(:), optional , intent(in) :: indexes, start, count, map
280 
281  call assert_false(define_mode, "Switched from define mode")
282  nf90_put_var_real_scalar = nf90_noerr

◆ nf90_strerror()

character(len=10) function dummy_netcdf_mod::nf90_strerror ( integer, intent(in)  status)

Definition at line 359 of file dummy_netcdf.F90.

360  integer, intent(in) :: status
361 
362  nf90_strerror = "dummy"
Here is the caller graph for this function:

Variable Documentation

◆ current_dim

integer dummy_netcdf_mod::current_dim =0

Definition at line 29 of file dummy_netcdf.F90.

◆ current_ncid

integer dummy_netcdf_mod::current_ncid =0

Definition at line 29 of file dummy_netcdf.F90.

29  integer :: current_ncid=0, current_dim=0, current_var_id = 0

◆ current_var_id

integer dummy_netcdf_mod::current_var_id = 0

Definition at line 29 of file dummy_netcdf.F90.

◆ define_mode

logical dummy_netcdf_mod::define_mode = .false.

Definition at line 12 of file dummy_netcdf.F90.

12  logical :: define_mode = .false.

◆ dimension_ids

type(map_type), save dummy_netcdf_mod::dimension_ids

Definition at line 21 of file dummy_netcdf.F90.

◆ dimension_lengths

type(map_type), save dummy_netcdf_mod::dimension_lengths

Definition at line 21 of file dummy_netcdf.F90.

◆ dummy_error

integer, parameter dummy_netcdf_mod::dummy_error =100

Definition at line 24 of file dummy_netcdf.F90.

◆ global_attributes

type(map_type), save dummy_netcdf_mod::global_attributes

Definition at line 21 of file dummy_netcdf.F90.

◆ nf90_char

integer, parameter dummy_netcdf_mod::nf90_char =2

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_clobber

integer, parameter dummy_netcdf_mod::nf90_clobber =0

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_double

integer, parameter dummy_netcdf_mod::nf90_double =3

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_ebaddim

integer, parameter dummy_netcdf_mod::nf90_ebaddim =1000

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_enotatt

integer, parameter dummy_netcdf_mod::nf90_enotatt =2000

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_enotvar

integer, parameter dummy_netcdf_mod::nf90_enotvar = 3000

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_global

integer, parameter dummy_netcdf_mod::nf90_global =0

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_int

integer, parameter dummy_netcdf_mod::nf90_int =1

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_mpiio

integer, parameter dummy_netcdf_mod::nf90_mpiio =0

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_netcdf4

integer, parameter dummy_netcdf_mod::nf90_netcdf4 =0

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_noerr

integer, parameter dummy_netcdf_mod::nf90_noerr = 0

Definition at line 24 of file dummy_netcdf.F90.

24  integer, parameter :: nf90_noerr = 0, dummy_error=100, nf90_global=0, nf90_ebaddim=1000, nf90_enotatt=2000, &
25  nf90_enotvar = 3000, nf90_real=0, nf90_int=1, nf90_char=2, nf90_double=3, nf90_clobber=0, nf90_nowrite=1, &
26  nf90_netcdf4=0, nf90_mpiio=0

◆ nf90_nowrite

integer, parameter dummy_netcdf_mod::nf90_nowrite =1

Definition at line 24 of file dummy_netcdf.F90.

◆ nf90_real

integer, parameter dummy_netcdf_mod::nf90_real =0

Definition at line 24 of file dummy_netcdf.F90.

◆ var_data

type(map_type), save dummy_netcdf_mod::var_data

Definition at line 21 of file dummy_netcdf.F90.

◆ variable_data

type(map_type), save dummy_netcdf_mod::variable_data

Definition at line 21 of file dummy_netcdf.F90.

◆ variable_ids

type(map_type), save dummy_netcdf_mod::variable_ids

Definition at line 21 of file dummy_netcdf.F90.

21  type(map_type), save :: variable_ids, variable_data, global_attributes, dimension_ids, dimension_lengths, var_data