libsim Versione 8.0.0

◆ export_to_gridinfovv()

subroutine export_to_gridinfovv ( type(volgrid6d), dimension(:), intent(inout) this,
type(arrayof_gridinfo), intent(inout) gridinfov,
type(grid_id), intent(in), optional gaid_template,
logical, intent(in), optional clone )

Export an array of volgrid6d objects to an arrayof_gridinfo object.

The multidimensional volgrid6d structures are 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 array 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 1513 del file volgrid6d_class.F90.

1514 volgrid6d_out%level=volgrid6d_in%level
1515ENDIF
1516
1517if (associated(volgrid6d_in%var))then
1518 nvar=size(volgrid6d_in%var)
1519 volgrid6d_out%var=volgrid6d_in%var
1520end if
1521! allocate once for speed
1522IF (.NOT.ASSOCIATED(volgrid6d_in%voldati)) THEN
1523 ALLOCATE(voldatiin(volgrid6d_in%griddim%dim%nx, volgrid6d_in%griddim%dim%ny, &
1524 inlevel))
1525ENDIF
1526IF (.NOT.ASSOCIATED(volgrid6d_out%voldati)) THEN
1527 ALLOCATE(voldatiout(volgrid6d_out%griddim%dim%nx, volgrid6d_out%griddim%dim%ny, &
1528 onlevel))
1529ENDIF
1530

Generated with Doxygen.