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