libsim  Versione 7.2.6

◆ volgrid_get_vol_2d()

subroutine, public volgrid6d_class::volgrid_get_vol_2d ( type(volgrid6d), intent(in)  this,
integer, intent(in)  ilevel,
integer, intent(in)  itime,
integer, intent(in)  itimerange,
integer, intent(in)  ivar,
real, dimension(:,:), pointer  voldati 
)

Return a 2-d pointer to a x-y slice of a volume.

This method works both with volumes having allocated and non-allocated thisvoldati array, and it returns a pointer to a 2-d slice either from the allocated thisvoldati array or from the grid_id object on file or in memory. In the second case the pointer should be either ALLOCATE'd to the expected size or NULLIFY'ed, and if NULLIFY'ed, it is allocated within the method, thus it will have to be deallocated by the caller when not in use anymore. Since this method may be called many times by a program, it is optimized for speed and it does not make any check about the matching size of the pointer and the array or about the allocation status of this, so it should be called only when everything has been checked to be in good shape.

Parametri
[in]thisobject from which the slice has to be retrieved
[in]ilevelindex of vertical level of the slice
[in]itimeindex of time level of the slice
[in]itimerangeindex of timerange of the slice
[in]ivarindex of physical variable of the slice
voldatipointer to the data, if thisvoldati is already allocated, it will just point to the requested slice, otherwise it will be allocated if and only if it is nullified on entry

Definizione alla linea 628 del file volgrid6d_class.F90.

629 integer :: tarray(8)
630 logical :: opened,exist
631 
632 #ifdef DEBUG
633 call l4f_category_log(this%category,l4f_debug,"write on file")
634 #endif
635 
636 ntime=0
637 ntimerange=0
638 nlevel=0
639 nvar=0
640 
641 !call idate(im,id,iy)
642 call date_and_time(values=tarray)
643 call getarg(0,arg)
644 
645 if (present(description))then

Generated with Doxygen.