MONC
Public Member Functions | List of all members
dummy_netcdf_mod::nf90_def_var Interface Reference

Public Member Functions

integer function nf90_def_var_multiple (ncid, key, type, dim_ids, varid)
 
integer function nf90_def_var_single (ncid, key, type, dim_id, varid)
 
integer function nf90_def_var_atomic (ncid, key, type, varid)
 

Detailed Description

Definition at line 38 of file dummy_netcdf.F90.

Member Function/Subroutine Documentation

◆ nf90_def_var_atomic()

integer function dummy_netcdf_mod::nf90_def_var::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::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::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

The documentation for this interface was generated from the following file: