libsim Versione 7.2.6

◆ export_to_gridinfov()

subroutine export_to_gridinfov ( type(volgrid6d), intent(inout) this,
type(arrayof_gridinfo), intent(inout) gridinfov,
type(grid_id), intent(in), optional gaid_template,
logical, intent(in), optional clone )
private

Export a volgrid6d object to an arrayof_gridinfo object.

The multidimensional volgrid6d structure is serialized into a one-dimensional array of gridinfo_def objects, which is allocated to the proper size if not already allocated, or it is extended keeping the old data if any.

Parametri
[in,out]thisvolume to be exported
[in,out]gridinfovoutput array of gridinfo_def objects
[in]gaid_templategrid_id template to be used for output data replacing the one contained in this
[in]cloneif provided and .TRUE., clone the grid_id included in this rather than making a shallow copy

Definizione alla linea 1456 del file volgrid6d_class.F90.

1457 DEALLOCATE(this)
1458ENDIF
1459
1460END SUBROUTINE volgrid6dv_delete
1461
1462
1463! Internal method for performing grid to grid computations
1464SUBROUTINE volgrid6d_transform_compute(this, volgrid6d_in, volgrid6d_out, &
1465 lev_out, var_coord_vol, clone)
1466TYPE(grid_transform),INTENT(in) :: this ! oggetto di trasformazione per il grigliato
1467type(volgrid6d), INTENT(in) :: volgrid6d_in ! oggetto da trasformare
1468type(volgrid6d), INTENT(inout) :: volgrid6d_out ! oggetto trasformato; deve essere completo (init, alloc, alloc_vol)
1469TYPE(vol7d_level),INTENT(in),OPTIONAL :: lev_out(:) ! vol7d_level object defining target vertical grid, for vertical interpolations
1470INTEGER,INTENT(in),OPTIONAL :: var_coord_vol ! index of variable defining vertical coordinate values in input volume
1471LOGICAL,INTENT(in),OPTIONAL :: clone ! se fornito e \c .TRUE., clona i gaid da volgrid6d_in a volgrid6d_out
1472
1473INTEGER :: ntime, ntimerange, inlevel, onlevel, nvar, &
1474 itime, itimerange, ilevel, ivar, levshift, levused, lvar_coord_vol, spos
1475REAL,POINTER :: voldatiin(:,:,:), voldatiout(:,:,:), coord_3d_in(:,:,:)
1476TYPE(vol7d_level) :: output_levtype
1477
1478
1479#ifdef DEBUG
1480call l4f_category_log(volgrid6d_in%category,l4f_debug,"start volgrid6d_transform_compute")
1481#endif
1482
1483ntime=0
1484ntimerange=0
1485inlevel=0
1486onlevel=0
1487nvar=0
1488lvar_coord_vol = optio_i(var_coord_vol)
1489
1490if (associated(volgrid6d_in%time))then
1491 ntime=size(volgrid6d_in%time)
1492 volgrid6d_out%time=volgrid6d_in%time
1493end if
1494
1495if (associated(volgrid6d_in%timerange))then
1496 ntimerange=size(volgrid6d_in%timerange)
1497 volgrid6d_out%timerange=volgrid6d_in%timerange
1498end if
1499

Generated with Doxygen.